Skip to content

This module fixes RS-485 flow control issue on reComputer R1000 v1.0 by hooking uart_write function.

License

Notifications You must be signed in to change notification settings

bclswl0827/r1000v1-rs485-autoflow

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

r1000v1-rs485-autoflow

This module fixes RS-485 flow control issue on reComputer R1000 v1.0 by hooking uart_write function.

Preview

screen_record.mp4

Installation

Make sure you're running on a reComputer R1000 v1.0 with its drivers installed.

$ sudo apt update
$ sudo apt install linux-headers-$(uname -r) git make gcc -y
$ git clone https://github.com/bclswl0827/r1000v1-rs485-autoflow.git
$ cd r1000v1-rs485-autoflow
$ make
$ sudo make install

Load the module

To load the module, use the modprobe command:

$ sudo modprobe r1000v1_rs485_autoflow

If the kernel module is successfully loaded, you should see the following message in the kernel log:

[  256.037465] r1000v1_rs485_autoflow: RS-485 interface has been hooked successfully

Unload the module

To unload the module, use the rmmod command:

$ sudo rmmod r1000v1_rs485_autoflow

If the kernel module is successfully unloaded, you should see the following message in the kernel log:

[  315.105485] r1000v1_rs485_autoflow: RS-485 interface has been unhooked successfully

Load the module at boot

You can load the module at boot by adding the module name to the /etc/modules file:

$ echo "r1000v1_rs485_autoflow" | sudo tee -a /etc/modules

Note that this will require a reboot for the changes to take effect.

About DKMS

This module is compatible with DKMS, which is a kernel module management system. If you're planning to use this module with DKMS, please make sure to install the dkms package and use the make dkms_install command to install the module.

License

This module is released under the MIT License.

About

This module fixes RS-485 flow control issue on reComputer R1000 v1.0 by hooking uart_write function.

Resources

License

Stars

Watchers

Forks