Need help with communication between Prop and linux running BST (Brad's Spin To
Robofreak
Posts: 93
Hello all,
I switched from windows to linux about a year ago (one of the best decisions I've ever made haha) and downloaded BST from Parallax. I've had no problems with it: I can program the Prop, like uploading a program to the RAM and/or EEPROM. But when it comes down to communication with the built in serial terminal, that's where I run into problems... The odd thing is that the serial terminal will transmit characters to the Prop (I've tested that, telling the Prop to light an LED when receiving a certain character), but when I transmit characters from the Prop to the computer, it doesn't receive them. I've tested it with my own serial terminal program running in Python, and I got the same result. I know it works, because when I switch over to windows and run a serial terminal it receives characters fine.
Help please!
Thanks,
Robofreak
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Austin Bowen,
"One must watch out for mechanics. They start out with a sewing machine, and end up with the atomic bomb" - A quote from someone that I saw on Addall.com
"Not only do I see the glass as half empty, I wonder if anyone poisoned the glass with arsenic" - My dad, inside joke haha
I switched from windows to linux about a year ago (one of the best decisions I've ever made haha) and downloaded BST from Parallax. I've had no problems with it: I can program the Prop, like uploading a program to the RAM and/or EEPROM. But when it comes down to communication with the built in serial terminal, that's where I run into problems... The odd thing is that the serial terminal will transmit characters to the Prop (I've tested that, telling the Prop to light an LED when receiving a certain character), but when I transmit characters from the Prop to the computer, it doesn't receive them. I've tested it with my own serial terminal program running in Python, and I got the same result. I know it works, because when I switch over to windows and run a serial terminal it receives characters fine.
Help please!
Thanks,
Robofreak
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Austin Bowen,
"One must watch out for mechanics. They start out with a sewing machine, and end up with the atomic bomb" - A quote from someone that I saw on Addall.com
"Not only do I see the glass as half empty, I wonder if anyone poisoned the glass with arsenic" - My dad, inside joke haha
Comments
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Visit some of my articles at Propeller Wiki:
MATH on the propeller propeller.wikispaces.com/MATH
pPropQL: propeller.wikispaces.com/pPropQL
pPropQL020: propeller.wikispaces.com/pPropQL020
OMU for the pPropQL/020 propeller.wikispaces.com/OMU
pPropellerSim - A propeller simulator for ASM development sourceforge.net/projects/ppropellersim
I know it's working, because I also made it output to an LED whenever something was happening.
The LED flickers whenever I type something in the terminal, but the terminal isn't reading anything...
I also just physically connected the two lines (TX and RX on the serial port) and it's echoing whatever I type, so I know it's receiving.
I guess the only thing I can think the problem is, would be that the Prop isn't giving enough voltage. But it works when the computer's running windows! haha Maybe linux just doesn't like anything significantly below the +/- 12V of the serial line..? But I figured that'd be a purely hardware aspect of the computer.
Maybe I'll just make a little converter cable to go from my Prop's existing serial circuitry to a max232 circuit, then to the computer.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Austin Bowen,
"One must watch out for mechanics. They start out with a sewing machine, and end up with the atomic bomb" - A quote from someone that I saw on Addall.com
"Not only do I see the glass as half empty, I wonder if anyone poisoned the glass with arsenic" - My dad, inside joke haha
Post Edited (Robofreak) : 7/13/2010 8:28:47 PM GMT
What baudrate are you using?
What is your BST version?
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Propeller Pages: Propeller JVM
Post Edited (jazzed) : 7/13/2010 7:45:08 PM GMT
BST version 0.19.3
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Austin Bowen,
"One must watch out for mechanics. They start out with a sewing machine, and end up with the atomic bomb" - A quote from someone that I saw on Addall.com
"Not only do I see the glass as half empty, I wonder if anyone poisoned the glass with arsenic" - My dad, inside joke haha
Due to unsuitability of internal Clock sources You can't have functioning Serial communication.
Regards.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Nothing is impossible, there are only different degrees of difficulty.
For every stupid question there is at least one intelligent answer.
Don't guess - ask instead.
If you don't ask you won't know.
If your gonna construct something, make it·as simple as·possible yet as versatile as posible.
Sapieha
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Austin Bowen,
"One must watch out for mechanics. They start out with a sewing machine, and end up with the atomic bomb" - A quote from someone that I saw on Addall.com
"Not only do I see the glass as half empty, I wonder if anyone poisoned the glass with arsenic" - My dad, inside joke haha
Quote " I guess the only thing I can think the problem is, would be that the Prop isn't giving enough voltage."
Voltage to the PC or you "serial circuitry"?
Jim
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Austin Bowen,
"One must watch out for mechanics. They start out with a sewing machine, and end up with the atomic bomb" - A quote from someone that I saw on Addall.com
"Not only do I see the glass as half empty, I wonder if anyone poisoned the glass with arsenic" - My dad, inside joke haha