Shop OBEX P1 Docs P2 Docs Learn Events
dusting off the prop — Parallax Forums

dusting off the prop

ThePenguinMasterThePenguinMaster Posts: 89
edited 2009-04-01 13:39 in Propeller 1
Hey guys, its been a while since i have had free time to work on a project and there is a lot i cant remember. My current problem is that i would like to output to a USB port, and i can not remember how to do this.. it sounds like it may be somewhat simple. I was wondering if there is a way to output to the prop plug that is used for programming the prop.. here should be a USB controller on there and if i can output and then write a program to monitor the port then i would be set.. i remember doing serial ports but i can not remember if i have done USB yet. Any leads or reminders would be appreciated!

Comments

  • BradCBradC Posts: 2,601
    edited 2009-04-01 13:22
    The Prop plug pretends to be a serial port. Easy as it gets.

    On my system I simply open /dev/ttyUSB0 and talk to it same as I would a serial port. I have the propeller talk on pins 31 and 30 and it's all good.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Cardinal Fang! Fetch the comfy chair.
  • MagIO2MagIO2 Posts: 2,243
    edited 2009-04-01 13:23
    FullDuplexSerial.spin included in the Prop tool can be used to send and receive from USB prop plug. Just start Hyperterminal or the terminal program written by Parallax to connect. The Parallax tool is of course better because it closes connection as soon as you leave the window to allow the Propeller Tool re-programming.

    obj
      term: "FullDuplexSerial"
    
    pub main
      term.start(30,31,0,9600)
               ' ^ ^ please double check the order of the pins - I'm not sure if I remember it right without looking in the docs
    ....
    
  • ThePenguinMasterThePenguinMaster Posts: 89
    edited 2009-04-01 13:39
    oh yah! i remember now! I forgot! the debug terminal for the prop! how else would I have used it.. it was a somewhat simple question to answer but I appreciate the help.. it has been a while and i have lost my old project files due to hard drive failure a year ago cry.gif but im ready to start new! Thank you.
Sign In or Register to comment.