Closed BatbayarU closed 3 years ago
I have the same error.
raspberrypi_video from LaptonModule is also working for me but not this library.
I am using Lpeton 3.5 with breakoutboard v2.0 on Raspberry Pi 4.
OS: Raspbian Buster Kernel: 5.4.72-v7l+ Python: 3.7.3
Any solution?
SOLUTION:
The problem is in the SPI buffer size. The default value is 4096 but 160x120 images from Lepton3 are bigger.
You need to increase the size of the SPI buffer as explain here
Edit /boot/cmdline.txt
and add in the end:
spidev.bufsiz= 65535
Then reboot your raspberry and check it worked with:
cat /sys/module/spidev/parameters/bufsiz
Hope it works for you also. Maybe this information should be in the README setup tutorial
SOLUTION:
The problem is in the SPI buffer size. The default value is 4096 but 160x120 images from Lepton3 are bigger.
You need to increase the size of the SPI buffer as explain here
Edit
/boot/cmdline.txt
and add in the end:spidev.bufsiz= 65535
Then reboot your raspberry and check it worked with:
cat /sys/module/spidev/parameters/bufsiz
Hope it works for you also. Maybe this information should be in the README setup tutorial
Hi, Thank you for your solution. I have tried this but the I couldn't change the buffer size. However, I solved this the opposite of your solution which is by reducing the message size of the library. SPIDEV_MESSAGE_LIMIT = 24 to 8 of Lepton.py. I hope this helps someone.
Hi @kekiefer @brandoncurtis and team members,
Thank you very much for your helpful work. I'm implementing a project using Lepton 2.5 with breakout board v2.0 on Raspberry Pi4. About a few months ago, it was working well. But now it isn't working, and an error below occurs.
However, raspberrypi_video from LaptonModule is working. Do you know what is wrong with it?
Thank you very much. Batbayar