Hi
我已经下载了你的Raspberry Pi Gateway Script Package为了树莓皮。
We have a unit that we are able to connect via bluetooth to a smartphone, however the purpose of this device is to connect via a raspberry pi using your example scripts in Python.
但是,在初始设置时,它失败了。
We have the new raspberry pi 4 (4gb)
Herewith the results of the build/execute of script. Please can you assist?
pi@raspberrypi:~/DEKRaspberryGateway $ sudo bash initial_setup.sh
更新
命中:1http://raspbian.raspberrypi.org/raspbian巴斯特公司
命中:2http://archive.raspberrypi.org/debian巴斯特公司
正在读取包列表。。。多恩
Building dependency tree
正在读取状态信息。。。多恩
3.6 packages can be upgraded. Run 'apt list --upgradable' to see them.
安装软件包
正在读取包列表。。。多恩
Building dependency tree
正在读取状态信息。。。多恩
libbluetooth3已经是最新版本(5.50-1+rpt1)。
0 upgraded, 0 newly installed, 0 to remove and 36 not upgraded.
正在读取包列表。。。多恩
Building dependency tree
正在读取状态信息。。。多恩
python3 is already the newest version (3.7.3-1).
0 upgraded, 0 newly installed, 0 to remove and 36 not upgraded.
正在读取包列表。。。多恩
Building dependency tree
正在读取状态信息。。。多恩
python3-pip is already the newest version (18.1-5+rpt1).
0 upgraded, 0 newly installed, 0 to remove and 36 not upgraded.
Looking in indexes:https://pypi.org/simple,https://www.piwheels.org/simple
Requirement already satisfied: enum34==1.1.6 in /usr/local/lib/python3.7/dist-packages (from -r /home/pi/DEKRaspberryGateway/requirements (line 1)) (1.1.6)
已满足要求:paho mqtt==1.3.1 in/usr/local/lib/python3.7/dist-packages(来自-r/home/pi/dekraspberygateway/requirements(第2行))(1.3.1)
收集PyBluez==0.22(来自-r/home/pi/dekraspberygateway/requirements(第3行))
Using cachedhttps://files.pythonhosted.org/packages/c1/98/3149481d508bee174335be6725。。。
Collecting requests==2.18.4 (from -r /home/pi/DEKRaspberryGateway/requirements (line 4))
Using cachedhttps://files.pythonhosted.org/packages/49/df/50aa1999ab9bde74656c2919d9...
Collecting urllib3==1.22 (from -r /home/pi/DEKRaspberryGateway/requirements (line 5))
Using cachedhttps://files.pythonhosted.org/packages/63/cb/6965947c13a94236f6d4b8223e。。。
已满足要求:certifi>=2017.4.17 in/usr/lib/python3/dist包(来自请求==2.18.4->-r/home/pi/dekraspberygateway/requirements(第4行))(2018.8.24)
已满足要求:chardet<3.1.0,>=3.0.2 in/usr/lib/python3/dist包(from requests==2.18.4->-r/home/pi/dekraspberygateway/requirements(第4行))(3.0.4)
Requirement already satisfied: idna<2.7,>=2.5 in /usr/lib/python3/dist-packages (from requests==2.18.4->-r /home/pi/DEKRaspberryGateway/requirements (line 4)) (2.6)
Building wheels for collected packages: PyBluez
Running setup.py bdist_wheel for PyBluez ... error
Complete output from command /usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-dqfyrkzz/PyBluez/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" bdist_wheel -d /tmp/pip-wheel-qnewgsnv --python-tag cp37:
running bdist_wheel
正在运行生成
正在运行生成_py
creating build
creating build/lib.linux-armv7l-3.7
creating build/lib.linux-armv7l-3.7/bluetooth
copying bluetooth/ble.py -> build/lib.linux-armv7l-3.7/bluetooth
copying bluetooth/widcomm.py -> build/lib.linux-armv7l-3.7/bluetooth
copying bluetooth/widcomm.py -> build/lib.linux-armv7l-3.7/bluetooth
copying bluetooth/osx.py -> build/lib.linux-armv7l-3.7/bluetooth
copying bluetooth/btcommon.py -> build/lib.linux-armv7l-3.7/bluetooth
复制蓝牙/最高有效期->建造/lib.linux版本-armv7l-3.7/蓝牙
正在复制bluetooth/\uuu init\uuuuuy.py->生成/lib.linux版本-armv7l-3.7/蓝牙
copying bluetooth/bluez.py -> build/lib.linux-armv7l-3.7/bluetooth
正在运行生成_ext
正在建立“bluetooth.\u bluetooth”扩展
creating build/temp.linux-armv7l-3.7
creating build/temp.linux-armv7l-3.7/bluez
arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I./port3 -I/usr/include/python3.7m -c bluez/btmodule.c -o build/temp.linux-armv7l-3.7/bluez/btmodule.o
在bluez/btmodule.c:20中包含的文件中:
bluez/btmodule.h:5:10:致命错误:bluetooth/bluetooth.h:没有这样的文件或目录
#include
^~~~~~~~~~~~~~~~~~~~~~~
编译已终止。
error: command 'arm-linux-gnueabihf-gcc' failed with exit status 1
----------------------------------------
为PyBluez生成轮子失败
Running setup.py clean for PyBluez
Failed to build PyBluez
安装收集的包:PyBluez、urllib3、requests
Running setup.py install for PyBluez ... error
Complete output from command /usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-dqfyrkzz/PyBluez/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-record-o8agnsqi/install-record.txt --single-version-externally-managed --compile:
running install
正在运行生成
正在运行生成_py
creating build
creating build/lib.linux-armv7l-3.7
creating build/lib.linux-armv7l-3.7/bluetooth
copying bluetooth/ble.py -> build/lib.linux-armv7l-3.7/bluetooth
copying bluetooth/widcomm.py -> build/lib.linux-armv7l-3.7/bluetooth
copying bluetooth/osx.py -> build/lib.linux-armv7l-3.7/bluetooth
copying bluetooth/btcommon.py -> build/lib.linux-armv7l-3.7/bluetooth
复制蓝牙/最高有效期->建造/lib.linux版本-armv7l-3.7/蓝牙
正在复制bluetooth/\uuu init\uuuuuy.py->生成/lib.linux版本-armv7l-3.7/蓝牙
copying bluetooth/bluez.py -> build/lib.linux-armv7l-3.7/bluetooth
正在运行生成_ext
正在建立“bluetooth.\u bluetooth”扩展
creating build/temp.linux-armv7l-3.7
creating build/temp.linux-armv7l-3.7/bluez
arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I./port3 -I/usr/include/python3.7m -c bluez/btmodule.c -o build/temp.linux-armv7l-3.7/bluez/btmodule.o
在bluez/btmodule.c:20中包含的文件中:
bluez/btmodule.h:5:10:致命错误:bluetooth/bluetooth.h:没有这样的文件或目录
#include
^~~~~~~~~~~~~~~~~~~~~~~
编译已终止。
error: command 'arm-linux-gnueabihf-gcc' failed with exit status 1
----------------------------------------
Command "/usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-dqfyrkzz/PyBluez/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-record-o8agnsqi/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-install-dqfyrkzz/PyBluez/
Done
DEKClient will start automatically upon system startup
Hi nico.strydom,
Thanks for your question online. The Gateway scripts are tested on Raspberry pi 9 (Stretch), so I am not completely sure if they are working on Raspberry pi 10 (Buster). Please, read section 7.6.2.2 of theUM-B-100: DA14585 IoT Multi Sensor Development Kit User Guide. You could try to use theRasberry Pi Gateway imageinstead of the scripts. In addition, the issue might be related to the fact that date is not set on Raspberry Pi and consequently pip install returned a certificate error.
当前项目只是作为一个跟踪应用程序,以便将资产上传到云端。Raspberry pi和585 IoT MSK之间的连接功能目前不受支持。请注意,我们正在进行这方面的工作,我们希望在9月份的时间框架内有一些东西可以共享。我会让你知道…
Thanks, PM_Dialog