How can i send 0x00,0x07,0x08,0x0a,0x0d,0x1b using HAL_UART_Transmit??
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2016-09-24 2:37 AM
Posted on September 24, 2016 at 11:37
hi
I'm using nuclei-f446re and LoRA communication module.recently, i tried to send 0x00(null).but i can't.so i tried all all code send using LoRA comm module to another module. The result was not successful.Not sent char : 0x00, 0x07, 0x08, 0x0A, 0x0D, 0x1B (6 character not sent)How can i send this character?source code------------------------------------------------------------------------
for
(n=0;n<=97;n++) sendData[n] = n;sendData[98] =
'\r'
;sendData[99] =
'\n'
;HAL_UART_Transmit(&huart2,(
uint8_t
*)sendData,100,1000);------------------------------------------------------------------------
This discussion is locked. Please start a new topic to ask your question.
2 REPLIES 2
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2016-09-24 3:52 AM
Posted on September 24, 2016 at 12:52
Can you send something else like text. I ask because it matters if you are able to send something or nothing at all.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2016-09-24 6:26 AM
Posted on September 24, 2016 at 15:26
Sounds like you might want to read the documentation for your LoRA module to understand how it actually works and what it expects.
I suspect that you need to look at how it ''escapes'' special characters, like you do in C '\n' or ESC ESC for other protocols.
Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
Up vote any posts that you find helpful, it shows what's working..
