-
Notifications
You must be signed in to change notification settings - Fork 84
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
Multiple instances #7
Comments
Hi, |
hi, i need multiple as well, what should i change in the code to make it work? |
I do not have the knowledge on how to do this. Does anyone take the challenge? :) |
I need multiple software uart too for use sim800l. Is there any guide or way to make that happen? Can you help us a little please @adrianomarto |
I could use that too. |
Hi, I found not a solution, but a workaround for two instances of soft_uart on two different pairs of pins at my raspberry Pi 3B.Thanks you so much for your work adrianomarto, which inspired me (see offtopic). As he mentioned in 2018 this code is not designed to several instances. So i changed the code at five positions to get a new driver that can be additionally installed. This is no good kernel-module programming - you get a new major number for the new device. However it is my first trial and error work with modules and it works fine for me. Just add some "x" at the correct places: Standard git clone
Make a copy of the original code in the directory soft_uartx (look at the x at the end)
compile standard driver
normal call of insmod with the new pair of non-standard GPIOs
check the device and the (major/minor) number of the device
new driver (with "x" at the end)
EDIT module.c
EDIT Makefile
compile new driver in new directory soft_uartx
insmod of the modified soft_uartx.ko
check the news device
|
Hi
I need more than one soft uart on my Raspberry pi. How can i do that?
Tried to rename file and tty before compilation with no luck.
The text was updated successfully, but these errors were encountered: