I have a Holybro 433 MHz transceiver radio pair which are wired to two Arduino Mega 2560s on RX/TX pins of Serial 1 (pins 18 and 19). I have successfully sent a message between these two Arduinos already using the scripts Receiver.ino and Transmitter.ino which I have attached. Now I have connected a u-blox PAM-7Q GPS to pins 10 and 11 and declared this as a software serial to try and send the GPS coordinates through the radios. Now the problem is opening these two serial ports with different baud rates inside void setup(), as the radio requires a baud rate of 57600 and the GPS requires a baud rate of 9600. When I declare both of these baud rates, the radios will not communicate. Is it possible to use a hardware serial port with a different baud rate as a software serial port within the same script? I attached the code which I am trying to declare both of these baud rates and getting problems. Thanks.
Receiver.ino (527 Bytes)
Transmitter.ino (892 Bytes)
GPS_and_Radio.ino (1.2 KB)