『瀚思彼岸』» 智能家居技术论坛

 找回密码
 立即注册
楼主: meishild

[快速入门] 篇七:树莓派zero w蓝牙网关

  [复制链接]

1

主题

27

帖子

308

积分

论坛技术达人

积分
308
金钱
281
HASS币
0
发表于 2019-8-23 16:49:33 | 显示全部楼层
学习了,mark
回复

使用道具 举报

12

主题

67

帖子

1063

积分

论坛技术达人

积分
1063
金钱
946
HASS币
200

教程狂人

 楼主| 发表于 2019-8-23 16:49:50 | 显示全部楼层

多打印点错误 去syslog里打印。
回复

使用道具 举报

12

主题

67

帖子

1063

积分

论坛技术达人

积分
1063
金钱
946
HASS币
200

教程狂人

 楼主| 发表于 2019-8-23 16:53:00 | 显示全部楼层

不是一种东西,esp完全diy性质的,需要对硬件电路有了解,而且单片机全靠固件,树莓派里启动是完整的linux,算性价比树莓派高多了,树莓派上蓝牙和wifi芯片小到都看不清。
回复

使用道具 举报

46

主题

641

帖子

4411

积分

元老级技术达人

积分
4411
金钱
3740
HASS币
120
发表于 2019-8-23 17:03:02 | 显示全部楼层
meishild 发表于 2019-8-23 16:53
不是一种东西,esp完全diy性质的,需要对硬件电路有了解,而且单片机全靠固件,树莓派里启动是完整的linu ...

不会esphome,这个选择也还不错。顺便赞以下你的教程,写得很详细,论坛需要你这样的热心人
回复

使用道具 举报

0

主题

7

帖子

32

积分

新手上路

Rank: 1

积分
32
金钱
25
HASS币
0
发表于 2019-8-23 19:26:50 来自手机 | 显示全部楼层
大神太有才了,我想问一下,这个可以全面替代小米的蓝牙智能网关吗,毕竟价格能便宜很多
回复

使用道具 举报

16

主题

331

帖子

2410

积分

金牌会员

Rank: 6Rank: 6

积分
2410
金钱
2079
HASS币
0
发表于 2019-8-23 19:40:53 | 显示全部楼层
9.png
到这一步貌似还是正确的吧?
回复

使用道具 举报

16

主题

331

帖子

2410

积分

金牌会员

Rank: 6Rank: 6

积分
2410
金钱
2079
HASS币
0
发表于 2019-8-23 19:44:40 | 显示全部楼层
这是打印的所有服务日志


