Hi guys, I have been working with QG8 micro, I was trying to receive and save some data by using the Asynchronous Serial Communication Module with processor expert option but I have a very suspicsious problem, the data that i intend to send are -> 123.456.7.x and if i use 'RecvChar' and 'SendChar' methods i am able to see the complete data, but when i try to save it in to a vector it only get the 3 first bytes -> 123 , the data after this is complete loss and i do not why.
Event.c file:
- Variables
- Function
Main.c file:
Thank you for your help.
pdt: my english is not very good, but i'm trying to improve.
Hi David,
'RecvChar' and 'SendChar' can only transfer char type value.
if you want send a string 123.456.7.x, you need convert 123.456.7.x to a string then send them one by one.
then make sure if the data array is converted correct. the ascii code of "123.456.7.x" is:
can this help you?
Have a great day,
Jennie Zhang
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
Hi Zhang,
Thanks for your reply, I will fix my sending program in order to do what you suggest. I am going to post my results when the test is ready.
good! thanks!
Have a great day,
Jennie Zhang
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------