Hi all,
I have a sodaq one rev 4 and I would like to use the supplied code:
- http://support.sodaq.com/sodaq-one/loraone-lora-basic-sketch/
- http://support.sodaq.com/sodaq-one/tracker-software/
I have used the serial passthough code and I’m able to send messages successfully. However using the above sample code I have not been able to join.
I have enabled the further debugging and both fail for different reasons, ultimately I would like to use the tracker so I will upload the log for it:
Settings:
GPS (OFF=0 / ON=1) (gps=): 1
Fix Interval (min) (fi=): 1
Alt. Fix Interval (min) (afi=): 0
Alt. Fix From (HH) (affh=): 0
Alt. Fix From (MM) (affm=): 0
Alt. Fix To (HH) (afth=): 0
Alt. Fix To (MM) (aftm=): 0
GPS Fix Timeout (sec) (gft=): 120
Minimum sat count (sat=): 4
OTAA Mode (OFF=0 / ON=1) (otaa=): 0
Retry conn. (OFF=0 / ON=1) (retry=): 0
ADR (OFF=0 / ON=1) (adr=): 0
ACK (OFF=0 / ON=1) (ack=): 0
Spreading Factor (sf=): 9
Output Index (pwr=): 7
DevAddr / DevEUI (dev=): 0C600023
AppSKey / AppEUI (app=): xxx
NWSKey / AppKey (key=): xxx
Num Coords to Upload (num=): 1
Repeat Count (rep=): 0
Status LED (OFF=0 / ON=1) (led=): 0
Debug (OFF=0 / ON=1) (dbg=): 1
Enter command:
Settings:
GPS (OFF=0 / ON=1) (gps=): 1
Fix Interval (min) (fi=): 1
Alt. Fix Interval (min) (afi=): 0
Alt. Fix From (HH) (affh=): 0
Alt. Fix From (MM) (affm=): 0
Alt. Fix To (HH) (afth=): 0
Alt. Fix To (MM) (aftm=): 0
GPS Fix Timeout (sec) (gft=): 120
Minimum sat count (sat=): 4
OTAA Mode (OFF=0 / ON=1) (otaa=): 0
Retry conn. (OFF=0 / ON=1) (retry=): 0
ADR (OFF=0 / ON=1) (adr=): 0
ACK (OFF=0 / ON=1) (ack=): 0
Spreading Factor (sf=): 9
Output Index (pwr=): 7
DevAddr / DevEUI (dev=): 0C600023
AppSKey / AppEUI (app=): xxx
NWSKey / AppKey (key=): xxx
Num Coords to Upload (num=): 1
Repeat Count (rep=): 0
Status LED (OFF=0 / ON=1) (led=): 0
Debug (OFF=0 / ON=1) (dbg=): 1
Initializing LoRa...
Initializing LoRa...
[initABP]
[init]
[sleep]
[wakeUp]
[resetDevice]
[expectString] expecting RN.(RN2903AU 0.9.7rc7 Aug 11 2016 15:07:56) found a match!
The device type is RN2903
[setFsbChannels]
[expectString] expecting ok.(ok) found a match!
[expectString] expecting ok.(ok) found a match!
[expectString] expecting ok.(ok) found a match!
[expectString] expecting ok.(ok) found a match!
[expectString] expecting ok.(ok) found a match!
[expectString] expecting ok.(ok) found a match!
[expectString] expecting ok.(ok) found a match!
[expectString] expecting ok.(ok) found a match!
[expectString] expecting ok.(ok) found a match!
[expectString] expecting ok.(ok) found a match!
[expectString] expecting ok.(ok) found a match!
[expectString] expecting ok.(ok) found a match!
[expectString] expecting ok.(ok) found a match!
[expectString] expecting ok.(ok) found a match!
[expectString] expecting ok.(ok) found a match!
[expectString] expecting ok.(ok) found a match!
[expectString] expecting ok.(ok) found a match!
[expectString] expecting ok.(ok) found a match!
[expectString] expecting ok.(ok) found a match!
[expectString] expecting ok.(ok) found a match!
[expectString] expecting ok.(ok) found a match!
[expectString] expecting ok.(ok) found a match!
[expectString] expecting ok.(ok) found a match!
[expectString] expecting ok.(ok) found a match!
[expectString] expecting ok.(ok) found a match!
[expectString] expecting ok.(ok) found a match!
[expectString] expecting ok.(ok) found a match!
[expectString] expecting ok.(ok) found a match!
[expectString] expecting ok.(ok) found a match!
[expectString] expecting ok.(ok) found a match!
[expectString] expecting ok.(ok) found a match!
[expectString] expecting ok.(ok) found a match!
[expectString] expecting ok.(ok) found a match!
[expectString] expecting ok.(ok) found a match!
[expectString] expecting ok.(ok) found a match!
[expectString] expecting ok.(ok) found a match!
[expectString] expecting ok.(ok) found a match!
[expectString] expecting ok.(ok) found a match!
[expectString] expecting ok.(ok) found a match!
[expectString] expecting ok.(ok) found a match!
[expectString] expecting ok.(ok) found a match!
[expectString] expecting ok.(ok) found a match!
[expectString] expecting ok.(ok) found a match!
[expectString] expecting ok.(ok) found a match!
[expectString] expecting ok.(ok) found a match!
[expectString] expecting ok.(ok) found a match!
[expectString] expecting ok.(ok) found a match!
[expectString] expecting ok.(ok) found a match!
[expectString] expecting ok.(ok) found a match!
[expectString] expecting ok.(ok) found a match!
[expectString] expecting ok.(ok) found a match!
[expectString] expecting ok.(ok) found a match!
[expectString] expecting ok.(ok) found a match!
[expectString] expecting ok.(ok) found a match!
[expectString] expecting ok.(ok) found a match!
[expectString] expecting ok.(ok) found a match!
[expectString] expecting ok.(ok) found a match!
[expectString] expecting ok.(ok) found a match!
[expectString] expecting ok.(ok) found a match!
[expectString] expecting ok.(ok) found a match!
[expectString] expecting ok.(ok) found a match!
[expectString] expecting ok.(ok) found a match!
[expectString] expecting ok.(ok) found a match!
[expectString] expecting ok.(ok) found a match!
[expectString] expecting ok.(ok) found a match!
[expectString] expecting ok.(ok) found a match!
[expectString] expecting ok.(ok) found a match!
[expectString] expecting ok.(ok) found a match!
[expectString] expecting ok.(ok) found a match!
[expectString] expecting ok.(ok) found a match!
[expectString] expecting ok.(ok) found a match!
[expectString] expecting ok.(ok) found a match!
[setPowerIndex]
[setMacParam] pwridx = 5
[expectString] expecting ok.(ok) found a match!
[setSpreadingFactor]
[setMacParam] dr = 3
[expectString] expecting ok.(ok) found a match!
[setMacParam] devaddr = [array][expectString] expecting ok.(ok) found a match!
[setMacParam] appskey = [array][expectString] expecting ok.(ok) found a match!
[setMacParam] nwkskey = [array][expectString] expecting ok.(ok) found a match!
[setMacParam] adr = off
[expectString] expecting ok.(ok) found a match!
[joinNetwork]
[expectString] expecting ok.(ok) found a match!
[expectString] expecting accepted.(accepted) found a match!
[setSpreadingFactor]
[setMacParam] dr = 1
[expectString] expecting ok.(ok) found a match!
[setPowerIndex]
[setMacParam] pwridx = 7
[expectString] expecting ok.(ok) found a match!
[sleep]
** Boot-up completed successfully!
Starting getGpsFixAndTransmit()...
Setting RTC from 946684846 to 1493160239
Timestamp, BatteryVoltage, BoardTemperature, Lat, Long, Altitude, Speed, Course, SatelliteCount, TimeToFix
1493160239, 134, 21, -xxx, xxx, 66, 0, 0, 7, 0
[wakeUp]
[send]
[macTransmit]
[expectString] expecting ok.(ok) found a match!
Waiting for server response..
(ok)
Some other string received (error)
[lookupMacTransmitError]: ok
[lookupMacTransmitError]: found 95
There was an error while transmitting through LoRaWAN.
[sleep]
Default fix event started.
Starting getGpsFixAndTransmit()...
Timestamp, BatteryVoltage, BoardTemperature, Lat, Long, Altitude, Speed, Course, SatelliteCount, TimeToFix
1493160302, 134, 21, -xxx, xxx, 52, 0, 0, 6, 2
[wakeUp]
[send]
[macTransmit]
[expectString] expecting ok.[lookupMacTransmitError]: ok
[lookupMacTransmitError]: not found!
There was an error while transmitting through LoRaWAN.
[sleep]
It looks as if the setting were configured correctly but that there was an error while transmitting.
I hope someone can help with my problem, any help is greatly appreciated.
Cheers
Cam