VB Binary Serial Help for someone


Results 1 to 3 of 3

Threaded View

  1. #2
    Join Date
    Oct 2004
    Location
    Italy
    Posts
    695


    Did you find this post helpful? Yes | No

    Default

    Hi,

    The RS-232C standard describes a communication method where information is sent bit by bit on a physical channel. The information must be broken up in data words. The length of a data word is variable. On PC's a length between 5 and 8 bits can be selected. This length is the netto information length of each word. For proper transfer additional bits are added for synchronisation and error checking purposes.

    To send your 16-bit value over RS232 you will need two data words.

    1 START BIT + 8 DATA BITS + 1 STOP BIT (total 10 bits)
    1 START BIT + 8 DATA BITS + 1 STOP BIT (total 10 bits)

    You will also need to ensure the integrity and correctness of the transmitted data.

    Example of a simple ASCII message-based protocol suitable for use on serial lines:
    http://www.embedded.com/1999/9911/9911feat3.htm


    Best regards,

    Luciano
    Last edited by Luciano; - 15th December 2005 at 16:41.

Similar Threads

  1. Send binary file to pic over pc serial port
    By xnihilo in forum mel PIC BASIC Pro
    Replies: 20
    Last Post: - 3rd May 2011, 14:47
  2. Serial reading of binary at 75 baud
    By JasonMarsh in forum Serial
    Replies: 5
    Last Post: - 20th February 2008, 17:36
  3. serial connection n vb interface
    By gidah in forum Serial
    Replies: 1
    Last Post: - 18th September 2006, 14:54
  4. VB sending serial data to PIC
    By Tissy in forum Serial
    Replies: 7
    Last Post: - 8th March 2006, 19:31
  5. Serial from 16F877 to VB
    By jrudd in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 21st March 2005, 00:33

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

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