You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 20, 2020. It is now read-only.
After an update of my Rasperry Pi to "Jessie", I found out that setting the configuration of the CC1101 no longer works. Unfortunately, there is no output of an error message, so it just doesn't work and you don't notice why.
Reason seems to be changes in the IOCTL structure for doing SPI communication. In particular, the SPI write burst no longer works. This write burst is used to the the CC1101's configuration.
The text was updated successfully, but these errors were encountered:
As Rasbian "Jessie" is using a newer kernel, an additional attribute "pad" was added to the struct spi_ioc_transfer. Not setting this new attribute to a defined value caused the problems.
The file /usr/include/linux/spi/spidev.h says: Zero-initialize the structure, including currently unused fields, to accommodate potential future updates.
The solution to the issue is exactly to do so: Initialize the structure with zeros struct spi_ioc_transfer tr; memset(&tr, 0, sizeof tr);
After an update of my Rasperry Pi to "Jessie", I found out that setting the configuration of the CC1101 no longer works. Unfortunately, there is no output of an error message, so it just doesn't work and you don't notice why.
Reason seems to be changes in the IOCTL structure for doing SPI communication. In particular, the SPI write burst no longer works. This write burst is used to the the CC1101's configuration.
The text was updated successfully, but these errors were encountered: