Trouble passing variables to FullDuplexSerial.spin
Akbar
Posts: 3
in Propeller 1
I am a first time to user. I have downloaded a SPIN file FullDuplexSerial.spin from the library , onto my Parallax propeller prototype board. I have loaded the code into Propeller IDE, it compiles and loads into board, but when I provide input for “PUB Start(rxPin, txPin, mode, baudrate) : okay “ the compile fails. I did try to add this line before the PUB line above “Start (31, 30, 0, 9_600)“ what am I doing wrong, any suggestions.
'Pub main
' Serial.Start(31, 30, 0, 9_600)
'Start(31, 30, 0, 9_600) : okay
'PUB Start(31, 30, 0, 9_600) : okay
PUB Start(rxPin, txPin, mode, baudrate) : okay
Regards
'Pub main
' Serial.Start(31, 30, 0, 9_600)
'Start(31, 30, 0, 9_600) : okay
'PUB Start(31, 30, 0, 9_600) : okay
PUB Start(rxPin, txPin, mode, baudrate) : okay
Regards
Comments
After calling setup my program is free to fly.
I have attached an archive of my standard template as this may help you get up and running. Note that I use a personal derivative of FullDuplexSerial -- the interface is the same, it just has a few more methods.
You are the best, thank you very much for your help.
I did download FullDuplexSerial_Test1.spin with no problem into the board but I did not get anything back while I had the terminal up.
Then I saw FullDuplexSerial_Test2.Spin and load\compile\Download to board\Came up nicely and print text on terminal and ask me to type and echo back.
I am very happy. Now I need to look why test1 did not work.
Then continue with looking at the RX buffer content. and process the data I receive.
Again thank you and have a great day
Regards
Akbar
It seems the Test1 example waits 1 second and then prints something and that's it. It may be that you're missing what is sent by the time you get the terminal open?