There are a couple ways, but the easiest is to just hard-code it:
line 209 of RS485.CPP was changed to the following
RS485(Serial5, 20, 255, 255);
In my case, I was actually using a MAX3232 (RS-232 doesn't transmit/receive on the same lines) so...
Hi Pedro,
I'm no expert either, but my project did end up working out nicely. A big help in troubleshooting was to have a known-good modbus program on my PC to test my Teensy code. I used QModMaster...
Thanks Shawn,
That was my concern... Since write() may be called more than once in the loop but only returns once I couldn't quite gather if the way I have it is returning the correct value. It does seem to work, but yes indeed reliability is...
Alright, new day! Yep I was looking at that, but couldn't quite figure out how to fit it into the code last night. Again, I'm not great with this low level stuff. But I tinkered with it this morning and I think I was able to get the same...
Wow Shawn thanks! This is a lot of info. I get a little bewildered with the lower level stuff, I tried my best and here are the results...
1. You're right, I didn't need to specify Mac address, so I updated the variables and call to begin() such...
Alright, so here's a simpler version:
It just sets up the server with only one coil and the ability to switch between communication modes based on the jumper position at startup (the jumper is made for configuration at the time of assembly, not...
Hi All,
I've been working on a project where the circuitry allows for either Ethernet or Serial connectivity based on a jumper position. The code is essentially identical between either mode of communication, the only difference being some...