Problem with Serial I/O to RS-232 Port

This is a discussion on Problem with Serial I/O to RS-232 Port within the C Programming forums, part of the General Programming Boards category; In your code PutSerialChar (rtxSpaFd, (char)RTX_115K_BAUD); PutSerialChar (rtxSpaFd, (char)RTX_115K_BAUD); Please show how RTX_115K_BAUD is defined. Jim...

  1. #16
    Registered User
    Join Date
    May 2010
    Posts
    2,919
    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
    2,919
    So it is an unsigned char not a char. You should change your PutSerialChar to use an unsigned char.

    Jim

Page 2 of 2 FirstFirst 12
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, 09:26 AM
  2. Send image (.jpg) file over serial port
    By aSpareName in forum Networking/Device Communication
    Replies: 2
    Last Post: 06-30-2009, 10:35 AM
  3. serial port to poll on request
    By infineonintern in forum C++ Programming
    Replies: 2
    Last Post: 06-11-2009, 07: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, 09:21 AM

Tags for this Thread


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21