We’re having trouble connecting the One to a Multitech Conduit Gateway in the U.S.
The configuration /var/config/lora/lora-network-server.conf contains:
{
"lora": {
"netID": "010203", /* netID for beacon packets */
"frequencyBand": "915", /* US="915", EU="868" */
"frequencySubBand": 2, /* Sub-band for US operation, 1-8 */
"rx1DatarateOffset": 0, /* Datarate offset for mote rx window 1 sent in join response (0-3) */
"rx2Datarate": 12, /* Datarate for mote rx window 2 sent in join response (7-12) */
"maxTxPower": 14, /* Max Tx power (dBm), -6 to 26 */
"frequencyEU": 867500000 /* center freq for extra EU channels (Hz) */
},
"udp": {
"appPortUp": 1784, /* port for user-developed application use */
"appPortDown": 1786 /* port for user-developed application use */
},
"addressRange": {
"start": "00:00:00:01", /* address range used for mDots */
"end": "FF:FF:FF:FE"
},
"network": {
"public": true, /* set to false for private LoRa network with mDots + Conduit */
"leasetime": 0, /* time until mDot join expires (minutes) or 0 for no expiration */
"eui": "01:01:01:01:01:01:01:01",
"key": "01:01:01:01:01:01:01:01:01:01:01:01:01:01:01:01"
},
"log" : {
"console" : true,
"syslog" : false,
"level" : 30, /* error=10, warn=20, info=30, debug=50, trace=60, max=100 */
"path": "/var/log/lora-network-server.log"
},
"mqtt": {
"enabled": true
}
}
I’ve tried all the Lora-related sketches at http://support.sodaq.com/sodaq-one/ and all fail to connect. The eui/key combination is for OTAA and ABP uses a different pair name/passphrase. Both don’t work no matter what I try. I believe this gateway is a hybrid meaning the FSB (frequencySubBand) is set between 1-8. I’ve noted in other forum posts that the Sodaq_RN2483.cpp defaults to FSB of 2, but the source code only shows this active for the RN2903 chipset, not the RN2483 which is what my Arduino console shows.
I’ve modified the tracker source to show more debugging output, namely, the chars being sent/expected. Here is the console output trying to configure this device:
** SodaqOne Universal Tracker - 2.0 **
[initABP]
[init]
[sleep]
[wakeUp]
[resetDevice]
[expectString] expecting RN.(RN2483 1.0.1 Dec 15 2015 09:38:09) found a match!
The device type is RN2483
[setMacParam] devaddr = 00000000 [expectString] expecting ok.(ok) found a match!
[setMacParam] appskey = DEA00000380200201C020020276A0000 [expectString] expecting ok.(ok) found a match!
[setMacParam] nwkskey = 0D6A0000DEA00000800900203F600000 [expectString] expecting ok.(ok) found a match!
[setMacParam] adr = on
[expectString] expecting ok.(ok) found a match!
[joinNetwork] mac join type:abp
[expectString] expecting ok.(ok) found a match!
[expectString] expecting accepted.(accepted) found a match!
[sleep]
[wakeUp]
[getHWEUI]
.0004A30B001A768B
[getHWEUI] count: 8
[sleep]
LoRa HWEUI: 0004A30B001A768B
-> CPU reset by Software [64]
Commands:
Reset DevAddr / DevEUI to the Hardware EUI (EUI):
Commit Settings (CS):
Settings:
Fix Interval (min) (fi=): 15
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
OTAA Mode (OFF=0 / ON=1) (otaa=): 0
DevAddr / DevEUI (dev=): 0004A30B001A768B
AppSKey / AppEUI (app=): 00000000000000000000000000000000
NWSKey / AppKey (key=): 00000000000000000000000000000000
Num Coords to Upload (num=): 1
Repeat Count (rep=): 0
Status LED (OFF=0 / ON=1) (led=): 0
Enter command: app=0101010101010101
Commands:
Reset DevAddr / DevEUI to the Hardware EUI (EUI):
Commit Settings (CS):
Settings:
Fix Interval (min) (fi=): 15
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
OTAA Mode (OFF=0 / ON=1) (otaa=): 0
DevAddr / DevEUI (dev=): 0004A30B001A768B
AppSKey / AppEUI (app=): 0101010101010101
NWSKey / AppKey (key=): 00000000000000000000000000000000
Num Coords to Upload (num=): 1
Repeat Count (rep=): 0
Status LED (OFF=0 / ON=1) (led=): 0
Enter command: key=01010101010101010101010101010101
Commands:
Reset DevAddr / DevEUI to the Hardware EUI (EUI):
Commit Settings (CS):
Settings:
Fix Interval (min) (fi=): 15
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
OTAA Mode (OFF=0 / ON=1) (otaa=): 0
DevAddr / DevEUI (dev=): 0004A30B001A768B
AppSKey / AppEUI (app=): 0101010101010101
NWSKey / AppKey (key=): 01010101010101010101010101010101
Num Coords to Upload (num=): 1
Repeat Count (rep=): 0
Status LED (OFF=0 / ON=1) (led=): 0
Enter command: otaa=1
Commands:
Reset DevAddr / DevEUI to the Hardware EUI (EUI):
Commit Settings (CS):
Settings:
Fix Interval (min) (fi=): 15
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
OTAA Mode (OFF=0 / ON=1) (otaa=): 1
DevAddr / DevEUI (dev=): 0004A30B001A768B
AppSKey / AppEUI (app=): 0101010101010101
NWSKey / AppKey (key=): 01010101010101010101010101010101
Num Coords to Upload (num=): 1
Repeat Count (rep=): 0
Status LED (OFF=0 / ON=1) (led=): 0
Enter command:
Settings:
Fix Interval (min) (fi=): 15
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
OTAA Mode (OFF=0 / ON=1) (otaa=): 1
DevAddr / DevEUI (dev=): 0004A30B001A768B
AppSKey / AppEUI (app=): 0101010101010101
NWSKey / AppKey (key=): 01010101010101010101010101010101
Num Coords to Upload (num=): 1
Repeat Count (rep=): 0
Status LED (OFF=0 / ON=1) (led=): 0
Initializing LoRa...
1
[initOTA]
[init]
[sleep]
[wakeUp]
[resetDevice]
[expectString] expecting RN.(RN2483 1.0.1 Dec 15 2015 09:38:09) found a match!
The device type is RN2483
[setMacParam] deveui = 0004A30B001A768B [expectString] expecting ok.(ok) found a match!
[setMacParam] appeui = 0101010101010101 [expectString] expecting ok.(ok) found a match!
[setMacParam] appkey = 01010101010101010101010101010101 [expectString] expecting ok.(ok) found a match!
[setMacParam] adr = on
[expectString] expecting ok.(ok) found a match!
[joinNetwork] mac join type:otaa
[expectString] expecting ok.(ok) found a match!
[expectString] expecting accepted.......(denied)LoRa OTAA init failed!
[sleep]
** Boot-up completed successfully!
Starting getGpsFixAndTransmit()...
Setting RTC from 946684865 to 1470860446
Timestamp, BatteryVoltage, BoardTemperature, Lat, Long, Altitude, Speed, Course, SatelliteCount, TimeToFix
1470860446, 132, 24, 440483649, 3378598154, 201, 0, 0, 7, 1