So I have been at least trying to connect to the hat from the Pi, the following is my configuration: enter image description here

I follow the manual set in this link: https://www.waveshare.com/w/upload/2/29/RS485-CAN-HAT-user-manuakl-en.pdf

However I get the following output when checking if the connection is successful: enter image description here

This is my config.txt file: enter image description here

I use the oscillator with that number since the version of the hat I have uses that oscillation value. I use dtoverlay=spi0-hw-cs instead of the usual dtoverlay=spi0-bcm2835-overlay because my overlays folder is as shown:

enter image description here

I have checked the wiring multiple times, tried to reduce the spimaxfrequency, checked the interrupt pin in the config.txt file to be sure its connecting to the correct pin of the Pi, but all to no avail.

Can anyone please help? It's for an important uni project...

  • Hi @aldo, Welcome and nice to meet you. Ah, let me see. First thing first, please let me know how do you do with the following: (1) $ uname -a, (2) $ ls /dev/spi*. / to continue, ...
    – tlfong01
    Feb 23, 2020 at 3:12
  • Second thing. Let us see if our docs are in sync: (1) RS485 CAN HAT Overview and Features - WaveShare waveshare.com/rs485-can-hat.htm (2) RS485 CAN HAT Wiki - WaveShare waveshare.com/wiki/RS485_CAN_HAT (3) RS485 CAN HAT User Manual - WaveShare waveshare.com/w/upload/2/29/RS485-CAN-HAT-user-manuakl-en.pdf. / to continue, ...
    – tlfong01
    Feb 23, 2020 at 3:24
  • Third. If possible, beg/steal/borrow the following or similar, and confirm our docs in sync: (4) USB TO RS232/RS485/TTL Industrial Isolated Converter Overview and Features - WaveShare waveshare.com/usb-to-rs232-485-ttl.htm (5) USB TO RS232/485/TTL Wiki - WaveShare waveshare.com/wiki/USB_TO_RS232/485/TTL (6)USB TO RS232/485/TTL User Manual - WaveShare waveshare.com/w/upload/e/e4/…. /to continue, ...
    – tlfong01
    Feb 23, 2020 at 3:35
  • I will be brainstorming quick and dirty troubleshooting ideas. This forum is only for short Q&A. It would be nice if you can let me know your public GitHub/GitLab/ProjectBlog with more details such as: (version of HAT, 10HMz or 12MHz), You DSC (Digital Storage /。。Ah sorry I have an Eng to Chi clash, need to reset. Never mind if you see funny characters. Perhaps come back this afternoon
    – tlfong01
    Feb 23, 2020 at 3:42
  • 1
    Please don't post pictures of text. Instead paste the text direct into the question.
    – Ingo
    Feb 23, 2020 at 7:55


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.