So its not your datatype: even more most likely its that you have the port configured improperly to fit what will be on the additional finish and as a result it will be echoing back issue marks as I dont know heroes - or what it will be sending back isnt recognised by Home windows as legitimate characters so it is usually being replaced on entrance.
Read Serial Port Powerbuilder Code Indicates ThatA quick scan of your program code indicates that you are usually establishing it up tó 57,600 baud and commenting that as 9,600 baud - one of those is definitely incorrect (And most likely the parity mainly because properly) Id suggest that you use something like Hyperterminal to verify your marketing communications and create sure that you possess specifically the correct port settings before you start into program code - normally you are usually trying to debug éverything at the exact same time with no idea of what is definitely working so far.When you have got it operating via hyperterminal, personally send out a identified command word to the gadget, and catch its response.Then established your program code up to do exactly the exact same thing, send the same control, and appear cautiously at the reaction before shifting on to trying anything even more advanced.
I am planning on the answer from the gadget to become in such format - 0.013. ReadFile(hComm, SerialBuffer, BUFFERLENGTH, NoBytesRead, NULL). All appears great as anticipated but when I study and create to both ports (not using Putty at all) I obtain the rates and the m from the write. I do text ser4.read(100) then printing it out I get b-this way rates and apostrophe not really certain why Any assist or clues greatly appreciated. Read Serial Port Powerbuilder Serial Device WithinI wish communicate to a serial device within 15mh interval using C. If its a simple matter you dont wish to obtain too bogged down in Windows guts Also 15 master of science as Philip said is not really to quick if the communications are small i.y. K it would end up being fine.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |