majeed1352
Newbie level 3
- Joined
- Oct 18, 2014
- Messages
- 3
- Helped
- 0
- Reputation
- 0
- Reaction score
- 0
- Trophy points
- 1
- Activity points
- 22
Hi
I want to read from Terminal and send the gotten string through CAN BUS.
My problems are :
1- How to read from UART1 by this command : "UART1_Read_Text(input, 13, 255);" . I expected to get the "input" string by pressing the ENTER key, but after typing each character it go to the next line and only the first character enters.
2- CAN BUS sends and receives only one byte (one character) in the each transmission , How to send or receive a string by CAN?
Finally, after turning on my board, it doesn't work for a while and after 10 to 20 seconds it begins to work. It seems that it hangs on during turning on. Who I can make a waiting time for uC to recover to the normal condition to avoid this hang on (it turns some relay at the beginning).
Thanks
I want to read from Terminal and send the gotten string through CAN BUS.
My problems are :
1- How to read from UART1 by this command : "UART1_Read_Text(input, 13, 255);" . I expected to get the "input" string by pressing the ENTER key, but after typing each character it go to the next line and only the first character enters.
2- CAN BUS sends and receives only one byte (one character) in the each transmission , How to send or receive a string by CAN?
Finally, after turning on my board, it doesn't work for a while and after 10 to 20 seconds it begins to work. It seems that it hangs on during turning on. Who I can make a waiting time for uC to recover to the normal condition to avoid this hang on (it turns some relay at the beginning).
Thanks