Robin2, thanks for following the topic!
Robin2:
want to connect a HC12 and a 315MHz wireless device to a single Uno. The Uno will be receiving data on both devices and will not be transmitting on either one.
Yes, exactly.
Robin2:
I don't know if they buffer an incoming message or if the Arduino must pick up every single byte as it arrives.
The manual says there is a command available:
"AT+Udps
Set data bits (d), parity (p), and stop bits (s) for serial port communication.
For parity, N means none, O means odd check, and E means even check. For stop
bits, 1 means one stop bit, 2 means two stop bits, and 3 means 1.5 stop bits."
I really don't know what this means... I think the program as it is picks bytes one by one.
Robin2:
How often will messages be sent to each wireless device and how many bytes will there be in a message?
I want this device to be a universal "codegrabber". If i press a button on a remote control for the gates or any other wireless home appliance, no matter what frequency it uses, I'd like the program to identify the key (i think, the most frequently used keys are 12 or 24 bit keys) and store it in decimal to SD card with a timestamp (and the frequency on which it was received/the device which received it - either HC-12 or the 315 MHz analog).
No, this Arduino will not transmit messages, only log the received keys for further use in home automation.
The code in my first message above is working, it stores the 433 MHz keys to SD card - checked that. If I connect the 315 MHz module to the same Arduino pin instead of the 433 MHz one, or define another pin as the only RX, or assemble two similar devices working on different frequences - it will work exactly the same. But - i want this all to be all-in-one device, without manual switches, receiveng both frequences at once.
Thanks.