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

 找回密码
 立即注册
查看: 1721|回复: 11

[硬件DIY] 把cc2652p的z2m网关刷成router

[复制链接]

35

主题

371

帖子

2249

积分

金牌会员

Rank: 6Rank: 6

积分
2249
金钱
1878
HASS币
10
发表于 2023-3-22 21:25:02 | 显示全部楼层 |阅读模式
本帖最后由 lexcao 于 2023-3-22 21:28 编辑

想把在某刚家买的一个cc2652p网关刷成router。

拆解如下:
IMG_9149.jpg
IMG_9150.jpeg

经查询,cc2652p模块为亿佰特的Ebyte E72-2G4M20S1E,主板为Egony Stick V4(Ebyte ver.)
搞了半天是从老毛子那边搞来卖的,呵呵

那么我顺便也把flashing的教程贴上来,供大家参考吧。
原文:https://github.com/egony/cc2652p_E72-2G4M20S1E/wiki/Flashing-EN
<b>Preparation</b>

Option 1
……
Option 2

Use the precompiled exe file <a href="https://github.com/egony/cc2652p_E72-2G4M20S1E/raw/master/files/cc2538-bsl_x64.zip">cc2538-bsl_x64.exe</a>. You do not need to install python and its modules.

<b>Flashing process</b>

The process of flashing for sticks of different revisions looks different due to different methods of activating the bootloader - by buttons or automatically (Auto BSL).
Attention!!! All of the following is true ONLY for the sticks that I personally built.
Attention!!! On sticks with the ability to flash without using buttons (Auto BSL) - the functionality of the buttons is not guaranteed.
The stick revision can be viewed on the board.

Flashing sticks with Auto BSL
No buttons are required.
rev. 2.0E and rev. 1.0R
python.exe cc2538-bsl.py -p COM3 --invoke-bootloader 3 -ewv znp_CC2652P.hex
rev. 2.1E and rev. 2.3E
python.exe cc2538-bsl.py -p COM3 --bootloader-invert-lines -ewv znp_CC2652P.hex
rev. 2.5E and rev. 3.xX
python.exe cc2538-bsl.py -p COM3 -ewv znp_CC2652P.hex

Flashing the rest of the sticks and pi shields/hat (activating the bootloader with buttons)
Hold down the FLASH (BSL) button, insert the stick into USB, release FLASH (BSL) button.
python.exe cc2538-bsl.py -p COM3 -ewv znp_CC2652P.hex


The process looks something like this:

Opening port COM3, baud 500000
Reading data from CC1352P2_CC2652P_other_20201113.hex
Your firmware looks like an Intel Hex file
Connecting to target ...
CC1350 PG2.0 (7x7mm): 352KB Flash, 20KB SRAM, CCFG.BL_CONFIG at 0x00057FD8
Primary IEEE Address: 00: 12: 4B: 00: 21: B4: 94: C2
    Performing mass erase
Erasing all main bank flash sectors
    Erase done
Writing 360 448 bytes starting at address 0x00000000
Write 104 bytes at 0x00057F980
    Write done
Verifying by comparing CRC32 calculations.
    Verified (match: 0x55e2e461)
At the end of the flashing, you may need to unplug-plug the stick into USB or press RESET.

After flashing, it is strongly recommended to clear the stick memory (only for coordinator firmware, routers do not need to be cleaned).



模块的router固件地址

注:以上内容未经本人测试,望谨慎操作。

评分

参与人数 1金钱 +10 收起 理由
隔壁的王叔叔 + 10 高手,这是高手!

查看全部评分

回复

使用道具 举报

35

主题

371

帖子

2249

积分

金牌会员

Rank: 6Rank: 6

积分
2249
金钱
1878
HASS币
10
 楼主| 发表于 2023-3-23 07:07:51 | 显示全部楼层
刷好了,今天去试试是否可用
cc2652p的zigbee中继,想想就很激动
027A5609-1631-401E-8736-B32E929657B1.jpeg
回复

使用道具 举报

2

主题

125

帖子

1436

积分

金牌会员

Rank: 6Rank: 6

积分
1436
金钱
1311
HASS币
0
发表于 2023-3-23 08:11:55 | 显示全部楼层
和我diy的一样
回复

使用道具 举报

7

主题

314

帖子

2755

积分

金牌会员

Rank: 6Rank: 6

积分
2755
金钱
2441
HASS币
0
发表于 2023-3-23 09:10:40 | 显示全部楼层
不懂纯围观,koenkk也有router固件,啥区别呢
回复

使用道具 举报

35

主题

371

帖子

2249

积分

金牌会员

Rank: 6Rank: 6

积分
2249
金钱
1878
HASS币
10
 楼主| 发表于 2023-3-23 09:24:43 | 显示全部楼层
yuyuye 发表于 2023-3-23 09:10
不懂纯围观,koenkk也有router固件,啥区别呢

应该是一样的
回复

使用道具 举报

35

主题

371

帖子

2249

积分

金牌会员

Rank: 6Rank: 6

积分
2249
金钱
1878
HASS币
10
 楼主| 发表于 2023-3-23 09:25:47 | 显示全部楼层

这方面diy的教程少,网上的成品也不划算
回复

使用道具 举报

7

主题

89

帖子

1146

积分

金牌会员

Rank: 6Rank: 6

积分
1146
金钱
1057
HASS币
10
发表于 2023-3-23 12:36:49 | 显示全部楼层
家里有一个就够了,毕竟插座,开关的都能中继。
回复

使用道具 举报

1

主题

32

帖子

174

积分

注册会员

Rank: 2

积分
174
金钱
142
HASS币
0
发表于 2023-3-23 14:09:48 | 显示全部楼层
请问楼主,使用效果如何?
回复

使用道具 举报

1

主题

83

帖子

1158

积分

金牌会员

Rank: 6Rank: 6

积分
1158
金钱
1075
HASS币
0
发表于 2023-3-24 16:04:14 | 显示全部楼层
开源的 自己打板做就好了~
回复

使用道具 举报

0

主题

562

帖子

2183

积分

金牌会员

Rank: 6Rank: 6

积分
2183
金钱
1621
HASS币
0
发表于 2023-3-24 17:16:05 | 显示全部楼层
独心 发表于 2023-3-24 16:04
开源的 自己打板做就好了~

芯片缺货了,还好当时做了2个,有备用
回复

使用道具 举报

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

本版积分规则

Archiver|手机版|小黑屋|Hassbian

GMT+8, 2024-4-27 18:59 , Processed in 0.064767 second(s), 35 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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