WS6318 Responding Junk Characters to AT Command

Hello… I’m currently doing a project to send data via sms. I have Atmega328P connected to WS6316.
I think I have done the power ON sequence correctly as the WISMO_Ready is HIGH after the sequence (based on PTS Doc.).

My problem is WS6316 is not responding correctly to my AT commands… even a simple AT i will receive some random character instead of ‘OK’. My serial port setting now is 115200-N-1. I’m not sure what is the problem… I also has tried changing the baudrate to all the possible baudrate but to no avail :cry: :cry: :cry:

I also try sending AT+IPR=115200 to set the baudrate, AT+IFC=0,0 for no flow control, and AT+ICF=3 for 8 data bit and 1 stop bit (not sure abt the parity bit though)… Please help as I’m at my wits end!

Thank You In Advance!

Try once AT+WDM=2 followed by AT+CFUN=1

-Alex

Tq Alex, Ive tried that but still get the same results. I have two questions:

  1. About the autobauding, the datasheet stated default is 115200bps, if i want to use slower speed say 19200bps, it says that i should transmit char ‘A’… Hv tried this and then send AT+IPR=19200, but it seems like the ws6318 still reply in 115200 (i measure the data width using scope) albeit the junk characters. Is my method to change the baud rate correct?

  2. How do I turn off the space parity bit, is it off or on by default?

Thanks!

Hi,
i did some tests using hyperterminal…
ati
WS6318

OK
at+icf?
+ICF: 3,3 // it shows space is the default parity

OK
at+icf=?
+ICF: (3),(3)

OK
at+ipr?
+IPR: 115200 // current IPR is 115200

OK
at+ipr=?
+IPR: (1200,2400,4800,9600,19200,38400,57600,115200),(0,1200,2400,4800,9600,1920
0,38400,57600,115200)

OK
at+ipr=19200 // I changed that to 19200
OK
àààààààat // after which i’m getting some random values. Then i change my hyperterminal port settings and selest 19200 as speed
OK
at+ipr=?
+IPR: (1200,2400,4800,9600,19200,38400,57600,115200),(0,1200,2400,4800,9600,1920
0,38400,57600,115200)

OK
at+ipr=115200 // again I changed to 115200
OK
ùøñat /// junk data. then i changed hyperterminal configuration to 115200
OK
at
OK
at+ipr?
+IPR: 115200

OK

Image will let you know how i changed hyper terminal configuration.

-Alex


Wow, tqvm for ur help!

I see that although WS6318 stated that the space parity is default, it seems to works fine with ur hyperterminal setting of no parity… Mine is different story… Right now Im playing around with serial parity and stop bit configuration in case one of them will work…