-
Notifications
You must be signed in to change notification settings - Fork 48
Resource busy #10
Comments
The lmic-rpi-lora-gps-hat code will try to "unexport" the BCM pins 4, 23 and 24 before "exporting" them again. If there is an issue with "unexporting", then no error message will be printed, as in most cases it is not necessary to "unexport" the pins, if the where not used by another application. Please try the following: Check if the pins are already exported. Which subdirectories exist in directory /sys/class/gpio ?
If there is a gpio4 directory, try to "unexport" it manually. What happens?
|
WiringPi has nothing to do with the issue. This GPIO support by means of a directory structure is provided by the Linux kernel. You get the error message "write error: Invalid argument", so in fact your "pi" user should be permitted to write to this file /sys/class/gpio/unexport. If it NOT had the permission, you would get a "Permission denied" error message. So your "pi" user seems to be in group "gpio". Could you please cross check and find out the groups the user "pi" belongs to by using the "groups" command?
Next, let's assume you got the "Invalid argument" error message, because pin 4 wasn't actually exported.
|
i have had the same issue, the pins in the code are matching the dragino gpsHat v1.4. |
same issue here , have you solved in other way ? |
On a fresh install of Raspbian stretch with the Dragino GPS / Lora HAT I get this error message: resource busy. How do I resolve this?
The text was updated successfully, but these errors were encountered: