Shop OBEX P1 Docs P2 Docs Learn Events
SX communicating with Turbo C via PC's COM port? — Parallax Forums

SX communicating with Turbo C via PC's COM port?

basicstampedebasicstampede Posts: 214
edited 2008-10-13 16:24 in General Discussion
Hello.· I've recently read a very interesting Nuts & Volts article 125 about SX taking commands from a PC via Hyperterminal program.

The article said, "Once the derivative project is working through a terminal, it's a very simple matter to control the device from our favorite PC development tool:· VB, C, Java, Python, Perl - you name it; the interface is just text."

Does anyone have a simple example using Turbo C?·

Or, does anyone give some hints & guidance on how this is done with Turbo C?· (I guess all I really need to know is how to send and receive ASCII characters with Turbo C to COM port.)

P.S.· I do not wish an example with VB or other languages listed.·

Thanks.

Comments

  • JonnyMacJonnyMac Posts: 9,214
    edited 2008-10-12 14:12
    You really should ask that kind of question in a Turbo C forum.
  • Chris SavageChris Savage Parallax Engineering Posts: 14,406
    edited 2008-10-13 15:45
    This thread is being moved from the SX Forum to the Sandbox Forum as it is off topic.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Chris Savage
    Parallax Engineering
  • LeonLeon Posts: 7,620
    edited 2008-10-13 16:24
    Look for a serial comms library written in C. You should be able to adapt it to your requirements. I've got one somewhere that works with the DJGPP port of gcc, but can't find it.

    Leon

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Amateur radio callsign: G1HSM
    Suzuki SV1000S motorcycle

    Post Edited (Leon) : 10/13/2008 4:30:54 PM GMT
Sign In or Register to comment.