serial terminal question

johnlong

Senior Member
Hi All
using the following code to test a wireless link between 2 dorjo
when i launch the terminal within editor I get strange values (72 or 85) the Hello
is ok. Using the terminal set at 9600 N 8 1
when I use Cool Term the expected values are as expected linking the units with the "hello" preamble
incing b0 upto 25 changing 26 to "E" back to the top and repeating any thoughts anyone as to why cool term works and picaxe terminal
does not
Code:
Symbol Qualifier= 254 'data recieve
 
   main:
   do
  Serin B.2, T9600,(Qualifier),b0,b1,b2,b3,b4
  
   pause 200
  
   sertxd(b0,b1,b2,b3,b4," ")
    b0=0:b1=0:b2=0:b3=0:b4=0
   do 
       Serin B.2, T9600,b0
   pause 200
   
   sertxd(#b0," ")
   loop while b0<>"E"
   loop 

 Symbol Qualifier= 254 'transmitting

  MAIN:
   pause 100
   Do
    serout A.0,T9600,(85,85,85,85,Qualifier,"Hello")
    
    pause 1000
    b0=0
    
    do while b0<>"E"
        b0=b0+1
        if b0=26 then:b0="E":endif
         serout A.0,T9600,(b0)
         pause 1000
         
   loop 
    loop
regards john
 

hippy

Technical Support
Staff member
It could simply be that the PICAXE Terminal is reporting things that Cool Term isn't. The "85" you are seeing are possibly the preamble bytes, the "75" perhaps a corrupted preamble byte as the receiver locks on.

Perhaps post screen shots of each terminal so it's more clear as to what is going on or what the difference may be.
 
Top