-
-
Notifications
You must be signed in to change notification settings - Fork 66
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SoftwareSerial RS485 Arduino.h to Simba.h #203
Comments
I have beat the code to work. Expose
This is wrong? PS, there is a exemple using shell and threads? I have searched in google, without success. |
Sorry, but I don't have time to look into this i detail. But yes, a list can be used if data is expected in one or more channels. Also there is a |
@softov Actually the |
As mentioned in #202 In reply to @eerimoq,
I have tried to write a code to figure how to migrate.
This is a sample code to proxy HardwareSerial to SoftwareSerial RS485, and vice-versa
In Arduino I made that way
The main resource that I use is
XXX.available()
, so I can read, only if there is something.I don't known how to do that in simba, so I have used a chan_list.
This test is mean to do the same
But, in this part, if is in this way,
s_hw->chin
don't read anythingAnd in this way,
s_485->chin
don't read anythingIf i put this code before calling the loop, its work, so I can read and write from
non-soft driver
? and how to use anon-soft driver
in this casePS, My project is a Nano Slave, running a RS485 module, which will receive/reply some commands from a FreeBSD machine, connected to this network using a MAX485, The commands are something like
UART (HardwareSerial) will be used to debug, setup, configuration, etc
As I said, the main core of the project is the Serial (&uart_device[0]) running together with the RS485 Module (uart_soft or something else)
If there is something to help, it will be nice.
The text was updated successfully, but these errors were encountered: