Pages: [1]   Go Down
Author Topic: Rx light blinking but no Serial.Available()  (Read 439 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 6
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quick rundown of what I'm using. Arduino UNO r3, BLE shield, and an rs232 shield. I'm basically taking a serial datastream from some hardware and adding a small bit of logic and sending it over Bluetooth. Conveniently the hardware manufacturer has a simulator program for windows. My arduino handles the simulator's datastream without issues, but when I connect the arduino to the actual hardware its a no go. The rx light is on but I get nothing from Serial.available(). I have also hooked the hardware up to a computer using a serial to usb adapter and used realterm to look at the serial stream that also comes through without issue. In my attempts to figure a few things out I change the baud rate at serial.begin all around and not matter what I set the baud rate to the arduino always read the data cleanly. The simulator doesn't have any settings for the baud rate but shouldn't changing the baud rate on the arduino side jumble up the data?

A couple other things I noticed when switching to the hardware vs the simulator is that the RX light blinks with the simulator but when hooked up to the hardware is almost solid lit, I also noticed that the tx light seems to be lit too when hooked up to the hardware, although not so bright. I'm only reading the serial steam, I never write to the Serial tx line so why would this happen? The tx light never blinks when hooked up the simulator on the PC.
« Last Edit: March 25, 2013, 11:13:48 am by hybrdthry911 » Logged

Rome, Italy
Offline Offline
Sr. Member
****
Karma: 20
Posts: 442
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Handshaking issue? The shield probably uses TX, RX and GND only, and it could be that the hardware device expects some form of handshaking (RTS/CTS), which the PC can certainly perform but the arduino + shield cannot. Consult your hardware documentation, then you may probably bypass the issue by shorting RTS and CTS.
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 6
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I thought about that as well but I have the hardware flow control set to none on the realterm application and the PC is receiving the data. Although not that I'm looking at it the CTS light is lit even with none checked. I'll look into this.
« Last Edit: March 28, 2013, 12:13:40 am by hybrdthry911 » Logged

Pages: [1]   Go Up
Jump to: