PDA

View Full Version : Transceiver ER900TRS Easy Radio



Pesticida
- 16th August 2008, 11:36
Hi

I have a Problem with my ER900TRS Easy Radio Transceiver!

When I use this Syntax: hserout ["A",DEC3 Adval[0],"B",DEC3 Adval[1],13,10]

I Receive on my PC Corrupt data,why?!

But when I use this:hserout ["A",Adval[0],"B",Adval[1],13,10] , without DEC3 is all OK!

I try some Pause after HSEROUT but nothing is happend!

I use 19200 Baudrate and 4 Mhz 18F452,its all fine just the DEC syntax make Problem.

Maybe someone have the same Trouble and a answer for me.

Thank You for any help.

Ragards Pesti

Archangel
- 16th August 2008, 20:51
Hi Pesti,
What kind of data is stored in ADVAL? What I am going to say may not be right, it is worth investigating on your part however . . . DEC forces HERSEROUT to send data as Decimal numbers. When you send without using it, I think it is going out as ASCII. Apparently your "reciever (I.E. computer, serial LCD . . . )" is expecting ASCII. To communicate both devices must speak the same language.

skimask
- 17th August 2008, 06:47
When I use this Syntax: hserout ["A",DEC3 Adval[0],"B",DEC3 Adval[1],13,10]
This will send out:
A
(3 decimal characters denoting the value in Adval[0])
B
(3 decimal characters denoting the value in Adval[0])
(CR)
(LF)


But when I use this:hserout ["A",Adval[0],"B",Adval[1],13,10] , without DEC3 is all OK!
This will send out:
A
(the actual value of Adval[0], as in a single byte value)
B
(the actual value of Adval[1], as in a single byte value)
(CR)
(LF)

Big difference between the two...

Pesticida
- 17th August 2008, 11:25
Hi

I found the mistake,I use after HSEROUT just 10 mS Pause this is to cheap,I'm using now 50 mS and all is oK!

The receiver part need ~20 mS to be Ready,My problem is that i dont use the Busy and Host Ready Input.So I msut to take Greater Pause Intervalls.

Thank you

Regards Pesti