Closed guydillen closed 5 years ago
Hi,
Could you attach the log of GW ? I can not understand what's going on. Thank you for your information.
Hi, Since I can't find //#define RINGBUFFER // print out Packets log into shared memory./" nor the file MQTTSNGWDefined.h, how can I enable debugging?
Thanks.
Can you 'tee' the stdout to a file? ./MQTT-SNGateway [-f Config file name] | tee fileName
directing standard output to a file with tee gives an empty file. I get this when sending packets from PacketSender:
20190530 111831.430 UNKNOWN <--- Unknown Client ! 74 65 73 74
Error: Client(109.131.88.55:56896) is not connecting. message has been discarded.
20190530 111832.296 UNKNOWN <--- Unknown Client ! 74 65 73 74
Error: Client(109.131.88.55:56896) is not connecting. message has been discarded.
20190530 111833.138 UNKNOWN <--- Unknown Client ! 74 65 73 74
Error: Client(109.131.88.55:56896) is not connecting. message has been discarded.
If I send something from my NB-IoT device, nothing enters.
So an upfront question is: is it at all possible to send UDP messages originating from a NB-IoT device to the MQTT-SN gateway (I don't use any specific library on the micro-controller device), i just send out a packet)?
Thanks.
The portNo of the client is defined as 65176.
clients.conf
device,x.x.x.x:65176
but, portNo of the client is 56896. change the address in clients.conf to
device,109.131.88.55:56896
Additionally I had to change/uncomment the following in the gateway.conf file:
ClientAuthentication=YES ClientsList=./clients.conf
Now I get, using PacketSender:
20190530 163956.509 UNKNOWN <--- device 74 65 73 74
20190530 163957.509 UNKNOWN <--- device 74 65 73 74
20190530 163957.758 UNKNOWN <--- device 74 65 73 74
20190530 163957.945 UNKNOWN <--- device 74 65 73 74
UNKOWN in the log means a message type is unkown.
74 65 73 74 is not a MQTT-SN message. what mesage do you try to send?
Close because it has not been discussed for a long time.
hey @ty4tw i am also getting unknown client while client is added in clients.conf and having ClientAuthentication=YES. Also how to pretty print the messages received?
20200521 060619.341 PUBLISH 0008 <--- Unknown Client ! 29 0C 02 76 32 00 08 68 65 6C 6F 6F 6F 73 64 69 75 6E 65 6F 75 68 6A 65 6F 6A 63 6E 30 39 33 32 2D 65 33 30 2D 32 39 39 39
Error: Client(1.39.140.182:10989) is not connecting. message has been discarded.
recved from 1.39.140.182:10989 length = 41
Hi,
I'm trying to use MQTT-SN gateway for my NB-IoT devices, although without success!
So, I first try with PacketSender sending UDP messages to the MQTT-SN gateway. I succeed, but the messages aren't forwarded to my (Mosquitto) MQTT broker. I already tried with different settings in the different config files (gateway, clients, ...).
Finally, however, as I mentioned I would like using the gateway for my NB-IoT devices.
Anyone maybe has some I'm missing or info on what to enter in the config files?
In the gateway.conf I have:
clients.conf
device,x.x.x.x:65176
predefinedTopic.conf