6 years, 9 months ago.

xdot sending Char string

Hi ,

recently I have been able to send a UNIT8_t message to a Lora gateway from a Xdot dev board. I am trying to send a Char String like how it works when using Dot- AT-Firmware. I need some indication to start modifying the program.

thanks in advance .

1 Answer

6 years, 9 months ago.

Some code that you want to modify and what problems you've hit when you try to do this yourself would make it a lot easier to give you helpful answers.

Generally all you need to do is cast the char string to a uint8_t pointer and then use strlen() to set the number of bytes to be transmitted. Depending on your application you may want to send strlen()+1 bytes so that the null terminator at the end of the string is also sent.

Hi Andy,

thanks for the comment ! now I am able to send a char string .

but that lead me to another detour. I tried to used the following command to increase the data rate of the TX to 53 bytes:

if (dot->setTxDataRate(mDot::DR1) != mDot::MDOT_OK) { printf("failed to set Data Rate"); }

but I went nowhere after the code was executed. the payload still stayed at 11 byte as what the default was.

any ideas where I went wrong for this ?

thanks

posted by Patrick Yuan 13 Jul 2017