Shop OBEX P1 Docs P2 Docs Learn Events
Can you use the Propeller Demo Board USB port to communicate with PC ? — Parallax Forums

Can you use the Propeller Demo Board USB port to communicate with PC ?

BeanBean Posts: 8,129
edited 2007-05-25 15:55 in Propeller 1
I've tried using simple_serial with both pin 30 and 31. But I cannot get the red LED (send) to light at all.
I'm just using

Serial: "Simple_Serial"
Serial.Start(30, 31, 9600)
REPEAT
· Serial.tx("A")

I've tried swapping 30 and 31, but I cannot get any lights on the USB port on the demo board.

What am I doing wrong ?

Bean.


▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
“The United States is a nation of laws -· poorly written and randomly enforced.” - Frank Zappa

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
www.hittconsulting.com
·

Comments

  • Chris SavageChris Savage Parallax Engineering Posts: 14,406
    edited 2007-05-24 17:11
    Bean,

    Have you tried using the Full Duplex object? I have seen a few people having issues with the Simple Serial Object. Just a suggestion to narrow things down. Take care.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Chris Savage
    Parallax Tech Support
  • Mike GreenMike Green Posts: 23,101
    edited 2007-05-24 17:12
    Bean,
    The pin numbers do need to be swapped ("Serial.Start(31,30,9600)").

    I've used FullDuplexSerial this way before (in BoeBotBasic). I'm not sure
    if I've tried Simple_Serial though. It should work the same.
    Mike
  • BeanBean Posts: 8,129
    edited 2007-05-24 17:22
    Okay I swapped the pins and I noticed that the red LED does come on for a moment, I guess it has a buffer and if nothing is receiving the data it fills up, then it won't send anymore.

    I think I got it working now, thanks.

    Bean.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    “The United States is a nation of laws -· poorly written and randomly enforced.” - Frank Zappa

    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    www.hittconsulting.com


    Post Edited (Bean (Hitt Consulting)) : 5/24/2007 6:48:52 PM GMT
  • Paul BakerPaul Baker Posts: 6,351
    edited 2007-05-24 18:17
    Yes, the COM port has to be open before you will see the LED lit for any extended peiod of time.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Paul Baker
    Propeller Applications Engineer

    Parallax, Inc.
  • BeanBean Posts: 8,129
    edited 2007-05-25 15:55
    Yep, that was the fixed.
    Working perfectly now using the PLX-DAQ software.

    Thanks to everyone for your help.

    Bean

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    “The United States is a nation of laws -· poorly written and randomly enforced.” - Frank Zappa

    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    www.hittconsulting.com
    ·
Sign In or Register to comment.