Xbee cellular module TCP UDP

Hi, we’Re tring to use the Xbee module to send data to a server. We are doing our firsts test and we’re trying to send a small string using TCP or UDP protocol but nothing is working. We have setup Destination adress and Destination port according to the server and then send a stricg using the XCTU console but we receive nothing on server side. We’ve tried with a TCP server, and with a UDP server. Execpt of the DL and DE is there other parameters essential for this type of project?

Thank you
Regards

Yes you do need to use the IP setting as well.

I would suggest looking at the example/sample applications found within the manual.

I was able to make it worked with a demo TCP server on my phone, but connection does not work all the time. I’m trying to use the demo echo server from digi but it does not seems to work. I’m sending message but get no response back
https://www.digi.com/resources/documentation/digidocs/90002258/tasks/t_echo_server.htm
Is there a way to know if server is still available?

Thank you

It sounds like you’ve covered the basic setup with the destination address and port, but ensure that the Baud rate, PAN ID, and API mode are correctly configured as well. Double-check the AT configuration settings on both the Xbee module and the Cleaning server. Additionally, verify if there are firewall or network restrictions blocking the connection.

@mikehengton215 this issue is related to an XBee Cellular module. The Cellular product does not have a PAN ID.

I understand that Xbee cellular does not have a PAN ID. Why a PAN ID would be needed?

@pgagne007 an XBee Cellular does not use a PAN ID. I don’t think that @mikehengton215 was paying attention to the product when he listed the PAN ID any other functions.

Using TCP client on my phone I was able to connect to echo server using same information, but double checked all information for Xbee module configuration, all the same as the demo(IP, TD, DL, DE), and I’m not receiving anything from the echo server.
Could it be the XCTU version? or the firmware of the module?

Thank you
Regards

I confirm IP is not blocked by carrier as I tested using same SIM card on a tablet and I was able to connect to the echo server.

The module expects the ports to be in Hex value. What value did you enter into the module?

What firmware version is on the module?

What is the value of the AI and CI commands?

Hi, the port is same value as the echon demo, the entered value is 2329, after trying to send data to echo server AI is still 0 and CI is FF.

Thank you

I have also used the API mode to send TX IPv4 command to echo server IP and port (52.43.121.77 port0x2329) and after sending command I have No server as Delivery status. But same informations works from TCP client I have on my phone.
So I’m able to connect with the module to the TCP server on my phone, but not on the TCP echo server, but I’m able to connect to echo TCP server with my phone
I get the feeling that there a specific configuration that avoid the module to connect to echo server, but even I I reset module to default state it always same problem.

Regards

I’ve just tried with the echo UDP configuration (52.43.121.77 portx2711) I have TX status OK but no response back from the server

Please check your DL value and ensure that it is correct.

atdl52.43.121.77
OK

When I do, I get the following:
test
Echo Server Starts
test

If this does not work, then it could be a SIM issue. IE your SIM may have a private APN/VPN.


Hi, I confirm DL is OK. I thought that it could be SIM but I’ve tested same SIM card in tablet with a TCP app and it is working OK, so I pretty sure SIM is not the problem. I’ve also tried my cell phone SIM card in the Digi module and I have same result.
Thank you
Regards