Previous in Forum: How is PLL Tuning Able to Tune In Exactly to Station   Next in Forum: Need Help in Finding Azimuth Sensor for Solar Dish
Close
Close
Close
7 comments
Rate Comments: Nested
Guru
Popular Science - Weaponology - New Member United Kingdom - Member - New Member

Join Date: May 2007
Location: Harlow England
Posts: 16512
Good Answers: 670

UART Comms Problem

10/22/2013 7:18 AM

I'm trying to communicate with an RFID module.
I'm using a test utility provided by the module supplier, to send a command string (provided by them as an example).
No response.
I've tried it at at a slower baud rate 9600 as well as the default 115200.
No response.
I'm sending the correct 8 data bits, 1 stop, no parity etc.
There's another input pin to wake up the module, I've tried pulling it up, down and sideways... No joy at all.
No reponse.
I've even got two modules, both behave the same...
No response.
In desperation I swapped the tx and rx pins.. no joy.
No response.

Fault finding is fine while you still have ideas and options to try.... but I've pretty much run out of ideas
I've E-mailed the supplier asking for tx and rx waveforms from a working module for comparison.
Any of you guys got any ideas?

The tx line to the module is normally low and the data string is a nice burst of 1s and 0s.
I'm sending "BA0201B9".
The rx line out of the module is sitting high... maybe it needs a load/clove of garlic or something hanging on it?

HELP.... bwahhhhh bwahhhh
Del

__________________
health warning: These posts may contain traces of nut.
Register to Reply
Interested in this topic? By joining CR4 you can "subscribe" to
this discussion and receive notification when new comments are added.
Guru
United Kingdom - Member - Indeterminate Engineering Fields - Control Engineering - New Member

Join Date: Jan 2007
Location: In the bothy, 7 chains down the line from Dodman's Lane level crossing, in the nation formerly known as Great Britain. Kettle's on.
Posts: 32175
Good Answers: 839
#1

Re: UART Comms Problem

10/22/2013 7:24 AM

That's what happens when one tries to reverse-engineer LynDoor™ equipment.

__________________
"Did you get my e-mail?" - "The biggest problem in communication is the illusion that it has taken place" - George Bernard Shaw, 1856
Register to Reply
Guru

Join Date: Oct 2008
Posts: 42355
Good Answers: 1693
#6
In reply to #1

Re: UART Comms Problem

10/23/2013 12:50 AM

LynDoor™SureLock software is tamper proof, programer proof, compiler proof, and idiot proof.

It's not cat proof.

Register to Reply
Guru

Join Date: Mar 2012
Location: Out of your mind! Not in sight!
Posts: 4424
Good Answers: 108
#2

Re: UART Comms Problem

10/22/2013 9:22 AM

Did you switch the fax on? Maybe the receiving end is set to a slower baud rate?

Isn't RFID something new? Maybe use Cat Miau language instead of digital. Heck I think its a 64 bit system. The 8 bits wont fly.

But what do I know?

__________________
Common Sense Dictates
Register to Reply
Guru

Join Date: Jul 2008
Posts: 1688
Good Answers: 145
#3

Re: UART Comms Problem

10/22/2013 12:19 PM

Are you using metric 1s and 0s or English?

If you can give the manufacturer's name and part number of the RFID module then others might find some fine print in the data sheet.

I assume you have good power for it. Is there a reset line and are there any reset specifications buried in the notes somewhere?

Might the module refuse to talk if it does not have a "connect" with a RFID tag? It seems a little dumb but it might be done as a power saving or anti-jabber feature.

__________________
Few things limit our potential as much as knowing answers and setting aside questions.
Register to Reply
Guru
Popular Science - Weaponology - New Member United Kingdom - Member - New Member

Join Date: May 2007
Location: Harlow England
Posts: 16512
Good Answers: 670
#4
In reply to #3

Re: UART Comms Problem

10/22/2013 12:59 PM

Data sheet has been scoured and it's rather brief anyway.
Power is good.
It is detecting a tag ok, there's a 'tag present' LED on the board.
I've contacted the supplier asking for waveforms... dunno why they are not in the data sheet as a pic' is worth a thosand words.
I'll hang fire on the manufacturer unless they don't get back to me.
Del
I've been using 5v ones which I've had to saw down to 3.3 volt to fit into the input port.
The zeros seemed to fit ok

__________________
health warning: These posts may contain traces of nut.
Register to Reply
Associate

Join Date: Dec 2010
Location: Australia
Posts: 46
Good Answers: 5
#5
In reply to #4

Re: UART Comms Problem

10/22/2013 10:33 PM

The RFID stuff we play with here ( mainly for door access ) is a bit touchy and it is usually the baud rate that is the problem, we have found you must do a complete computer restart every time you change the rate settings. I was dubious of this when I first had problems but it seems to have solved a lot of issues with lack of communications.

Cheers Glenn

__________________
Have you tried turning it off and on?
Register to Reply
Guru
Popular Science - Weaponology - New Member United Kingdom - Member - New Member

Join Date: May 2007
Location: Harlow England
Posts: 16512
Good Answers: 670
#7

Re: UART Comms Problem

10/23/2013 3:54 AM

Woo Hoo.
Got it fixed.

I got a reply from the supplier. The TX line needs to be high befor and after the data... I suspected this may be the case.
A simple screen shot from a scope included in the manual would have saved a lot of time.

Oddly, just inverting the whole data stream gave immediate success... I'm not going to start nit picking as to why... I shall put it down to the wrong flavour of '1's and just move on.

I'll prob stick to the slower baud rate too.

Del

__________________
health warning: These posts may contain traces of nut.
Register to Reply
Register to Reply 7 comments
Copy to Clipboard

Users who posted comments:

bht2010 (1); BruceFlorida (1); IdeaSmith (1); lyn (1); PWSlack (1); user-deleted-1105 (2)

Previous in Forum: How is PLL Tuning Able to Tune In Exactly to Station   Next in Forum: Need Help in Finding Azimuth Sensor for Solar Dish

Advertisement