root@debian:~# tail -100f /var/log/syslog
Aug 23 16:28:18 debian kernel: [   77.007851] hassio: port 4(veth4af5bb5) entered disabled state
Aug 23 16:28:18 debian kernel: [   77.007972] device veth4af5bb5 entered promiscuous mode
Aug 23 16:28:18 debian kernel: [   77.008112] IPv6: ADDRCONF(NETDEV_UP): veth4af5bb5: link is not ready
Aug 23 16:28:18 debian systemd-udevd[1699]: Could not generate persistent MAC address for vethb6d6ce1: No such file or directory
Aug 23 16:28:18 debian systemd-udevd[1700]: Could not generate persistent MAC address for veth4af5bb5: No such file or directory
Aug 23 16:28:18 debian containerd[614]: time="2019-08-23T16:28:18.580146819+08:00" level=info msg="shim containerd-shim started" address="/containerd-shim/moby/ba9a532f2c4cdf1d1916e99a168c770c90d593c1de701e9944b6f8f4ef72a00c/shim.sock" debug=false pid=1720
Aug 23 16:28:19 debian hassio-supervisor[884]: #033[32m19-08-23 08:28:19 INFO (SyncWorker_14) [hassio.docker.addon] Start Docker add-on hassioaddons/airsonos-amd64 with version v2.1.0#033[0m
Aug 23 16:28:19 debian kernel: [   78.312342] eth0: renamed from vethb6d6ce1
Aug 23 16:28:19 debian kernel: [   78.327735] IPv6: ADDRCONF(NETDEV_CHANGE): veth4af5bb5: link becomes ready
Aug 23 16:28:19 debian kernel: [   78.327784] hassio: port 4(veth4af5bb5) entered blocking state
Aug 23 16:28:19 debian kernel: [   78.327785] hassio: port 4(veth4af5bb5) entered forwarding state
Aug 23 16:28:20 debian hassio-supervisor[884]: #033[32m19-08-23 08:28:20 INFO (SyncWorker_2) [hassio.docker.addon] Start Docker add-on hassioaddons/vscode-amd64 with version v0.6.4#033[0m
Aug 23 16:28:21 debian avahi-daemon[551]: Joining mDNS multicast group on interface veth4af5bb5.IPv6 with address fe80::90f5:7bff:fe2a:2ebf.
Aug 23 16:28:21 debian avahi-daemon[551]: New relevant interface veth4af5bb5.IPv6 for mDNS.
Aug 23 16:28:21 debian avahi-daemon[551]: Registering new address record for fe80::90f5:7bff:fe2a:2ebf on veth4af5bb5.*.
Aug 23 16:28:24 debian hassio-supervisor[884]: #033[32m19-08-23 08:28:24 INFO (MainThread) [hassio.api.security] /host/info access from a0d7b954_airsonos#033[0m
Aug 23 16:28:25 debian hassio-supervisor[884]: #033[32m19-08-23 08:28:25 INFO (SyncWorker_17) [hassio.docker.interface] Start homeassistant/qemux86-64-homeassistant#033[0m
Aug 23 16:28:26 debian containerd[614]: time="2019-08-23T16:28:26.982810276+08:00" level=info msg="shim containerd-shim started" address="/containerd-shim/moby/23c681d39f11ba4a6a4e085b717a7c75c682be053f37c2b4d3c8b07cadbe81c3/shim.sock" debug=false pid=2406
Aug 23 16:28:28 debian hassio-supervisor[884]: #033[32m19-08-23 08:28:28 INFO (MainThread) [hassio.api.security] /host/info access from a0d7b954_vscode#033[0m
Aug 23 16:28:39 debian systemd[1]: Started Session 3 of user root.
Aug 23 16:29:38 debian hassio-supervisor[884]: #033[32m19-08-23 08:29:38 INFO (MainThread) [hassio.homeassistant] Detect a running Home Assistant instance#033[0m
Aug 23 16:29:38 debian hassio-supervisor[884]: #033[32m19-08-23 08:29:38 INFO (MainThread) [hassio.addons] Phase 'application' start 2 add-ons#033[0m
Aug 23 16:29:38 debian hassio-supervisor[884]: #033[32m19-08-23 08:29:38 INFO (SyncWorker_1) [hassio.docker.interface] Clean addon_a0d7b954_nodered application#033[0m
Aug 23 16:29:38 debian hassio-supervisor[884]: #033[32m19-08-23 08:29:38 INFO (SyncWorker_0) [hassio.docker.interface] Clean addon_core_nginx_proxy application#033[0m
Aug 23 16:29:39 debian dockerd[615]: time="2019-08-23T16:29:39.376995803+08:00" level=warning msg="Security options with `:` as a separator are deprecated and will be completely unsupported in 17.04, use `=` instead."
Aug 23 16:29:39 debian dockerd[615]: time="2019-08-23T16:29:39.843010848+08:00" level=warning msg="Security options with `:` as a separator are deprecated and will be completely unsupported in 17.04, use `=` instead."
Aug 23 16:29:40 debian kernel: [  158.616603] hassio: port 5(veth25dd535) entered blocking state
Aug 23 16:29:40 debian kernel: [  158.616606] hassio: port 5(veth25dd535) entered disabled state
Aug 23 16:29:40 debian kernel: [  158.616768] device veth25dd535 entered promiscuous mode
Aug 23 16:29:40 debian kernel: [  158.616891] IPv6: ADDRCONF(NETDEV_UP): veth25dd535: link is not ready
Aug 23 16:29:40 debian systemd-udevd[3057]: Could not generate persistent MAC address for vethc99dd6d: No such file or directory
Aug 23 16:29:40 debian systemd-udevd[3058]: Could not generate persistent MAC address for veth25dd535: No such file or directory
Aug 23 16:29:40 debian containerd[614]: time="2019-08-23T16:29:40.437023275+08:00" level=info msg="shim containerd-shim started" address="/containerd-shim/moby/0c34d943e4ebc01e1851fce71d772a8f842b271268409ea7a349d05fff4e8d45/shim.sock" debug=false pid=3098
Aug 23 16:29:40 debian containerd[614]: time="2019-08-23T16:29:40.567651300+08:00" level=info msg="shim containerd-shim started" address="/containerd-shim/moby/e0272aff7ad06e706db4447e7bd466f6470cbe5d290f476e01d21f5249970684/shim.sock" debug=false pid=3117
Aug 23 16:29:41 debian hassio-supervisor[884]: #033[32m19-08-23 08:29:41 INFO (SyncWorker_1) [hassio.docker.addon] Start Docker add-on hassioaddons/node-red-amd64 with version v4.0.7#033[0m
Aug 23 16:29:41 debian kernel: [  159.976214] eth0: renamed from vethc99dd6d
Aug 23 16:29:41 debian kernel: [  159.992200] IPv6: ADDRCONF(NETDEV_CHANGE): veth25dd535: link becomes ready
Aug 23 16:29:41 debian kernel: [  159.992250] hassio: port 5(veth25dd535) entered blocking state
Aug 23 16:29:41 debian kernel: [  159.992251] hassio: port 5(veth25dd535) entered forwarding state
Aug 23 16:29:42 debian hassio-supervisor[884]: #033[32m19-08-23 08:29:42 INFO (SyncWorker_0) [hassio.docker.addon] Start Docker add-on homeassistant/amd64-addon-nginx_proxy with version 2.2#033[0m
Aug 23 16:29:42 debian avahi-daemon[551]: Joining mDNS multicast group on interface veth25dd535.IPv6 with address fe80::7c55:7bff:fe3f:f77c.
Aug 23 16:29:42 debian avahi-daemon[551]: New relevant interface veth25dd535.IPv6 for mDNS.
Aug 23 16:29:42 debian avahi-daemon[551]: Registering new address record for fe80::7c55:7bff:fe3f:f77c on veth25dd535.*.
Aug 23 16:29:45 debian hassio-supervisor[884]: #033[32m19-08-23 08:29:45 INFO (MainThread) [hassio.api.security] /host/info access from a0d7b954_nodered#033[0m
Aug 23 16:29:47 debian hassio-supervisor[884]: #033[32m19-08-23 08:29:47 INFO (MainThread) [hassio.tasks] All core tasks are scheduled#033[0m
Aug 23 16:29:47 debian hassio-supervisor[884]: #033[32m19-08-23 08:29:47 INFO (MainThread) [hassio.core] Hass.io is up and running#033[0m
Aug 23 16:36:57 debian systemd[1]: Stopping User Manager for UID 0...
Aug 23 16:36:57 debian systemd[647]: Stopped target Default.
Aug 23 16:36:57 debian systemd[647]: Stopped target Basic System.
Aug 23 16:36:57 debian systemd[647]: Stopped target Timers.
Aug 23 16:36:57 debian systemd[647]: Stopped target Paths.
Aug 23 16:36:57 debian systemd[647]: Stopped target Sockets.
Aug 23 16:36:57 debian systemd[647]: Closed GnuPG cryptographic agent and passphrase cache.
Aug 23 16:36:57 debian systemd[647]: Closed GnuPG cryptographic agent (ssh-agent emulation).
Aug 23 16:36:57 debian systemd[647]: Closed GnuPG cryptographic agent and passphrase cache (restricted).
Aug 23 16:36:57 debian systemd[647]: Closed GnuPG cryptographic agent (access for web browsers).
Aug 23 16:36:57 debian systemd[647]: Reached target Shutdown.
Aug 23 16:36:57 debian systemd[647]: Starting Exit the Session...
Aug 23 16:36:57 debian systemd[647]: Received SIGRTMIN+24 from PID 4225 (kill).
Aug 23 16:36:57 debian systemd[1]: Stopped User Manager for UID 0.
Aug 23 16:36:57 debian systemd[1]: Removed slice User Slice of root.
Aug 23 16:39:01 debian CRON[4584]: (root) CMD (  [ -x /usr/lib/php/sessionclean ] && if [ ! -d /run/systemd/system ]; then /usr/lib/php/sessionclean; fi)
Aug 23 16:39:06 debian systemd[1]: Starting Clean php session files...
Aug 23 16:39:07 debian systemd[1]: Started Clean php session files.
Aug 23 16:42:06 debian systemd[1]: Starting Cleanup of Temporary Directories...
Aug 23 16:42:06 debian systemd[1]: Started Cleanup of Temporary Directories.
Aug 23 17:09:01 debian CRON[6190]: (root) CMD (  [ -x /usr/lib/php/sessionclean ] && if [ ! -d /run/systemd/system ]; then /usr/lib/php/sessionclean; fi)
Aug 23 17:09:07 debian systemd[1]: Starting Clean php session files...
Aug 23 17:09:07 debian systemd[1]: Started Clean php session files.
Aug 23 17:17:01 debian CRON[6669]: (root) CMD (   cd / && run-parts --report /etc/cron.hourly)
Aug 23 17:39:01 debian CRON[7768]: (root) CMD (  [ -x /usr/lib/php/sessionclean ] && if [ ! -d /run/systemd/system ]; then /usr/lib/php/sessionclean; fi)
Aug 23 17:39:07 debian systemd[1]: Starting Clean php session files...
Aug 23 17:39:07 debian systemd[1]: Started Clean php session files.
Aug 23 18:09:01 debian CRON[9310]: (root) CMD (  [ -x /usr/lib/php/sessionclean ] && if [ ! -d /run/systemd/system ]; then /usr/lib/php/sessionclean; fi)
Aug 23 18:09:07 debian systemd[1]: Starting Clean php session files...
Aug 23 18:09:07 debian systemd[1]: Started Clean php session files.
Aug 23 18:17:01 debian CRON[9786]: (root) CMD (   cd / && run-parts --report /etc/cron.hourly)
Aug 23 18:29:47 debian hassio-supervisor[884]: #033[32m19-08-23 10:29:47 INFO (MainThread) [hassio.updater] Fetch update data from https://version.home-assistant.io/stable.json#033[0m
Aug 23 18:39:01 debian CRON[10886]: (root) CMD (  [ -x /usr/lib/php/sessionclean ] && if [ ! -d /run/systemd/system ]; then /usr/lib/php/sessionclean; fi)
Aug 23 18:39:07 debian systemd[1]: Starting Clean php session files...
Aug 23 18:39:07 debian systemd[1]: Started Clean php session files.
Aug 23 19:09:01 debian CRON[12455]: (root) CMD (  [ -x /usr/lib/php/sessionclean ] && if [ ! -d /run/systemd/system ]; then /usr/lib/php/sessionclean; fi)
Aug 23 19:09:07 debian systemd[1]: Starting Clean php session files...
Aug 23 19:09:08 debian systemd[1]: Started Clean php session files.
Aug 23 19:17:01 debian CRON[12942]: (root) CMD (   cd / && run-parts --report /etc/cron.hourly)
Aug 23 19:17:30 debian systemd[1]: Created slice User Slice of root.
Aug 23 19:17:30 debian systemd[1]: Starting User Manager for UID 0...
Aug 23 19:17:30 debian systemd[1]: Started Session 13 of user root.
Aug 23 19:17:30 debian systemd[12994]: Listening on GnuPG cryptographic agent and passphrase cache.
Aug 23 19:17:30 debian systemd[12994]: Listening on GnuPG cryptographic agent and passphrase cache (restricted).
Aug 23 19:17:30 debian systemd[12994]: Reached target Paths.
Aug 23 19:17:30 debian systemd[12994]: Reached target Timers.
Aug 23 19:17:30 debian systemd[12994]: Listening on GnuPG cryptographic agent (access for web browsers).
Aug 23 19:17:30 debian systemd[12994]: Listening on GnuPG cryptographic agent (ssh-agent emulation).
Aug 23 19:17:30 debian systemd[12994]: Reached target Sockets.
Aug 23 19:17:30 debian systemd[12994]: Reached target Basic System.
Aug 23 19:17:30 debian systemd[12994]: Reached target Default.
Aug 23 19:17:30 debian systemd[12994]: Startup finished in 36ms.
Aug 23 19:17:30 debian systemd[1]: Started User Manager for UID 0.
Aug 23 19:17:40 debian systemd[1]: Started Session 15 of user root.

回复

使用道具 举报

9

主题

205

帖子

2660

积分

金牌会员

Rank: 6Rank: 6

积分
2660
金钱
2455
HASS币
0
发表于 2019-8-24 10:45:57 | 显示全部楼层
要是linux的就好了
回复

使用道具 举报

4

主题

135

帖子

695

积分

高级会员

Rank: 4

积分
695
金钱
560
HASS币
0
发表于 2019-8-26 09:46:54 | 显示全部楼层
大佬,我按步骤操作下来出现这个问题。
TIM截图20190826094155.png
回复

使用道具 举报

12

主题

67

帖子

1063

积分

论坛技术达人

积分
1063
金钱
946
HASS币
200

教程狂人

 楼主| 发表于 2019-8-26 10:16:08 | 显示全部楼层
chenzijian 发表于 2019-8-26 09:46
大佬,我按步骤操作下来出现这个问题。

去看一下完整的日志,cat /var/log/syslog | grep gateway
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|小黑屋|Hassbian

GMT+8, 2024-11-23 16:02 , Processed in 0.161173 second(s), 33 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表