logo du siteLe Site du Gnu-Bricoleur

/!\ Un blog plébiscité par Chuck Norris O_o

Pinephone - A simple compass app, Part II

Rédigé par SuperGNU Aucun commentaire

This article is still a Draft, it's just temporarily published for personal convenience

Foreword : This article is a log of the process I followed to develop a simple compass app for Manjaro Plasma Mobile on the Pinephone (the app in itself should be compatible with more systems and devices but this is my primary target and test device incidentally). It should be considered as such and certainly not as a tutorial to develop a new app. Further disclaimer, I am not even a developer, I am just an electrical engineer playing with Linux and software, my knowledge is really lacking and I'm sure several steps are unnecessary and/or plain wrong

In the last article, we established that the magnetometer is part of the device tree, that it's properly recognised by the linux kernel and made accessible in the userspace as an IIO device.

May not be working properly though... pb with readdevice;..

Graphical interface : Desktop and smartphone (docking :p ) screens https://en.wikipedia.org/wiki/Points_of_the_compass#/media/File:Compass_Card_B+W.svg https://nicolasfella.wordpress.com/tag/kirigami/ https://develop.kde.org/frameworks/kirigami//

https://stackoverflow.com/questions/65633174/setting-up-qtcreator-for-use-with-kde-framework-and-kirigami ??

Improving the internal working readdev not working ... pb with buffer due o a problem with triggers pb with interrupt device tree setup or hardware impossibility ?? =>> trmporary solution http://analogdevicesinc.github.io/libiio/master/libiio/group__Channel.html using the channel API !! waiting for D-Bus anyway, not spend too much time in thus !

salvation https://ez.analog.com/linux-software-drivers/f/q-a/97575/iio-question-with-ad9361 Works for everything except for setting the sampling speed erno -13 => pern,ission denied

sylvain@plasma-mobile build]$ iio_attr -d lis3mdl sampling_frequency 80 [sylvain@plasma-mobile build]$ iio_attr -d lis3mdl sampling_frequency 1 ERROR: Permission denied (-13) while writing 'sampling_frequency' with '1' [sylvain@plasma-mobile build]$ iio_attr -u local: -d lis3mdl sampling_frequency 1 ERROR: Permission denied (-13) while writing 'sampling_frequency' with '1' [sylvain@plasma-mobile build]$ iio_attr -u local: -d lis3mdl sampling_frequency 80 [sylvain@plasma-mobile build]$ iio_attr -u ip:192.168.1.1 -d lis3mdl sampling_frequency Unable to create IIO context ip:192.168.1.1: Connection refused [sylvain@plasma-mobile build]$ iio_attr -u ip:192.168.1.1 -d lis3mdl sampling_frequency Unable to create IIO context ip:192.168.1.1: Connection refused [sylvain@plasma-mobile build]$ iio_attr -u ip:localhost -d lis3mdl sampling_frequency 80 [sylvain@plasma-mobile build]$ iio_attr -u ip:localhost -d lis3mdl sampling_frequency 1 ERROR: Permission denied (-13) while writing 'sampling_frequency' with '1' [sylvain@plasma-mobile build]$ doesn't work either with remote backend ..

https://thecavepearlproject.org/2015/05/22/calibrating-any-compass-or-accelerometer-for-arduino/

Classé dans : Pinephone Mots clés : aucun

Écrire un commentaire

Quelle est la dernière lettre du mot krvzy ?

Fil RSS des commentaires de cet article