Comments (4)
Found it. The problem is in /etc/dbus-1/system.conf, and then the lines:
<!-- This is a setuid helper that is used to launch system services -->
<servicehelper>/usr/libexec/dbus-daemon-launch-helper</servicehelper>
That program is there on the ccgx. But on BBB it is elsewhere. Changing those lines into this fixes it:
<!-- This is a setuid helper that is used to launch system services -->
<servicehelper>/usr/lib/dbus/dbus-daemon-launch-helper</servicehelper>
Background: D-Bus can start services/executables. Service definitions are here:
root@venus:~# cat /usr/share/dbus-1/system-services/fi.w1.wpa_supplicant1.service
[D-BUS Service]
Name=fi.w1.wpa_supplicant1
Exec=/usr/sbin/wpa_supplicant -u
User=root
SystemdService=wpa_supplicant.service
Command to start it from command line:
root@venus:~# dbus-send --system --print-reply --dest=org.freedesktop.DBus /org/freedesktop/DBus org.freedesktop.DBus.StartServiceByName string:fi.w1.wpa_supplicant1 uint32:0
Error org.freedesktop.DBus.Error.Spawn.ExecFailed: Failed to execute program fi.w1.wpa_supplicant1: Success
from venus.
Another data point.
The kernel detects and instantiates the wlan0 device whether the dongle is attached at boot or at runtime.
If the USB Wifi dongle is attached at boot, dbus sees it also.
root@venus:~# uname -a
Linux venus 4.1.14-venus #1 Thu Dec 10 04:51:20 EST 2015 armv7l GNU/Linux
root@venus:~# dbus -y net.connman
/
/net
/net/connman
/net/connman/service
/net/connman/service/ethernet_c8a030a69fbd_cable
/net/connman/technology
/net/connman/technology/ethernet
/net/connman/technology/wifi
root@venus:~# dbus -y net.connman /net/connman/technology/wifi GetProperties
properties = {'Connected': False,
'Name': 'WiFi',
'Powered': False,
'Tethering': False,
'Type': 'wifi'}
root@venus:~# dbus -y net.connman /net/connman/technology/wifi Scan
Traceback (most recent call last):
File "/usr/bin/dbus", line 364, in <module>
ret = obj.object.get_dbus_method(method.name, iface.name)(*args)
File "/usr/lib/python2.7/site-packages/dbus/proxies.py", line 145, in __call__
**keywords)
File "/usr/lib/python2.7/site-packages/dbus/connection.py", line 651, in call_blocking
message, timeout)
dbus.exceptions.DBusException: net.connman.Error.NotSupported: Not supported
from venus.
Error on the bbb in messages:
Activated service 'fi.w1.wpa_supplicant1' failed: Failed to execute program fi.w1.wpa_supplicant1: Success
From bbb, while no wifi dongle is inserted:
root@venus:~# cat /etc/version
20151206211337
root@venus:~# cat /var/log/messages
....
Dec 10 21:19:03 venus daemon.info connmand[938]: eth0 {create} index 2 type 1 <ETHER>
Dec 10 21:19:03 venus daemon.info connmand[938]: eth0 {update} flags 69699 <UP,RUNNING,LOWER_UP>
Dec 10 21:19:03 venus daemon.info connmand[938]: eth0 {newlink} index 2 address 6C:EC:EB:5C:71:2B mtu 1500
Dec 10 21:19:03 venus daemon.info connmand[938]: eth0 {newlink} index 2 operstate 6 <UP>
Dec 10 21:19:03 venus daemon.notice dbus[820]: [system] Activated service 'fi.w1.wpa_supplicant1' failed: Failed to execute program fi.w1.wpa_supplicant1: Success
Dec 10 21:19:03 venus daemon.info connmand[938]: Adding interface eth0 [ ethernet ]
Dec 10 21:19:03 venus daemon.info connmand[938]: can0 {newlink} index 3 address 00:00:00:00:00:00 mtu 16
Dec 10 21:19:03 venus daemon.info connmand[938]: can0 {newlink} index 3 operstate 6 <UP>
Dec 10 21:19:03 venus daemon.info connmand[938]: can1 {newlink} index 4 address 00:00:00:00:00:00 mtu 16
Dec 10 21:19:03 venus daemon.info connmand[938]: can1 {newlink} index 4 operstate 2 <DOWN>
....
from /data/log/messages on ccgx (while no wifi dongle is inserted):
Dec 11 12:58:15 CCGX daemon.info connmand[1082]: eth0 {update} flags 4099 <UP>
Dec 11 12:58:15 CCGX daemon.info connmand[1082]: eth0 {newlink} index 4 address 90:59:AF:69:D8:20 mtu 1500
Dec 11 12:58:15 CCGX daemon.info connmand[1082]: eth0 {newlink} index 4 operstate 2 <DOWN>
Dec 11 12:58:15 CCGX daemon.info connmand[1082]: Adding interface eth0 [ ethernet ]
Dec 11 12:58:15 CCGX daemon.notice dbus[1043]: [system] Successfully activated service 'fi.w1.wpa_supplicant1'
Dec 11 12:58:16 CCGX daemon.info connmand[1082]: eth0 {add} route ff00:: gw :: scope 0 <UNIVERSE>
Dec 11 12:58:16 CCGX daemon.info connmand[1082]: eth0 {add} route fe80:: gw :: scope 0 <UNIVERSE>
Dec 11 12:58:16 CCGX daemon.info connmand[1082]: eth0 {update} flags 69699 <UP,RUNNING,LOWER_UP>
from venus.
changed system.conf file added here:
victronenergy/meta-victronenergy-overlay@46a4f5b
from venus.
Related Issues (20)
- v3.20: update gui translations; especially including Orion XS HOT 1
- PV limiter support for systems without a VE.Bus Multi/Quattro
- Move notifications mechanism from gui to venus-platform HOT 2
- vedirect-dbus, mk2-dbus: busy looping HOT 1
- add newer qt version, 6.6
- Add network control to Venus-platform
- Add dbus path to venus-platform for switching between percentages and units on the circular gauges HOT 3
- Add maximum levels for gauges + capturing them for gui-v2 HOT 7
- FlashMQ runs away on certain DNS failures
- Venus for Rasberry Pi 5
- Remove gui—v2 and its remote capability bit from vrmlogger HOT 3
- install qml files for gui-v2
- Reload instead of restart FlashMQ on bridge config changes HOT 2
- Check smartshunt dc energy metering modes in all UIs
- DVCC: Charge current limit can get stuck if BMS is momentarily disconnected or lost
- Bluetooth does not work on Raspberry Pi Zero 2W
- Check that the Cerbo reset button resets the BLE pin HOT 1
- Ruuvi alarms: add option disable them or make them happen only during the day? HOT 2
- System setup - system status menu only for superuser? HOT 1
- Cerbo GX fails to find access points with automatic channel selection
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from venus.