433MHz RF communication module #996
Replies: 3 comments
-
Posted at 2018-09-02 by @allObjects To get to the bottom of the issue(s), I 'nlined' the 433 module and began to test with the following - single, generalized code, which behaves according to var ```xMode: 0= receiver, 1=transmitter``````
The only change so far is in the transmitter: logging what pulses will be 'sent' to the transmit device... The output (and error) I get in the console is:
Which tells me that just two (2) transmits made it before Espruino crashed?... weird is the I conclude that There is really something wrong in the State of Espruino. This is quite possible, since all the fuss about 315/433 communication stuff happened 3+ years ago... |
Beta Was this translation helpful? Give feedback.
-
Posted at 2018-09-03 by @gfwilliams You're on the standard 1v99 firmware? It seems to be that your biggest issue is:
If you add a
You missed out a For RX, you'd always have got FIFO_FULL on some modules (because if you get random noise, it comes in so fast that Espruino can't process it all fast enough). It just wouldn't have been reported previously. It shouldn't be a major issue, since when data starts arriving the noise drops off and Espruino is able to clear the backlog and get all the data that is sent. Also, if you want to trap a FIFO_FULL error, see the Errors like FIFO_FULL aren't caused by JS execution, so it doesn't make sense having them as exceptions. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2018-09-03 by @allObjects ooops! dooooh! ... that's for sure not what my intention was... I'm clear on that the 433 OOK is for small amounts of data only and that it has to be repeated... after all, it is just this single signal over and over sent until, for example, the lights come on or go off... At one time I had it right - in the And yes, I'm on 1v99. I did some more work and worked through the different implementations as out of the box and what @drazzy did. There I verified 'down to the dot / pulses' that expected data was sent. I will share it in a next post. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2018-09-02 by @allObjects
Even though I have a better - more sophisticated and more potential bearing - solution - LORA (Simple LORA field tests)- and despite my earlier comment of being fed up / done w/ cheapo 433MHz communication devices as shown on 433.92Mhz Transmitter and Receiver, I could not completely let go...
I could not let it go because it would be nice to see it at least once transmit and receive something successfully, even though it would be only from the left side of the office table to the right side of the office table... But no, nothing at all...
So here it comes:
Using the code out of the box / off of the 433.92Mhz Transmitter and Receiver page, I get:
For every second repeated transmitting the whole seconds modul0 60 with leading 0 as string I used this code:
What I observed is that for the first of the every second repeated transmits, the red LED1 - indicating transmission time - is on longer...and after a while the LED1 stops coming on. So I power cycled and it worked for another set of transmissions... I did not count how many times it made it until it stopped. The transmiter
For receiving the two bytes, I used this code:
No matter what I did, I get:
Initially, I had no try-catch setup, to restart the transmission on a fatal error... but was surprised that this error could not be caught...
In a nutshell: no communication with the modules what so ever...
PS: Some test code on both sides - switching transmitter on for 1/2 a second every second and polling / setWatching the data pin on the receiver w/ turning on the red LED1 - showed that both transmitter and receiver sides really worked. I had two full sets of two different brands - the one shown on 433.92Mhz Transmitter and Receiver Espruino site and better ones w/ ICs - f113 (6 pins) and 480R (8 pins) - four (4) transmitters and four (4) receivers - and they could not all be duds... no matter how dud the technologies used...
Since @drazzy was 'successful' according to 433mhz Espruino <-> Arduino - even though he then (later) included Arduino as a communication controller/slave - I ordered for receiver two of his recommended devices: RXB12 (see Selection of 433mhz On/Off Keyed RF transmitter and receivers, with IC SYN470R, 16 pins). Now I had three (3) brands of receivers... and still now results (with 433 module from Espruino.com/modules page).
(I guess 480R is about the same as 470R..., both SYN from Synoxo - see Synoxo - ASK/OOK RF Products, where SYN113 = f113 can be found...).
to be continued...
Beta Was this translation helpful? Give feedback.
All reactions