PINK problem
dberkstresser
Posts: 5
I am having trouble setting web variables via the serial connection. I have a very simple test program that attempts to set two variables on the webserver but nothing happens. When I log into the PINK via telnet it shows a bunch of <CLS> and then some random characters when I run the program. I have p3 connected to TX on the PINK and p2 connected to RX.
Any help would be appreciated.
Thanks,
Dan
CON
CLS = 0
OBJ
Serial : "Extended_FDSerial"
PUB Main | Temp
Serial.start(3,2,0,9600) ' Rx,Tx, Mode, Baud
Serial.Str(string("!NB0W00:400")) 'Assign Pink Variable 00
Serial.tx(CLS)
Serial.Str(string("!NB0W01:200")) 'Assign Pink Variable 01
Serial.tx(CLS)
Here is the output from the telnet session.
Received from stamp:[noparse][[/noparse]<CLS>]
Received from stamp:[noparse][[/noparse]<CLS>]
Received from stamp:[noparse][[/noparse]<CLS>]
Received from stamp:[noparse][[/noparse]<CLS>]
Received from stamp:[noparse][[/noparse]<CLS>]
Received from stamp:[noparse][[/noparse]<CLS>]
Received from stamp:[noparse][[/noparse]<CLS>]
Received from stamp:[noparse][[/noparse]<CLS>]
Received from stamp:[noparse][[/noparse]<CLS>]
Received from stamp:[noparse][[/noparse]<CLS>]
Received from stamp:[noparse][[/noparse]<CLS>]
Received from stamp:
Received from stamp:[noparse][[/noparse]a]
Received from stamp:[noparse][[/noparse]
Any help would be appreciated.
Thanks,
Dan
CON
CLS = 0
OBJ
Serial : "Extended_FDSerial"
PUB Main | Temp
Serial.start(3,2,0,9600) ' Rx,Tx, Mode, Baud
Serial.Str(string("!NB0W00:400")) 'Assign Pink Variable 00
Serial.tx(CLS)
Serial.Str(string("!NB0W01:200")) 'Assign Pink Variable 01
Serial.tx(CLS)
Here is the output from the telnet session.
Received from stamp:[noparse][[/noparse]<CLS>]
Received from stamp:[noparse][[/noparse]<CLS>]
Received from stamp:[noparse][[/noparse]<CLS>]
Received from stamp:[noparse][[/noparse]<CLS>]
Received from stamp:[noparse][[/noparse]<CLS>]
Received from stamp:[noparse][[/noparse]<CLS>]
Received from stamp:[noparse][[/noparse]<CLS>]
Received from stamp:[noparse][[/noparse]<CLS>]
Received from stamp:[noparse][[/noparse]<CLS>]
Received from stamp:[noparse][[/noparse]<CLS>]
Received from stamp:[noparse][[/noparse]<CLS>]
Received from stamp:
Received from stamp:[noparse][[/noparse]a]
Received from stamp:[noparse][[/noparse]
Comments
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Pi Guy
Add the following to the top of your program (assuming you have a 5MHz xtal):
You will probably also need a resistor (~1K) between the PINK TX and the Propeller RX. Otherwise the 5V logic from the PINK could overstress the Propeller and cause problems.