Comments (6)
What I had to do to get over this problem. I used these commands on my raspberry pi.
from https://www.computerhope.com/unix/modprobe.htm#examples
Watchout for the `` grave accent marks around the uname -r
command! Can't display it correctly here because that is also the code delimiter on this website.
You will have to know where your "xr_usb_serial_common.ko" file is: Mine was,
~/projects/epsolar-tracer/xr_usb_serial_common-1a/xr_usb_serial_common.ko
Then you will use the module name which should be "xr_usb_serial_common" in the modprobe command. Do not use "xr_usb_serial_common.ko"!
This made my /dev/ttyXRUSB0 persistent across the boots and sessions.
I also edited /etc/modules file adding to the last line of that file "xr_usb_serial_common". Not sure if I have to do that or not. The "modprobe" command may have added that? But if not add it so that the module gets loaded at boot.
from epsolar-tracer.
I wrote and installed a service file to do everything and made sure the service runs before any other Epever related services.
from epsolar-tracer.
[Unit]
Description=Epever Exar driver install Service
After=multi-user.target hwclock.service
[Service]
Type=oneshot
ExecStart=/bin/bash /home/pi/epdriver.sh
[Install]
WantedBy=multi-user.target
from epsolar-tracer.
Run this after writing the bash script that follows, "epdriver.sh"
Both the bash script and the driver module are in /home/pi
The service is in /lib/systemd/system
sudo systemctl enable epdriver.service
sudo systemctl start epdriver.service
from epsolar-tracer.
#!/bin/bash
sudo rmmod cdc-acm
sudo modprobe -r cdc-acm
sudo insmod /home/pi/xr_usb_serial_common.ko
from epsolar-tracer.
Closing as stale
from epsolar-tracer.
Related Issues (20)
- USB-driver fails to compile with recent kernel-versions (5.4.119) HOT 3
- ERROR: could not insert module ./xr_usb_serial_common.ko: Invalid module format HOT 6
- fail to make driver HOT 2
- failed to make driver HOT 2
- USB Fails To compile on Raspberry Pi 3 - 5.15.45-v8+ HOT 5
- Warnings but no errors on latest HOT 1
- Broken links HOT 4
- Tracer and Triron compatibility. HOT 1
- "Protocol" link in readme is broken HOT 1
- cdc-acm HOT 4
- difficulty to compile xr_usb_serial_common HOT 2
- info.py on RPi3 asks for self.client.timeout HOT 13
- Kernel header not found HOT 3
- EPEVER BLE-RJ45-A HOT 4
- Wiring information HOT 1
- Fails to build driver on Raspberry Pi 4 running Raspian Bullseye HOT 1
- /dev/ttyXRUSBx doesn't exist anymore in 6.1.0-0.deb11.11-amd64 HOT 7
- Not working with native xr-serial from Linux HOT 3
- Dricknick
- Error when trying to build the driver. HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from epsolar-tracer.