Results 1 to 1 of 1

Thread: RS232 Packet Interpreter module and MSComm packet "emitter" class

  1. #1

    Thread Starter
    Frenzied Member Jim Davis's Avatar
    Join Date
    Mar 2001
    Location
    Mars base one Username: Jim Davis Password: yCrm33
    Posts
    1,284

    Post RS232 Packet Interpreter module and MSComm packet "emitter" class

    Ok i put this thing together without a single idea how RS232 work. Well thats not completely true because i've been learned it eons ago, but nothing serious. So, i've just seen that some users have problems regarding how to read, accumulate, then assemble valid packets by using rs232 com input port. Thats the main point in this app, the interpreter.

    Because my motherboard is degisned without serial/parallel ports, i cant test it. So i put together an MSComm simulator, or lets call it packet emitter. That is might be useful for development/debugging/testing and such useless things. There's no handshaking and such stuff, you have to extend it if you wish. This emitter is immediately starts throwing dumb packets to your head. You just have to catch them, by the way the demo will show you.

    Because its pretty hard to display binary data on windows, i also put an DOS ASCII character safe text display engine that might help for debugging as well.



    It could be quite easy to extend it for multiline display, for now it is single line capable only.

    I've been tried my best to comment up every single line in this code, to help you understand my logic regarding this thread.

    Hope you find my little work helpful. If so, please leave some feedback.
    Attached Images Attached Images  
    Attached Files Attached Files
    Last edited by Jim Davis; Oct 23rd, 2009 at 09:07 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width