Society of Robots - Robot Forum

Software => Software => Topic started by: tzankoff on December 11, 2010, 08:38:55 AM

Title: UART Problems
Post by: tzankoff on December 11, 2010, 08:38:55 AM
Hi guys.

I am having a serious UART problem here. I have a bluetooth antenna attached to UART2. All the wires are in the right place (Power, RX->TX, TX->RX), the battery is fine, power is going to the antenna, all the settings that I use with HyperTerminal to connect have worked before and have not changed...but now HT does not want to connect. I hit the Call icon and it says it connected without any indication that it even tried anything. Usually it takes a second or two to connect, but now it says Connected immediately. I have tried using UARTs 0 and 3 with the same result which does lead me to believe that maybe the UART is not the problem...but I am not sure how to diagnose this further. Can anybody help?
Title: Re: UART Problems
Post by: knossos on December 11, 2010, 09:29:37 AM
  Is your PC able to discover your Bluetooth module, and if so, what COM port does it use?

  Until you get a UART functioning correctly again I wouldn't necessarily rule out the UART (it could be the hardware, the programming, the PCs configuration, the connection to the PC, etc).

  I would try eliminating Bluetooth and try your code using a wired UART connection.  If it works successfully, your problem lies in your Bluetooth implementation.  If it doesn't work then I would try a different program, something simple like a printf() to the UART.

  Once you get UART functioning with your program, I would then look at the Bluetooth module's datasheet again to see how its interfaced (it may require some form of initialization or have other special considerations that may have been overlooked).
Title: Re: UART Problems
Post by: tzankoff on December 11, 2010, 01:39:03 PM
I figured it out. Somehow the COM port in my Device Manager got disabled. I never thought of looking there because I had not fiddled with anything there and had no reason to believe it would change itself or anything like that. Anyway, things seem to be working now. Sorry to bother you.