Skip to content
  • MySensors
  • OpenHardware.io
  • Categories
  • Recent
  • Tags
  • Popular
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo
  1. Home
  2. Bug Reports
  3. #define MY_RS485_HWSERIAL Serial2 doesnt work, softserial still used

#define MY_RS485_HWSERIAL Serial2 doesnt work, softserial still used

Scheduled Pinned Locked Moved Bug Reports
1 Posts 1 Posters 821 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • RedguyR Offline
    RedguyR Offline
    Redguy
    wrote on last edited by
    #1

    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 Serial2

    So 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 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    23

    Online

    11.7k

    Users

    11.2k

    Topics

    113.1k

    Posts


    Copyright 2025 TBD   |   Forum Guidelines   |   Privacy Policy   |   Terms of Service
    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • MySensors
    • OpenHardware.io
    • Categories
    • Recent
    • Tags
    • Popular