Buy an Axon, Axon II, or Axon Mote and build a great robot, while helping to support SoR.
0 Members and 1 Guest are viewing this topic.
rprintf("+++\r");//go to command modedelay_cycles(3 seconds);//wait for an 'OK', but Im too lazy so I waitrprintf("ATSW20,157,0,0,0\r");//157 for 38400bps, 39 for 9600bpsdelay_cycles(3 seconds);//wait for an 'OK', but Im too lazy so I wait
rprintf("+++\r");//go to command modedelay_cycles(3 seconds);//wait for an 'OK', but Im too lazy so I waitrprintf("AT\r");delay_cycles(3 seconds);//wait for an 'OK', but Im too lazy so I waitrprintf("ATSW20,157,0,0,0\r");//157 for 38400bps, 39 for 9600bpsdelay_cycles(3 seconds);//wait for an 'OK', but Im too lazy so I wait
have you tried sending a newline character before you enter command mode?something like printf("\r+++\r").
maybe you need to send the ascii characters for newline / return carriage - I think its something like 0x0a 0x0dHyperterminal and notepad understand \r \n but the bluesmirf might not.
rprintf("+++0x0d");
have you changed the atmega's baud too?
dont forget to disconnect the blue smirf and restart it so it can re-initialise at the new baud rate
Have you checked the error at those baud rates?