#define MY_RS485_HWSERIAL Serial2 doesnt work, softserial still used
-
I amusing an Arduino mega as serial <-> RS485 gateway node..
I first tested using the default softserial solutionfrom the examples,and this works fine..
Then i added :
#define MY_RS485_HWSERIAL Serial2So i could use serial2 as hardware serial for RS485. Which did not work. There was no activity on the tx of serial 2at all.
After some switching between hard and softserial during testing it worked all of a sudden.. I thought.. Turned out i left the max485 to the softserial pins.
So even when the hwserial is defined, the softserial is still used!?!?
Is this something anybody else noticed as well?
1 out of 1
Suggested Topics
-
Code for beta-testing?
Controllers • 24 Mar 2014, 20:48 • andriej 9 Aug 2014, 10:44 -
ACK -aka ECHO beeing missed by Serial Gateway with RF24 radios. V2.3.2
Bug Reports • 15 Apr 2023, 06:27 • GaryStofer 21 Apr 2023, 17:34 -
Sensor presentation failure
Bug Reports • 31 Jul 2016, 19:23 • Sergio Rius 3 Mar 2021, 18:48 -
Making WiFiManager compatible with MySensors 2.3.2
Bug Reports • 12 Feb 2020, 21:43 • pihome 1 Jun 2022, 16:02 -
ESP32 + Signing fails after xxx msg as result of memory leak
Bug Reports • 6 Apr 2020, 18:43 • Technovation 7 Mar 2022, 10:37 -
Boards esp8266 v3.1.0 or Newer Doesn't Work with MySensors
Bug Reports • 21 Feb 2023, 01:55 • d-smes 25 Feb 2023, 19:37