Quantcast
Channel: Question and Answer » uart
Viewing all articles
Browse latest Browse all 57

Bluetooth communication issue avr-pc

$
0
0

In the last few days I was messing around with avr <-> pc communication.
Thanks to the help that I received here I managed to establish a good connection using pl2303 ttl-to-usb converter.

Now, when I try to use a bluetooth module (bluetooth mate silver, from sparkfun) I encounter a new problem: Despite the fact that I connected the bluetooth module the same way as pl2303 (RX to TX, TX to RX) and I connect to it (via rfcomm), I don’t get anything from it. I also tried to send data to the mcu trough bluetooth, but I didn’t have any more success.

If I connect the RX and TX of the bluetooth module one to another the data echoes back, if I send something.

Connecting in parallel the pl2303 and the bluetooth (RX w/ RX, TX w/ TX) and then to the mcu I can see clearly that the one is receiving something, and the other one does not.

In this print-screen is easy to see both terminals and the bluetooth connection (the ‘connected’ LED lights up on the module).

enter image description here

Concerning the code, I used this library. I initialize the connection baud at 9600 (and cutecom at 1200 due to some prescaler) and 8N1 (default).

I hope I was specific enough and coherent describing this issue.


Viewing all articles
Browse latest Browse all 57

Trending Articles