Shop OBEX P1 Docs P2 Docs Learn Events
Reading from PINK — Parallax Forums

Reading from PINK

JomsJoms Posts: 279
edited 2012-02-29 19:27 in Propeller 1
I am having a hard time reading from a PINK. It all seems to be a hold up as the PINK isn't responding. If I receive with a timeout, it will timeout everytime. Is there someting I am doing wrong?

I am running the Full Duplex Serial object twice, once for the pink, the other for the debug. I can write to the pink and that part seems to work correctly.
       PINK.str(string("!NB0R01"))        'Send command to receive from PINK
       
       temp_var1 := PINK.rxtime(100)                'Store PINK String


       Debug.tx(16)                            'Debug received data   
       Debug.str(string("Variable NB0R01:"))                      
       Debug.dec(temp_var1)
       Debug.tx(13)  


       waitcnt(clkfreq/2 + cnt) 
Sign In or Register to comment.