Hi Neil...
Is there specific size/method for UDP and TCP data transmission because I can send and receive 0123456789 and abcdef but unable to send other data like revanth(TCP) and 54211(UDP)
Thanks & Regards
Revanth
Hi Neil...
Is there specific size/method for UDP and TCP data transmission because I can send and receive 0123456789 and abcdef but unable to send other data like revanth(TCP) and 54211(UDP)
Thanks & Regards
Revanth
There are specific sizes for UDP and TCP data transmission on the BP35C5 Wi-SUN module.
For UDP, the maximum datagram size is 128 bytes.
For TCP, the maximum segment size is 1460 bytes.
The reason why you are able to send and receive 0123456789 and abcdef is because these strings are both 10 characters long, which is less than the maximum datagram size for UDP.
Hey bidrohini ,
Both "abcdef" and "gagang" these string have same number of characters then why I am unable to send string "gagang" in tcp.
Image has been of output has been add for your reference
TCP communication between border and router |
---|
Thanks & Regards
Revanth
Hi Revanth,
Thank you for your questions. I have combined the answers onto this thread, I trust that this is OK
Question 1
I have change the network in BORDER. How to check which ROUTER/LEAF is added to which network, also how to remove a ROUTER/LEAF from existing network and add to another network?
---------- ROHM Semiconductor Response. ----------
By executing the “rplsr” command on the Border Router, you can check the Routers/Leafs participating in the Border Router network.
How to move to another network:
Networks are distinguished by Network Name.
If you want to move the Router/Leaf to another network, use the "netname" command on the node to change the Network Name,
then save the configuration and reboot.
----------
Question 2
Is there specific size/method for UDP and TCP data transmission because I can send and receive 0123456789 and abcdef but unable to send other data like revanth(TCP) and 54211(UDP)?
---------- ROHM Semiconductor Response ----------
There are three data communication commands
Since "revanth" is a character string, it cannot be sent with the tcps command.
If you want to send it with the tcps command, you need to convert it to ASCII code, such as 726576616E7468.
The udps command specifies binary data in hexadecimal. 54211 is not accepted because it has an odd number of digits.
It can be accepted if the number of digits is set to an even number, such as 054211.
Your kind support of the ROHM products is very much appreciated,
Kindest regards,
Neil
ROHM Semiconductor
Hi Revanth,
Please find additional information to your question.
Both the datagram size (UDP) and maximum segment size (TCP) of BP35C5 are limited to 1024 bytes.
The default value for TCP Maximum Segment Size in BP35C5 is set to 536 bytes.
To set the maximum segment size to 1024 bytes, execute "tcpopts mss 1024".
The “udps” and “tcps” commands can send “0123456789” and “abcdef” because these commands send hexadecimal data.
"gagang" is not hexadecimal data so it cannot be sent by “tcps”.
Thank you for your interest in ROHM Semiconductor products.
Kindest regards,
Neil
ROHM Semiconductors
Hi Team,
Thanks for the support, I have established communication between two modules. Now i would like to connect Border-router/router/leaf module to STM32F103RCT6 micro controller with UART. Can you guide me how to proceed further on this?? (connection done as per page "28 in BP35C5 startup manual)
Thanks & Regards
Revanth
Hi Revanth,
Thank you for your question, please find information below.
The baud rate of the UART is 115200 bps.
Refer to the datasheet for details on UART settings and peripheral circuits.
With the UART correctly connected, press the reset button (SW2 on BP359C),
If the host microcontroller receives the version information from BP35C5, it is a success.
When controlling BP35C5, “Users Manual” describing the details of each command is required, do you have it?
If you need it, please contact ROHM's sales office or the web form below.
https://www.rohm.com/contactus
Kindest regards,
ROHM Semiconductor