PICcoder.co.uk Forum  


Post a new message in "USART/SCI/EUSART"
Name:
Subject:
This image contains a scrambled text, it is using a combination of colors, font size, background, angle in order to disallow computer to automate reading. You will have to reproduce it to post on my homepage Enter what you see: *
tips: hit Reload page before writing a text if you have difficulty reading characters in image
topic icon:
no
boardcode:
 Colour:  Size:   Close all tags
Message:

emoticons
B) ;) :) :P
:laugh: :ohmy: :sick: :angry:
:blink: :( :unsure: :kiss:
:woohoo: :lol: :silly: :pinch:
:side: :whistle: :evil: :S
:blush: :cheer: :huh: :dry:

Topic History of: problem setting the EUART speed
Max. showing the last posts - (Last post first)
Author Message
majestrix Hello Dariog,

yeah, i connected the module to PC, configured it and put it back to my device. and i guess it stores the configuration if u dont alter it, right..??

actaully i wanted to do it every time i boot the device too, coz in case something goes wrong with the setting.. but so far no problems.

well i guess i didnt need to remove the trailing bits after all..

i as well tried with the configuration software in the LPRS site (i guess its just a fancy terminal program). well it configures wheather u use it or terminal as far as i'm concerned. phew..

thanks.



Hasan
dariog ok, I'm happy then !



As for the configuration... you mean that you set the configuration using a PC and then connect the Radio to your USB device? I , on the other hand, do set the parameters at boot, every time...

Should be ok in both cases. Actually, I didn't even care that you could store configuration into the LPRS !



Ah, you did not have to remove the trailing "zeros" then?
majestrix Hi Dariog,

well it seems like we are having two different datasheets after all.. anyhow i checked with hostready pin HI today and was able to implement the link..

for configuration i'm directly connecting to PC with a MAX232 and configuring it.. not the best solution, but as long as it works right..?

thanks for the help man.



Hasan
dariog majestrix wrote:



Well, it looks fairly similar to me too. i mean ur method and the way i was doing it. may be the prob is created by the null string then..?





yeah, I hope so





also i see that in ur RECEIVE_DATA fuction u have LATBbits.LATB0=0; (which i believe is setting the "host ready" signal) but what i undestood from the datasheet hostready pin of the transceiver has to be put to Hi to receive data. but you are putting it to LO.. did i get something wrong here, or that line is code is not what i'm assuming it to be (host ready)?





oh, well, on page 2 of 10 of a datasheet named "easyradio ER900FHTRS 1-4 Iss 1-3 April 2003" I see that you have to pull dat pin down in ordr to have LPRS transmitting out its bytes. But I saw many flavours of that datasheet so maybe you've got a different one.

The one I trusted more (though I don't remember any contradiction, just less clarity among the datasheets) says that LPRS goes "Busy Output" when has gotten enough bytes to send on the air, and that Host REady is low when the Host is Ready to receive from LPRS.







and one other thing.. in the RECEIVE_DATA func, i see u are returning i (a local variable to the func), but when u are calling u are just calling as RECEIVE_DATA(myBuf,9); i couldnt really figure out what that i does.





it merely returns the #of chars read, so it's a kind of confirmation (that I don't even use, at the time...)





one more qn... I dont see you checking the echo; if it actaully echored the right characters., are u using the fast ack method..? that sending 0x06 as ACK..





No, I'm not using FAST-ACK. I simply ignore the return value... at the moment.
majestrix Hi Dariog,

Thanks for the reply...

Well, it looks fairly similar to me too. i mean ur method and the way i was doing it. may be the prob is created by the null string then..?

also i see that in ur RECEIVE_DATA fuction u have LATBbits.LATB0=0; (which i believe is setting the "host ready" signal) but what i undestood from the datasheet hostready pin of the transceiver has to be put to Hi to receive data. but you are putting it to LO.. did i get something wrong here, or that line is code is not what i'm assuming it to be (host ready)?

and i'm not questionang ur method, but just curious

and one other thing.. in the RECEIVE_DATA func, i see u are returning i (a local variable to the func), but when u are calling u are just calling as RECEIVE_DATA(myBuf,9); i couldnt really figure out what that i does.

one more qn... I dont see you checking the echo; if it actaully echored the right characters., are u using the fast ack method..? that sending 0x06 as ACK..

thanks for ur help.



Hasan
majestrix Hi Dariog,

Thanks for the reply...

Well, it looks fairly similar to me too. i mean ur method and the way i was doing it. may be the prob is created by the null string then..?

also i see that in ur RECEIVE_DATA fuction u have LATBbits.LATB0=0; (which i believe is setting the "host ready" signal) but what i undestood from the datasheet hostready pin of the transceiver has to be put to Hi to receive data. but you are putting it to LO.. did i get something wrong here, or that line is code is not what i'm assuming it to be (host ready)?

and i'm not questionang ur method, but just curious

and one other thing.. in the RECEIVE_DATA func, i see u are returning i (a local variable to the func), but when u are calling u are just calling as RECEIVE_DATA(myBuf,9); i couldnt really figure out what that i does.

one more qn... I dont see you checking the echo; if it actaully echored the right characters., are u using the fast ack method..? that sending 0x06 as ACK..

thanks for ur help.



Hasan