Git Product home page Git Product logo

raspicomm-module's Introduction

raspicomm-module

raspicomm kernel module with tty driver support for rs485 (raspicommrs485.ko)

This is a heavily modifed version of the original raspicomm module modified for Linux kernel versions around 4.9. It controls the BCM2835 SPI directly to communicate with the MAX3140 UART ont the RaspiComm PCB.

Installation Instructions

  • Make and install the module: make install
  • Edit /boot/config.txt and add the lines dtparam=spi=on and dtoverlay=spi0-hw-cs to the end.
  • Edit /etc/modules and append raspicommrs485 to the end of the file
  • Remove the original SPI modules: mkdir /root/spi-modules-orig && mv /lib/modules/4.9.59-v7+/kernel/drivers/spi/* /root/spi-modules-orig
  • Run: depmod -a
  • Run: modprobe raspicommrs485
  • Restart your Pi! (shutdown -r now)

Tip:

  • You'll likely need superuser priviliges to run some of the above commands. sudo is your friend.
  • Never blindly follow command line instructions from the internet. Always double check ;)

Binaries

Known Bugs

From time to time there is an SPI error. The SPI transfer done interrupt is fired, but the FIFO is empty and no data can be read. Since this seems to only happen for "WrCfg" commands my solution is to restart the transfer if it failed. I don't know how to properly fix this since i do not know the real cause.
When this error happens the following messages appear in the log:
[<time>] rpc: rpc_spi_interrupt: error reading FIFO (11)
[<time>] rpc: WrCfg CC4B FEN=0 SHDN=0 TM=1 RM=1 PM=0 RAM=0 IR=0 ST=1 PE=0 L=0 BR=B -- FFFFFFFF R=1 T=1

raspicomm-module's People

Contributors

javicient avatar martin-furter avatar oldtinfoil avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

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.