Shop OBEX P1 Docs P2 Docs Learn Events
Catalina host serial support — Parallax Forums

Catalina host serial support

michael1991jmichael1991j Posts: 2
edited 2011-11-10 12:01 in Propeller 1
Hello

I am currently working on a project with a propeller board and I was wondering if anybody knew if catalina the c compiler supports host USB serial. I am trying to interface a IMU over serial. It appears to me that I can not find any example code. Could somebody please point me in the right direction or possibly provide an example.

thank you

Comments

  • David BetzDavid Betz Posts: 14,516
    edited 2011-11-10 08:21
    Hello

    I am currently working on a project with a propeller board and I was wondering if anybody knew if catalina the c compiler supports host USB serial. I am trying to interface a IMU over serial. It appears to me that I can not find any example code. Could somebody please point me in the right direction or possibly provide an example.

    thank you
    If you mean using the PropPlug to interact with a program running on the Propeller over a serial connection you can do that by using the PC HMI. I think -DPC on the command line is all that is needed to select this option.
  • michael1991jmichael1991j Posts: 2
    edited 2011-11-10 08:25
    David Betz wrote: »
    If you mean using the PropPlug to interact with a program running on the Propeller over a serial connection you can do that by using the PC HMI. I think -DPC on the command line is all that is needed to select this option.
    currently I am using a ftdi chip to interface with it
  • David BetzDavid Betz Posts: 14,516
    edited 2011-11-10 08:28
    I think that should still work. The PropPlug is nothing but an FTDI chip anyway. If you use your FTDI chip to download the Propeller you can almost certainly use it with the -DPC option.
  • Cluso99Cluso99 Posts: 18,069
    edited 2011-11-10 12:01
    michael1991j: Firstly, welcome to the fabulous world of the propeller and this great forum.

    You are referring to "host" USB. The answer is therefore more complex than it seems. It really depends on what interface and protocols are required for the USB host driver. If it is merely a serial interface, then Catalina supports a serial interface to which we often attach a USB device chip (usually the FT232RL) and often called a PropPlug. This connects to the PC using a virtual serial driver in Windows. *nix etc have also been used on the PC.
Sign In or Register to comment.