Hi @johan at present I wasn’t sure if my gateway was connecting or not. I am using mDot modules and as there doesn’t appear to be any previous example of them being used I’m having to work it out myself. At present I’m in the process of debugging a new node that hopefully should work if I actually knew the gateway was connected!
I tried the gateways API call with my gateway UID but it returns empty response.
Not had much time to look at this over the previous few days either, which doesnt help.
Brandon here from MultiTech. Yes, you can use the mDot with TTN. When I had the call with @johan, I was using an mDot (with AT Command Firwmare) to send data to TTN. To configure the mDot, follow the instructions on the page @johan linked to. The only unique configuration peice for TTN is the network and data session keys for which you need to use the default key on this page. But in fact the mDot’s default session keys are the same as TTN, so you’ll just need to confirm they match.
Then you can tail the packet forwarder log and see when lora packets are received. You won’t see the data, but you’ll see that a lora packet has been received.
Hi Brandon @brandon-multitech,
We’re using the AEP version. We want to enable local people to use NodeRED to set up devices. Johan has answered part of this question. Just want to get your take on it too — If we’re going to use NodeRED on the Local side before packets are sent to TTN, should we just tap in to TTN with MQTT. Or, is there another NodeRED enabled option planned! Thanks for all your help!
Patrick
Yes, as @johan has mentioned, you’ll either want to by-pass the Conduit Node-RED and use the TTN cloud network server, or use the Conduit’s local network server with Node-RED sending data to TTN application handler’s via MQTT.
Does anything need to be setup on TTN side to accept my gateway communications? I dont yet see anything when I query the gateways API, either for all gateways or for my specific ID.
Using tcpdump on the Conduit, I can see traffic including the json being sent from the packet forwarder and responses coming back. I’m actually using the gps_pkt_fwd with the fake_gps settings in order to send regular status updates that are missing from the basic_pkt_fwd application.
I can see UDP packets with my gateway ID in but have not yet got as far as looking at the packet forwarder and gateway code to determine the format of the packets.
It looks like I’m actually sending something and it gets through if I allow Lora packets with invalid CRC to be forwarded. I also see the node ID isnt set correctly so something else to work on. But I do now see this in the nodes output:
This is using a MultiTech mDot, the Conduit AEP with GPS packet forwarder setup with fake GPS details. Once the mDot is working correctly then I can release some example code.
@Ropu if you’re able to get that page on the Conduit AEP then you’re running a local server and not connecting to TTN. On my Conduit AEP, the network server and packet forwarder have been disabled. I did see high CRC error counts on my Conduit when I was using it in private mode.
Its currently re-configured back to private mode for some testing so I now see this page.
@Ropu & @thinginnovations, a high number of CRC errors only means you have a lot radio interference. This cyclic redundancy check is used to verify message integrity.
Hint: the “gateway_conf” with a host name in the server_address requires DNS resolving to be set up. The MultiTech setup instructions do not take DNS into account for static IP configuration. To configure DNS, remove the existing ‘/etc/resolv.conf’ (it is a link) and create a file with a valid nameserver:
nameserver 8.8.8.8
Edit: after gateway restart resolv.conf has been reset to an empty file. Using an IP address in the server_address field might be easier right now.
We have a Conduit with mLinux that sends the package to the server (it seems), but we don’t get any ACKs. We also don’t see any packets through the API web interface or InfluxDB.
We have also installed an instance of the server (croft, jolly, server) and don’t seem to get any packets there either.
Are you using DHCP? If not mLinux will probably not have valid name resolving in place. I had to use the IP address for the server in the configuration. (I’m using fixed IP and resolv.conf gets reset to an empty file at boot)
Try running ‘tcpdump -i eth0 -n -vvvX host 54.229.214.112’ to see if there is any traffic.
@Kersing Thanks for your prompt response.
I am using static IP and fixed your DNS issue as per your previous suggestion. In any event , I have tried with the url and the ip. I did the tcpdump as per your suggestion and it seems that i do get a response from the server (see below), however it does not show on the % of ACK on the log or on the InfluxDB.