Author Topic: UART Problems  (Read 590 times)

0 Members and 1 Guest are viewing this topic.

Offline tzankoffTopic starter

  • Full Member
  • ***
  • Posts: 118
  • Helpful? 0
UART Problems
« 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?

Offline knossos

  • Robot Overlord
  • ****
  • Posts: 255
  • Helpful? 13
Re: UART Problems
« Reply #1 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).
"Never regret thy fall,
O Icarus of the fearless flight
For the greatest tragedy of them all
Is never to feel the burning light."
 
— Oscar Wilde

Offline tzankoffTopic starter

  • Full Member
  • ***
  • Posts: 118
  • Helpful? 0
Re: UART Problems
« Reply #2 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.

 

Related Topics

  Subject / Started by Replies Last post
13 Replies
4758 Views
Last post October 30, 2007, 10:15:21 AM
by Admin
8 Replies
6445 Views
Last post December 06, 2010, 06:35:36 PM
by Admin
7 Replies
2568 Views
Last post November 02, 2007, 04:21:54 PM
by krich
1 Replies
1068 Views
Last post April 29, 2009, 04:49:19 AM
by Tomas


Get Your Ad Here