SwitchEV / RISE-V2G

The only fully-featured reference implementation of the Vehicle-2-Grid communication interface ISO 15118
MIT License
220 stars 92 forks source link

open-plc-utils spi error #71

Open DAYS2 opened 3 years ago

DAYS2 commented 3 years ago

I am making use of the Qualcomm QCA7000 Serial-to-Powerline Bridge chip and trying to connect this chip to the host processor (RPi4 Buster) over SPI. I have developed all the necessary hardware and installed the qca7000 linux drivers on the host but continuously get the following errors when connecting to the SPI Slave port of the QCA7005: dmesg | grep qca produces the following:

qcaspi spi0.0: Invalid signature (0x0000)

qcaspi: probe of spi0.0 failed with error -14

I have added dtoverlay=qca7000 to config.txt and enabled the SPI on the RPi4.

I have tried different configurative pin strapping options as indicated in the datasheet but keep getting the same errors. Any advise on this? Or anyone been able to connect to this chip on Buster?

kanjiviroja1991 commented 3 years ago

I had faced the same issue and I don't know what it means by -14 error number? How does it validate the signature between both end?

zgb526642524 commented 2 years ago

此问题,SPI总线接线错误导致。

kanjiviroja1991 commented 2 years ago

@zgb526642524 , Actually, We had verified wiring and we had not found any issue with the wiring. Once I replace the QCA7000 chip after it works perfectly.

KissMyAce97 commented 2 years ago

Did you add the interrupt pin spec? I had problem too and I solved this way (I don't ensure this will work for you): dtoverlay=qca7000, int_pin = 5 (where 5 is the actual value of the GPIO).

You can find some information here https://github.com/raspberrypi/firmware/blob/master/boot/overlays/README, check qca7000 lines and you will find it at 2742

DAYS2 commented 2 years ago

I was able to make it work. i sat down with hardware specialist where i do my internship. He said as above that we missed teh interrupt pin.