Thread: Problem with Serial I/O to RS-232 Port

  1. #16
    Registered User
    Join Date
    May 2010
    Posts
    4,632
    In your code
    PutSerialChar (rtxSpaFd, (char)RTX_115K_BAUD);
    PutSerialChar (rtxSpaFd, (char)RTX_115K_BAUD);
    Please show how RTX_115K_BAUD is defined.

    Jim

  2. #17
    Registered User
    Join Date
    Oct 2010
    Posts
    9
    #define RTX_115K_BAUD 0x85

  3. #18
    Registered User
    Join Date
    May 2010
    Posts
    4,632
    So it is an unsigned char not a char. You should change your PutSerialChar to use an unsigned char.

    Jim

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Serial port read/write problem
    By ojaro in forum C Programming
    Replies: 5
    Last Post: 06-25-2010, 08:26 AM
  2. Send image (.jpg) file over serial port
    By aSpareName in forum Networking/Device Communication
    Replies: 2
    Last Post: 06-30-2009, 09:35 AM
  3. serial port to poll on request
    By infineonintern in forum C++ Programming
    Replies: 2
    Last Post: 06-11-2009, 06:52 AM
  4. Serial Port - Problem with binary frames
    By estratos in forum Linux Programming
    Replies: 2
    Last Post: 01-18-2006, 06:22 AM
  5. Serial port read..can someone tell me..
    By Unregistered in forum C Programming
    Replies: 3
    Last Post: 06-27-2002, 08:21 AM

Tags for this Thread