For my current project, I’m trying to use the RAK11310 without using lora, and while using Serial1 for another device (AFAIK Serial1 is used for communicating to the lora modem).
Currently, when attempting to send data through Serial1, the following is sent instead by the module instead.
I’ve tried running the following code using the Arduino IDE and it works as expected:
void setup() {
// put your setup code here, to run once:
Serial1.begin(115200);
Serial1.println("test");
}
void loop() {
// put your main code here, to run repeatedly:
}
I’ve updated my install using the following instructions to no avail: Instructions
Tested and confirm that when compiling with PIO it throws an error.
Difference between Arduino BSP and PIO is
ArduinoBSP - tested and working, provided by us. Based on old V2.3.1 Arduino MBed BSP.
PIO - Arduino MBed package V4.0.2 provided by PIO and patched to add the RAK11310.
Do you know of any PIO based Serial libraries for the module? I’m currently trying to port over the pico sdk’s SerialPIO (even them I’m running into issues, not sure why just yet) - however I would prefer using some out of the box solution if there is any.
Sorry, I am never using the RAK11300, the Arduino support for the RP2040 kind of sucks.
No idea why it has the Serial1 problem or how to get around it.
I put the Flamabalistic code into an ArduinoIDE/PIO library.
Not published, waiting for the original author for permission.
In the meantime it can be installed from ZIP file in ArduinoIDE or with github link in platformio.ini