UDK mDot Not Joining mLinuxConduit
Home › Forums › Conduit: mLinux Model › UDK mDot Not Joining mLinuxConduit
- This topic has 7 replies, 3 voices, and was last updated 8 years, 9 months ago by
Ashu Joshi.
-
AuthorPosts
-
June 10, 2016 at 3:44 pm #13001
Ashu Joshi
ParticipantI have gone over the steps over and over again. And trying to get teh mDOT UDK to communicate with the mLinux Conduit as described here: http://www.multitech.net/developer/software/lora/getting-started-with-lora-conduit-mlinux/
I don’t see any log file for the lora-network-server on Conduit but when I grep on the running process – I do see the lora-network-server is running.
I simply cannot get it to work. The firmware on UDK/MDOT issued by ATI command is 1.0.8. This is the output on the debug console of the UDK:
[DEBUG] Time on air: 23 bytes 370 ms
[TRACE] Event: OK
[TRACE] Flags Tx: 1 Rx: 0 RxData: 0 RxSlot: 0 LinkCheck: 0 JoinAccept: 0
[TRACE] Info: Status: 0 ACK: 0 Retries: 0 TxDR: 0 RxPort: 1 RxSize: 0 RSSI: 0 SNR: 0 Energy: 0 Margin: 0 Gateways: 0
[TRACE] Rx Window 1 – Frequency: 926900000 BW: 2 SF: 10
[TRACE] Event: RX_TIMEOUT
[TRACE] Flags Tx: 1 Rx: 0 RxData: 0 RxSlot: 1 LinkCheck: 0 JoinAccept: 0
[TRACE] Info: Status: 3 ACK: 0 Retries: 0 TxDR: 0 RxPort: 1 RxSize: 0 RSSI: 0 SNR: 0 Energy: 0 Margin: 0 Gateways: 0
[TRACE] Rx Window 2 – Frequency: 923300000 BW: 2 SF: 12
[TRACE] Windows Expired
[TRACE] Event: RX_TIMEOUT
[TRACE] Flags Tx: 0 Rx: 0 RxData: 0 RxSlot: 2 LinkCheck: 0 JoinAccept: 0
[TRACE] Info: Status: 3 ACK: 0 Retries: 0 TxDR: 0 RxPort: 1 RxSize: 0 RSSI: 0 SNR: 0 Energy: 0 Margin: 0 Gateways: 0
[ERROR] Failed to join network
[DEBUG] Saving config to flash
[DEBUG] wrote 1024 bytes
[DEBUG] file size: 1024 bytes
[TRACE] Join Network – OTA
[TRACE] Rx Channel Frequency: 926900000
[TRACE] Tx High BW Frequency: 912600000
[TRACE] RTC ISR 00000037 00000020 00000020 00000000
[DEBUG] Saving config to flash
[DEBUG] wrote 1024 bytes
[DEBUG] file size: 1024 bytes
[TRACE] Join Network – OTA
[TRACE] Rx Channel Frequency: 926900000
[TRACE] Tx High BW Frequency: 912600000
[TRACE] RTC ISR 00000037 00000020 00000020 00000000June 10, 2016 at 3:58 pm #13002Jason Reiss
KeymasterCan you share your configuration?
On mDot
AT&VOn Conduit
Contents of /var/config/lora/lora-network-server.confAlso you could try these commands to run the network server manually and see if there are errors in starting
> /etc/init.d/lora-network-server stop > cd /opt/lora/ > ./lora-network-server -c /var/config/lora/lora-network-server.conf
June 10, 2016 at 3:59 pm #13003Steve Kovarik
ModeratorHello Ashu
On the mLinux Conduit can you please issue opkg list | grep lora
and post the results.June 11, 2016 at 10:06 am #13004Ashu Joshi
ParticipantSteve – here is the list of opkg:
root@mtcdt:/var/config/lora# opkg list | grep lora
lora-network-server – 0.0.9.2-r0.0
lora-packet-forwarder – 1.4.1-r8.16
lora-query – 0.0.1-r0.0
root@mtcdt:/var/config/lora#June 11, 2016 at 10:09 am #13005Ashu Joshi
ParticipantJason:
I have tried both ways:
1. Private – by setting network[“public”] to false and AT+PN=0
2. Public – by setting network[“public”] to true and AT+PN=1The results below are with public
Results of AT&V:
AT&V
Device ID:..00:80:00:00:00:00:ae:db
Frequency Band:..FB_915
Frequency Sub Band:.7
Public Network:..on
Start Up Mode:..COMMAND
Network Address:.00000000
Network ID:..9a:f2:9b:df:f1:fe:16:07
Network ID Passphrase:.ashujatl
Network Key:..c9.b5.54.2d.b5.6e.a0.dd.84.7b.a4.a6.ec.fa.0e.5c
Network Key Passphrase:.ashujatl
Network Session Key:.00.00.00.00.00.00.00.00.00.00.00.00.00.00.00.00
Data Session Key:.00.00.00.00.00.00.00.00.00.00.00.00.00.00.00.00
Network Join Mode:.OTA
Network Join Retries:.2
Preserve Session:.off
Join Byte Order:.LSB
Join Delay:..5
App Port:..1
Link Check Threshold:.off
Link Check Count:.off
Error Correction:.1 bytes
ACK Retries:..off
Packet Repeat:..1
Encryption:..on
CRC:…on
Adaptive Data Rate:.off
Command Echo:..on
Verbose Response:.off
Tx Frequency:..0
Tx Data Rate:..DR0 – SF10BW125
Tx Power:..11
Tx Antenna Gain:.3
Tx Wait:..on
Tx Inverted Signal:.off
Rx Delay:..1 s
Rx Inverted Signal:.on
Rx Output Style:.HEXADECIMAL
Debug Baud Rate:.115200
Serial Baud Rate:.115200
Serial Flow Control:.off
Serial Clear On Error:.on
Wake Mode:..INTERVAL
Wake Interval:..10 s
Wake Delay:..100 ms
Wake Timeout:..20 ms
Wake Pin:..DI8
Log Level:..6CONTENTS of Lora.Conf:
{
“lora”: {
“netID”: “010203”, /* netID for beacon packets */
“frequencyBand”: “915”, /* US=”915″, EU=”868″ */
“frequencySubBand”: 7, /* 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”: 1440, /* time until mDot join expires (minutes) */
“name”: “ashujatl”, /* configure network security */
“passphrase”: “ashujatl”
},
“log” : {
“console” : true,
“syslog” : true,
“level” : 30, /* error=10, warn=20, info=30, debug=50, trace=60, max=100 */
“path”: “/var/log/lora-network-server.log”
},
“mqtt”: {
“enabled”: true
}
}June 11, 2016 at 10:13 am #13006Ashu Joshi
ParticipantSteve: I tried running from the command line as you suggested, I have copied the output. Important to note that this combination was previously working with the TTN so it had the Packetforwarder setup. I changed it back for normal network server
root@mtcdt:/opt/lora# ./lora-network-server -c /var/config/lora/lora-network-server.conf
Logger Level Changed to 30
11:12:48:131|INFO|LoRa Network Server started, version 0.0.9.2
11:12:48:135|WARNING|Setting for beacon interval not found. Beacon is disabled.
11:12:48:140|INFO|Network Server Config ———————
{
“addressRange” : {
“end” : “FF:FF:FF:FE”,
“start” : “00:00:00:01”
},
“log” : {
“console” : true,
“level” : 30,
“path” : “/var/log/lora-network-server.log”,
“syslog” : true
},
“lora” : {
“adr” : {
“868” : {
“DR0” : -190,
“DR1” : -170,
“DR2” : -145,
“DR3” : -105,
“DR4” : -80,
“DR5” : -50,
“DR6” : 100,
“DR7” : 0
},
“915” : {
“DR0” : -150,
“DR1” : -100,
“DR2” : -60,
“DR3” : -30,
“DR4” : 100
}
},
“beaconDelay” : 0,
“beaconInterval” : 0,
“beaconPower” : 27,
“frequencyBand” : “915”,
“frequencyEU” : 867500000,
“frequencySubBand” : 7,
“joinByteOrder” : “LSB”,
“maxTxPower” : 14,
“netID” : “010203”,
“rx1DatarateOffset” : 0,
“rx2Datarate” : 12
},
“mqtt” : {
“enabled” : true
},
“network” : {
“eui” : “9af29bdff1fe1607”,
“key” : “c9b5542db56ea0dd847ba4a6ecfa0e5c”,
“leasetime” : 1440,
“name” : “ashujatl”,
“passphrase” : “ashujatl”,
“public” : true
},
“test” : {
“disableRxWindow1” : false,
“disableRxWindow2” : false
},
“udp” : {
“appPortDown” : 1786,
“appPortUp” : 1784,
“downstreamPort” : 1782,
“upstreamPort” : 1780
}
}11:12:48:143|INFO|——————————————-
11:12:48:144|INFO|Failed to open database [/var/config/lora/lora-net-server.db].
11:12:48:150|INFO|DB loading…
11:12:48:159|ERROR|SQL error: [no such table: schema] on first call
11:12:48:161|INFO|Database version: 0
11:12:48:163|INFO|Latest version: 5
11:12:48:165|WARNING|Creating database
11:12:48:236|INFO|Network settings not found in database, setting to current settings
11:12:48:303|INFO|Beacon is disabled
11:13:18:301|ERROR|Packet forwarder not seen in 30 s
11:13:48:301|ERROR|Packet forwarder not seen in 60 sJune 11, 2016 at 10:45 am #13007Jason Reiss
KeymasterYou will want to update the lora-network-server to 1.0.8
See the downloads page. This will also fix the init script that was modified for TTN.June 11, 2016 at 1:16 pm #13008Ashu Joshi
ParticipantJason – thanks – that did it – worked like a charm – upgrading the lora-network-server. Thanks!
-
AuthorPosts
- You must be logged in to reply to this topic.