MKRWAN1310 and SoftwareSerial

Is it possible to use any of the SoftwareSerial libraries with a 1310? So far the ones I've tried all fail to compile on the 1310 due to what looks to be incompatibility with the SAMD2. Thanks!

no, but you can use Serial1 or create additional hardware Serial instances

Thank you. I was hoping to avoid having to redefine pins for hardware serial, but if I have to guess that's what it will be. Do you know if there's a reason none of the software serial libraries support these?

because there is superior hardware Serial?

do you use Serial1 already?

How to?

How to use Serial1?
the same way as Serial. you start with Serial1.begin.
the pins are labeled RX and TX on the MKR pins header

So, how about Serial?

what about Serial?

I have thought, it was like UNO, the TX and RX is Serial.

no. Serial is native USB like on Leonardo

Hi guys, did anyone manage to achieve this? I too am trying to communicate with an RS485 sensor via the WAN 1310 and would appreciate any tips on how to do this.

Thanks in advance.

achieve what? to use Serial1?

Yes, managed to use Serial1 with WAN 1310 to communicate with a modbus RS485 device.

what problem do you have with it?

The problem is I do not know the code to interface an RS485 sensor with the WAN 1310 and wondered if anybody could offer some advice.

there is no difference for MKR. you do it the same way as with any other Arduino

Hmm its still not working. I've detailed it here: Modbus: NPK-Sensor does not respond at all - #113 by markd833