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
Visit site
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

Cookies are required to use this site. You must accept them to continue using the site. Learn more…