slimplynth
Senior Member
Evenin' all... the below problem is in relation to the PHP >>> Picaxe thread I stated earlier this week.
Using the command prompt in WinXP, to send serial data to a Picaxe 18M2 (via USB >>> AXE027.)
Executing the first line above tells me that DTR & RTS are both on.
I can switch these off...
C:\> mode com11: dtr = off but by default this sets the parity to even and the data bit=7.
(I'm unable to set all parameters in a single command line however... i've tried numerous combinations and googled like mad for an example)
When the picaxe receives any serial data it should flash 4 leds. (This occurs in the PE terminal/hyperterminal but not from the command line.
I was wondering if dtr & rts being on are causing the problem.. i also wondered if this would be a problem unique to the AXE027.. i.e. would the two lines of command prompt above work with a regular 9 pin serial port
Does anyone have:
1) a small calibre gun to put me out of my misery quicker than this monkey like tippy tappying will.
2) the cmd line necessary to configure the com port in one line so that dtr & rts are turned off on the same line (not completely sure if this is possible.
3).. nah just a small calibre gun will do.
Thanks
Picaxe Code:
Using the command prompt in WinXP, to send serial data to a Picaxe 18M2 (via USB >>> AXE027.)
Code:
C:\> mode com11:9600,n,8,1
C:\> echo 49 > com11:
I can switch these off...
C:\> mode com11: dtr = off but by default this sets the parity to even and the data bit=7.
(I'm unable to set all parameters in a single command line however... i've tried numerous combinations and googled like mad for an example)
When the picaxe receives any serial data it should flash 4 leds. (This occurs in the PE terminal/hyperterminal but not from the command line.
I was wondering if dtr & rts being on are causing the problem.. i also wondered if this would be a problem unique to the AXE027.. i.e. would the two lines of command prompt above work with a regular 9 pin serial port
Does anyone have:
1) a small calibre gun to put me out of my misery quicker than this monkey like tippy tappying will.
2) the cmd line necessary to configure the com port in one line so that dtr & rts are turned off on the same line (not completely sure if this is possible.
3).. nah just a small calibre gun will do.
Thanks
Picaxe Code:
Code:
Setfreq M8
Symbol LED_Pause = 100
Main:
b0 = 0
Serrxd b0
If b0>0 Then Goto LED_Flash
Goto Main
LED_Flash:
For b1 = 1 To 10
High B.4
Pause LED_Pause
High B.5
Pause LED_Pause
High B.6
Pause LED_Pause
High B.7
Pause LED_Pause
Low B.4,B.5,B.6,B.7
Pause LED_Pause
Next b1
Goto Main
Attachments
-
30 KB Views: 45