The buffer is totally blank! This tells me that I read nothing! So, my home-made terminal is acting differently when it sends the characters. I went through the code and realized that my buffer cannot get filled. Sending and receiving data is absolutely fine as it is expected! Using Tera-Term it is absolutely working in a real-time basis. However, when I use my device whichĪs an electricity meter and suppose to receive data when I send "N" character plus the proper address returning nothing! Testing this code using a NULL Cable and a Laptop to send and receive data was successful. I wrote a piece of code to communicate with outside world through a RS232 Cable using Visual C++ WIN32 Console Application.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |