Jason Reiss
Forum Replies Created
-
AuthorPosts
-
Jason Reiss
KeymasterThe “tmst” value is a timestamp internal to the packet-forwarder processes. The network server uses this value to schedule the downlink packets.
The “timestamp” value is added by the network server when it receives the UDP packet from the forwarder.
We could include the ms in the timestamp but the would not accurately represent the exact received time of the frame at the radio.
The “tmst” value is a clock from the start of packet-forwarder, you could reference the process start time. But this time is in second resolution so not accurate to ms.
> ps -eo pid,comm,lstart
Jason Reiss
KeymasterLook for Semtech LoRa modulation.
Jason Reiss
KeymasterYou can try to access the device through the USB Device port on the back of the unit. Connect with a terminal emulator at 115200. Login with the same creds as ssh.
Jason Reiss
KeymasterIf you have an internet connection and run
> opkg update
> opkg install openvpnIt will install that package for you to try.
I don’t know if anyone has.Jason Reiss
KeymasterTom,
Could you open a support case on support.multitech.com regarding the lora server crash and share your mote configuration to try to reproduce the error.
Network Address and keys used for ABP and commands used to enter mote into database?Thanks,
Jason
Jason Reiss
KeymasterDid you remove power from the UDK?
Jason Reiss
KeymasterJose,
For RF level testing you may need to make custom firmware using SxRadio libraries.
Through AT commands and the mDot library only LoRaWAN supported functionality will be available.
Here are some examples and libraries.
https://developer.mbed.org/users/dudmuck/
Also checkout the datasheets at Semtech.com for radio information.
http://www.semtech.com/apps/product.php?pn=SX1272Jason Reiss
KeymasterAre you trying to communicate with a LoRaWAN gateway? The AT-Command firmware and libmDot library are setup to use the LoRaWAN 1.0 communcation protocol which uses only LoRa and FSK modulations. The bandwidth is determined by datarate which must match the receiving entity.
If you want to use the Sx1272 radio on the mDot for communcations other than defined in LoRaWAN it will be better suited for you to use mbed and a SxRadio driver. All SxRadio drivers I have used employ settings for only LoRa and FSK modulations. GMSK would have to be added into them.
The following link has examples of an SxRadio tx and rx for mDot.
https://developer.mbed.org/users/dudmuck/Jason Reiss
KeymasterYou could issue AT until OK is received.
Jason Reiss
KeymasterWhat frequencies are used by the gateway.
Try AT+FSB=1 to use only the first 8 channels of US915
With AT+FSB=0 the mDot will use 64 channels and choose randomly between them.
The AT+RXDR command is not needed. The lora mac layer will choose the correct datarate depending on AT+TXDR setting and Rx window.
Jason Reiss
KeymasterJust swap the pins.
Serial debug(XBEE_DOUT, XBEE_DIN);
mts::MTSSerial serial(USBTX, USBRX, 512, 512);November 13, 2015 at 9:49 am in reply to: Conduit Manual Join to SX1276 MBED (Third party device) #10000Jason Reiss
Keymasterlora-query will be run on the command line. It will open UDP session and issue command and give result. It makes it easier than using the “nc -u localhost 6677”.
# lora-query -t 5000 -s -n
November 13, 2015 at 9:33 am in reply to: Conduit Manual Join to SX1276 MBED (Third party device) #9997Jason Reiss
KeymasterAlso lora-query
Usage: lora-query [-t timeout] [-s] [-n]
Simple UDP client utility to pull info from LoRa Network server
–timeout (t) : UDP recv timeout, default: 100 (msecs)
–stats (s) : get LoRa Network server statistics
–stats-reset (r) : reset LoRa Network server statistics
–node-list (n) : get Node List
–json (j) : data in json format
–help (?) : returns this message
–version (v) : print versionNovember 13, 2015 at 9:32 am in reply to: Conduit Manual Join to SX1276 MBED (Third party device) #9996Jason Reiss
Keymasternode list
November 13, 2015 at 9:20 am in reply to: Conduit Manual Join to SX1276 MBED (Third party device) #9994Jason Reiss
KeymasterI found the issue with the config.
Backup interval must be a number, not a string.“backupInterval”: 21600,
November 13, 2015 at 8:59 am in reply to: Conduit Manual Join to SX1276 MBED (Third party device) #9991Jason Reiss
KeymasterOK, things are running?
November 13, 2015 at 8:58 am in reply to: Conduit Manual Join to SX1276 MBED (Third party device) #9990Jason Reiss
KeymasterWhen I copy and paste from the above post there are some bad quote characters. Are these in the file on the Conduit?
Here they are replaced with ‘?’ characters:
{ "db": "/var/config/lora/lora-network-server.db", "backupInterval": "21600?, "lora": { "netID": "010203?, "frequencyBand": "915?, "frequencySubBand": 7, "rx1DatarateOffset": 0, "rx2Datarate": 12, "maxTxPower": 14, "frequencyEU": 867500000 }, "udp": { "appPortUp": 1784, "appPortDown": 1786 }, "addressRange": { "start": "00:00:00:01?, "end": "FF:FF:FF:FE" }, "network": { "public": true, "leasetime": 1440, "name": "BGLORANETWORK", "passphrase": "BGLORANETWORK" }, "mqtt": { "enabled": true, "host": "127.0.0.1?, "port": 1883 }, "log": { "console": true, "syslog": false, "level": 30, "path": "/var/log/lora-network-server.log" } }
November 12, 2015 at 7:41 pm in reply to: Conduit Manual Join to SX1276 MBED (Third party device) #9981Jason Reiss
KeymasterAnother thing to do is check that the lora-network-server.conf file is in proper form. You can copy and paste the contents to jsonlint.com to verify it is still in json format. Fix any errors and copy/paste the file back.
-
This reply was modified 9 years, 5 months ago by
Jason Reiss.
November 12, 2015 at 6:49 pm in reply to: Conduit Manual Join to SX1276 MBED (Third party device) #9978Jason Reiss
KeymasterDid you change passphrase?
November 12, 2015 at 6:48 pm in reply to: Conduit Manual Join to SX1276 MBED (Third party device) #9977Jason Reiss
KeymasterTry stop and then start instead of restart.
November 12, 2015 at 6:22 pm in reply to: Conduit Manual Join to SX1276 MBED (Third party device) #9975Jason Reiss
KeymasterWhat does the log show?
November 12, 2015 at 6:12 pm in reply to: Conduit Manual Join to SX1276 MBED (Third party device) #9973Jason Reiss
KeymasterYou can check /var/log/lora-network-server.log.
It will mention the short name and passphrase.
Have you modified lmic for 8 channel operation?
November 12, 2015 at 5:57 pm in reply to: Conduit Manual Join to SX1276 MBED (Third party device) #9969Jason Reiss
KeymasterNetwork name and passphrase need to be at least 8 characters.
November 12, 2015 at 5:52 pm in reply to: Conduit Manual Join to SX1276 MBED (Third party device) #9968Jason Reiss
KeymasterCheck
# ps -A | grep loraMake sure lora-network-server is running.
November 12, 2015 at 5:50 pm in reply to: Conduit Manual Join to SX1276 MBED (Third party device) #9966Jason Reiss
KeymasterCommand should be
nc -u localhost 6677November 12, 2015 at 5:45 pm in reply to: Conduit Manual Join to SX1276 MBED (Third party device) #9964Jason Reiss
KeymasterCan you post an example of the node add command you issued?
Also post the command you use to connect to command port.
Jason Reiss
KeymasterWhat settings do you have on conduit?
Jason Reiss
KeymasterYou could also try to create a simple mbed program that just echos the serial input and try each interface in the program to trouble shoot without the AT firmware.
Serial Port pins: XBEE_DOUT, XBEE_DIN
USB Port pins: USBTX, USBRX#include "mbed.h" Serial pc(USBTX, USBRX); // tx, rx // Serial pc(XBEE_DOUT, XBEE_DIN); // tx, rx int main() { pc.baud(115200); pc.printf("hello\r\n"); while(1) { if(pc.readable()) { pc.putc(pc.getc()); } } }
Jason Reiss
KeymasterAt commands issued to the serial port.
USB is debug output only.
There is a bootloader on the USB that is accessible if you press enter key right after reset.
Jason Reiss
KeymasterAT-Commands will be accessible on the serial port of a UDK board.
On the usb port of the UDK board debug output can be seen if enabled.
Use AT+LOG=6 for the highest level of output.Be sure flow control is off.
I use minicom on mac. I did try CoolTerm and was able to access at command port.
The light on the UDK will be red until firmware is flashed, that is OK.
-
This reply was modified 9 years, 5 months ago by
-
AuthorPosts