This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
SPI to Pi-Top CEED hub
#1
Bug 
I put a TinkerBoard S into my Pi-Top CEED running TinkerOS 2.0.8.  I recompiled their poweroff-v1.c code using the wiringpi libs from TinkerOS.  On a Raspberry Pi 3+ and Raspbian this code causes the hub to power off the board every time.  On TinkerBoard and TinkerOS it only works intermittently as if the SPI bus isn’t always working properly.  Is SPI stable in this version?
Reply
#2
(12-03-2018, 02:54 AM)WZ9V Wrote: I put a TinkerBoard S into my Pi-Top CEED running TinkerOS 2.0.8.  I recompiled their poweroff-v1.c code using the wiringpi libs from TinkerOS.  On a Raspberry Pi 3+ and Raspbian this code causes the hub to power off the board every time.  On TinkerBoard and TinkerOS it only works intermittently as if the SPI bus isn’t always working properly.  Is SPI stable in this version?

We have no this device on hand. As you said, it can work intermittently, it means the driver should be correct. It calls the correct SPI controller and issues the correct SPI command.
From this file https://github.com/pi-top/Device-Managem...v1.service
It will call the poweroff-v1 binary by service when user poweroff the TinkerBoard.
Can you help to try to run the command by terminal manually ? I want to check if the problem is caused by the service call or caused by the poweroff-v1 binary file.
Reply
#3
I’m running it manually after I recompile with the ASUS WiringPi libraries on 2.0.8.  While it works sometimes it is not very consistent.  Yes, you are looking at the same source I borrowed from Github.

I have not tried to make it a service since I wanted to get it working properly first.

Only thing I can think to try is rebuilding WiringPi from the instructions on the ASUS site rather than using the one installed as part of 2.0.8
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)