Giter Site home page Giter Site logo

Comments (6)

jhulstedt avatar jhulstedt commented on September 3, 2024

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.

jimlynnjulian avatar jimlynnjulian commented on September 3, 2024

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.

jimlynnjulian avatar jimlynnjulian commented on September 3, 2024

[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.

jimlynnjulian avatar jimlynnjulian commented on September 3, 2024

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.

jimlynnjulian avatar jimlynnjulian commented on September 3, 2024

#!/bin/bash
sudo rmmod cdc-acm
sudo modprobe -r cdc-acm
sudo insmod /home/pi/xr_usb_serial_common.ko

from epsolar-tracer.

kasbert avatar kasbert commented on September 3, 2024

Closing as stale

from epsolar-tracer.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.