i have finally decided to start playing around with some wireless modules i have had for a while to pass some time until my other project parts arrive but already am having a few issues getting the recieved data i expect.
these are the modules i am using View attachment UM-LC-1000-V10-EN.pdf.
so far i am only trying to get uncorrupted data from one to the other and diplayed via sertxd using them in the simple "3 wire" mode but i am not getting any where with it.
i understand goeytex had a pair of these to play with and had to re pair them as the device local or link adress was not correct and so they would not communicate.
as far as i can tell my devices do seem to be paired as i am using the 3 board outputs (which indicate rf link status, ready to recieve data and ready to tx data)
to control some led's to show the device status and i have a solid rf link ok led on both as well as the tx ready led to indicate the devices are ready for data input.
when i attempt to send data from one device to the other i do see activity on the receivers "data recieved" output when it recieves something to pass along to my 08m2 which should sertxd back out to the terminal window but regardless of what ever i try whether an inverted or non inverted serial com setup to /from the chips i get pretty much garbage.
i know that from the sounds of it it is going to be a communication issue to do with baudrate or polarity and no doubt i have overlooked something simple so i could definately do with some more experienced eyes than mine seeing any problems.
i would like to use these devices in the 5 wire hardware flow control method but at the moment if i cant get valid data out to see whats going on then i assume i will have issues trying to setup things in the config registers and trying to get packets back to read on the terminal to see what the seetings ect are.
simple tx code:
rx code:
this is my first time playing with wireless of any kind so i am a bit stumped
these are the modules i am using View attachment UM-LC-1000-V10-EN.pdf.
so far i am only trying to get uncorrupted data from one to the other and diplayed via sertxd using them in the simple "3 wire" mode but i am not getting any where with it.
i understand goeytex had a pair of these to play with and had to re pair them as the device local or link adress was not correct and so they would not communicate.
as far as i can tell my devices do seem to be paired as i am using the 3 board outputs (which indicate rf link status, ready to recieve data and ready to tx data)
to control some led's to show the device status and i have a solid rf link ok led on both as well as the tx ready led to indicate the devices are ready for data input.
when i attempt to send data from one device to the other i do see activity on the receivers "data recieved" output when it recieves something to pass along to my 08m2 which should sertxd back out to the terminal window but regardless of what ever i try whether an inverted or non inverted serial com setup to /from the chips i get pretty much garbage.
i know that from the sounds of it it is going to be a communication issue to do with baudrate or polarity and no doubt i have overlooked something simple so i could definately do with some more experienced eyes than mine seeing any problems.
i would like to use these devices in the 5 wire hardware flow control method but at the moment if i cant get valid data out to see whats going on then i assume i will have issues trying to setup things in the config registers and trying to get packets back to read on the terminal to see what the seetings ect are.
simple tx code:
Code:
#picaxe 08m2
setfreq m4
init:
pause 5000
data_tx:
do
for b0 =0 to 255
serout c.1,n4800_4,(b0)
pause 2000
next b0
loop
Code:
#picaxe 08m2
#terminal 4800
init:
pause 1000
data_rx:
do
serin c.1,n4800_4,(b0)
sertxd (b0,cr,lf)
loop