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.

Transmitt ASCII data

Status
Not open for further replies.

amitaiwe

Member level 3
Joined
Feb 19, 2014
Messages
57
Helped
0
Reputation
0
Reaction score
0
Trophy points
6
Activity points
547
HI,
I am sending data via a PIC16f877 to a Bluetooth module (RN42SM)
and from there to a Android application.
The protocol for communication between the pic and the BT is via UART
and the BT default protocol is SPP.

The data received in the android app is always F8 or 80, no matter
whats the value of TXREG is.
What shell be done for getting the right data that's been send?
Is it a problem of the communication or interface?
If not and it's connected to the code- how do I send the data as ASCII characters?

I'm writing in Assembly.
Thanks, Amitai
 

There is a translation problem either on the android side or the transmission side. Can you confirm that the TXREG is sending the right data and can you confirm that the android is able to receive different data? You are better or sending hex values and converting them to avoid translation problems.
 
It works now, besides the problem that the 2nd MSB is always '1' .
I tried changing from sync to async because maybe the stop/start bit changes the result but
it stayed as it was.

Amitai
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top