BGS2 UDP server | Telit Cinterion IoT Developer Community
February 19, 2016 - 10:47am, 2097 views
Hi,
Currently we have a UDP cleint connecting to a server and getting an ACK back and all works well. However my client now want s to be able to send UDP datgrams from the server to the BGS2 at any time. We are using fixed IP address SIMs so there is always an IP route to the device. I realise that because of NAT the route back to the source port of the last sent UDP datagram will timeout and not be possible most of the time. Threfore what is needed is a UDP server running on a fixed port number. However UDP server does not seemt o be support on BGS2 -- is this the case?
Thanks
Hello,
You can configure the UDP endpoint to listen for datagrams on the specified port:
AT^SISS=0,address,"sockudp://:6666"
Or you can configure the UDP client to send the datagrams to the specified address:
AT^SISS=1,address,"sockudp://10.10.0.219:6666"
So it is working like the client and server connection.
Please see the examples in the AT commands specification document for the details.
Regards,
Bartłomiej