Hello all,
My configuration :
Version: 2024.7
Platform: Ubuntu 20.04
Plugin/Hardware: GPIO pins/Odroid C2
When generating the GPIO hardware that was first configured with a bash job i get negative Unit values for the detected hardware when using Generic sysfs GPIO . When trying to toggle a GPIO pin trough Domoticz I get an error "sending switch command".
Bash commands work fine and change the GPIO pin correctly, also without a sudo command.
After an update and upgrade the error stays
This problem occurred recently, the configuration worked fine before.
I seems that the value equals the GPIO pin assignment in linux minus 256
When making a dummy switch and assigning a script that turns on and off the GPIO output all works fine.
Anyone that can explain why I get negative Unit values when using the Generic sysfs GPIO Hardware option of Domoticz?
When trying to add a switch manually, Domoticz shows the correct pin assignments in the selection list but I have no idea what to enter as ID, 3 0E 0E 04 as ID values gives the same error message.
Greetings,
Luc De Smedt
Negative Unit values are displayed when generic sysfs GPIO generates the confugered hardware Topic is solved
Moderators: leecollings, remb0
Forum rules
Before posting here, make sure you are on the latest Beta or Stable version.
If you have problems related to the web gui, clear your browser cache + appcache first.
Use the following template when posting here:
Version: xxxx
Platform: xxxx
Plugin/Hardware: xxxx
Description:
.....
If you are having problems with scripts/blockly, always post the script (in a spoiler or code tag) or screenshots of your blockly
If you are replying, please do not quote images/code from the first post
Please mark your topic as Solved when the problem is solved.
Before posting here, make sure you are on the latest Beta or Stable version.
If you have problems related to the web gui, clear your browser cache + appcache first.
Use the following template when posting here:
Version: xxxx
Platform: xxxx
Plugin/Hardware: xxxx
Description:
.....
If you are having problems with scripts/blockly, always post the script (in a spoiler or code tag) or screenshots of your blockly
If you are replying, please do not quote images/code from the first post
Please mark your topic as Solved when the problem is solved.
- gizmocuz
- Posts: 2350
- Joined: Thursday 11 July 2013 18:59
- Target OS: Raspberry Pi / ODroid
- Domoticz version: beta
- Location: Top of the world
- Contact:
Re: Negative Unit values are displayed when generic sysfs GPIO generates the confugered hardware
There have been some recent changes to the sysfs/GPIO hardware.
It seems this negative unit is assigned in the sysFS/GPIO hardware class, as I just changed manually a device unit to 249 here in the database, and it displays correctly in the devices overview.
Just had a look at the hardware class, it seems 'int8_t' was used instead if 'uint8_t', and this is causing the negative number
Could you try beta 16179 to see if this solves the issue?
It seems this negative unit is assigned in the sysFS/GPIO hardware class, as I just changed manually a device unit to 249 here in the database, and it displays correctly in the devices overview.
Just had a look at the hardware class, it seems 'int8_t' was used instead if 'uint8_t', and this is causing the negative number
Could you try beta 16179 to see if this solves the issue?
Quality outlives Quantity!
-
- Posts: 5
- Joined: Sunday 25 February 2024 16:05
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2024.7
- Location: Belgium
- Contact:
Re: Negative Unit values are displayed when generic sysfs GPIO generates the confugered hardware
I'll give it a try this evening. Thanks for the information.gizmocuz wrote: ↑Monday 19 August 2024 8:09 There have been some recent changes to the sysfs/GPIO hardware.
It seems this negative unit is assigned in the sysFS/GPIO hardware class, as I just changed manually a device unit to 249 here in the database, and it displays correctly in the devices overview.
Just had a look at the hardware class, it seems 'int8_t' was used instead if 'uint8_t', and this is causing the negative number
Could you try beta 16179 to see if this solves the issue?
I installed beta 16182 and all works fine now. One more man feels happy. How do I close this issue ?
- gizmocuz
- Posts: 2350
- Joined: Thursday 11 July 2013 18:59
- Target OS: Raspberry Pi / ODroid
- Domoticz version: beta
- Location: Top of the world
- Contact:
Re: Negative Unit values are displayed when generic sysfs GPIO generates the confugered hardware
Great it's working!
Consider it closed
Consider it closed
Quality outlives Quantity!
Who is online
Users browsing this forum: No registered users and 1 guest