There is probably an obvious reason for why I’m not receiving the whole hex array I sent?


Thanks
There is probably an obvious reason for why I’m not receiving the whole hex array I sent?


Thanks
Hello,
Please try sizeof(tx_message) instead of strlen(tx_message). strlen() will stop counting when as soon as it reaches the first null character (0x00) in your array.
Best regards,
Vidar
Thanks!
Also, I’m just trying to send some simple messages, and this exact code worked yesterday, but today I only receive zeros in my Arduino program (also same as yesterday).
Tried with a USB to TTL, and RealTerm, still zeros. However changing the pins to usb(rx/tx pins) and baud rate to 115200, it works fine.


Stig24 said:However changing the pins to usb(rx/tx pins) and baud rate to 115200
I would not expect you to receive data any data at all if the TX and RX pins were swapped. What do you use for the USB - UART bridging, is it the Jlink on our development kit?
ah, sorry, i'm using the jlink yes with the RX_PIN_NUMBER and TX_PIN_NUMBER. That works fine.
Did a reboot of computer and reflashed nRF52. Everthing works fine now