Thread: Serial Programming (split)

  1. #1
    Registered User
    Join Date
    Oct 2006
    Posts
    2
    Hi,

    Can anyone help me in implementing " Ferranti " protocol in C.
    i need to write a program in C, OS being UNIX. The thing is I have to open the COM port, write a query and read the reply from the device connected to the COM port of the system.

    Can anyone help me in implementing this???

    For the time being for familiarising myself with Serial Programming in UNIX can u provide me some links where I can get code examples for the same...?

    Thanks and regards,
    swathik.

  2. #2
    Registered User
    Join Date
    Oct 2006
    Posts
    2

    Serial Programming (split)

    hi salem.

    I have gone through some of the threads u have been posting. I am right now working on HP-UX OS. My system has got 3 COM ports,
    1- 25 pin CONSOLE PORT.
    2- 9 pin Serial ports of which One could be used as a console port.

    What could be the possible file names for these devices.

    i have tried "/dev/tty1p0" and was able to see the data written on the 25 pin console port through hyperterminal.

    I need t view the written data through the 9 - pin serial ports what should possibly be the file names.

    Thanks,
    swathik.

  3. #3
    {Jaxom,Imriel,Liam}'s Dad Kennedy's Avatar
    Join Date
    Aug 2006
    Location
    Alabama
    Posts
    1,065
    Don't hijack threads! Post new threads for new a new question. Serial ports are typically /dev/ttyS0 /dev/ttyS1 and so forth.

  4. #4
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,659
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Lame null append cause buffer to crash
    By cmoo in forum C Programming
    Replies: 8
    Last Post: 12-29-2008, 03:27 AM
  2. Music Programming - Serial Matrix Display
    By CrazyHorse in forum C Programming
    Replies: 1
    Last Post: 11-12-2007, 04:16 PM
  3. Please help with serial communication problem - Long
    By spdylude in forum Windows Programming
    Replies: 3
    Last Post: 04-06-2005, 09:41 AM
  4. Disk serial numbers (split)
    By zahid in forum C++ Programming
    Replies: 2
    Last Post: 03-18-2003, 08:00 AM
  5. DOS, Serial, and Touch Screen
    By jon_nc17 in forum A Brief History of Cprogramming.com
    Replies: 0
    Last Post: 01-08-2003, 04:59 PM