Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

help in SENDING AT COMMANDS VIA UART

Status
Not open for further replies.

aslsh21

Newbie level 3
Joined
May 2, 2010
Messages
3
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Location
egypt
Activity points
1,297
hi all
please can any one help me
i want to control a bluetooth chip (parani esd 1000) with micro pic18f4550
i have a problem in sending AT COMMANDS VIA UART
CAN ANY ONE SEND ME A SAMPLE FOR A C CODE (MICRO C)
TO SENT ONE COMMAND & RECEIVE "OK"
THE AT COMMAND EX: ATZ
THANKS ALL
:cry:
 

Hi

Basically to send AT command via UART is to send ASCII chars

First learn how to convert chars to ASCII (adding 0x30....) , fill your UART buffer with the ASCII and hit the sand button

All the best

Bobi

The microcontroller specialist
 

thanks bobi
i will try this & inform you
 

Just a thought -

if the chip is following the Hayes protocol you may have to send the escape sequence first. This just stops it interpreting your characters as data and allows them to be commands.

To try this send

+++SPACEATZ

Thats a space character not the word space by the way.

The delay between the space and your ATZ should be no more than about a second if I remember rightly (but check up on that) The hayes protocol should be online somewhere but take note it is often implementation dependant

jack
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top