I have a program (C language) to send and receive a string to the serial port.
I create too a list of commands I have to send and obtain in order to create the network and join a end device to it.
For example, I need to get the SH and SL value of the end device in order to joining to the network, sending a ATcommand to the end device.
unsigned char start_delimiter = 0x7E;
unsigned char length = 0x0004;
unsigned char frame_type = 0x08;
unsigned char frame_ID = 0x01;
unsigned char at_command = 0x5348;
unsigned char checksum = 0x5B;
char *ATcommand_get_SH= “7E0004080153485B”
My question is:
The ATcommand I need to send is a string right? which format I have to send it?
Thanks in advance.