Would it be possible to have on a Nano, 2 HC12, one for TX only (a) connected on Serial TX, one for RX only(b) connected on Serial RX. unused pin would not be connected. (then only +5, gnd, and either TX or RX).
(a) and (b) will have different channels (set before, since the hc12 config is stored in a non volatile memory), but same rate (I would like to have at least 57600)...
Serial.read would read incoming from the (b), and Serial.write would send via (a)..
of course, to upload the sketch, I will add a switch on the +5v on HC12 boards to turn them off, and serial monitor won't work anymore. (debug and log are displayed on an oled screen via I2C)
I see. ok. I will try today...
So any problem would be related with the 2 antenna, but not with the fact that 2 devices are managed with the single Serial port.
Theres little point using 2 HC12 side by side, one for tx and one for rx as the RF link is half duplex, so can only send or receive but not both.
Using 2 , will simply cause the transmitting one to block the receiving one, as the radio in them has a broad band front end .
If you really need a full duplex RF link , then you will need 2 radios on totally differant frequencies, ie 433 and 900 Mhz, or an antenna diplexer which are expensive items.