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

标题: 把cc2652p的z2m网关刷成router [打印本页]

作者: lexcao    时间: 2023-3-22 21:25
标题: 把cc2652p的z2m网关刷成router
本帖最后由 lexcao 于 2023-3-22 21:28 编辑

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

拆解如下:
[attach]46587[/attach]
[attach]46588[/attach]

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

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

  2. Option 1
  3. ……
  4. Option 2

  5. 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.

  6. <b>Flashing process</b>

  7. 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).
  8. Attention!!! All of the following is true ONLY for the sticks that I personally built.
  9. Attention!!! On sticks with the ability to flash without using buttons (Auto BSL) - the functionality of the buttons is not guaranteed.
  10. The stick revision can be viewed on the board.

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

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


  4. The process looks something like this:

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

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



模块的router固件地址

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

作者: lexcao    时间: 2023-3-23 07:07
刷好了,今天去试试是否可用
cc2652p的zigbee中继,想想就很激动
[attach]46612[/attach]
作者: adamjensen    时间: 2023-3-23 08:11
和我diy的一样
作者: yuyuye    时间: 2023-3-23 09:10
不懂纯围观,koenkk也有router固件,啥区别呢
作者: lexcao    时间: 2023-3-23 09:24
yuyuye 发表于 2023-3-23 09:10
不懂纯围观,koenkk也有router固件,啥区别呢

应该是一样的
作者: lexcao    时间: 2023-3-23 09:25
adamjensen 发表于 2023-3-23 08:11
和我diy的一样

这方面diy的教程少,网上的成品也不划算
作者: piaoling    时间: 2023-3-23 12:36
家里有一个就够了,毕竟插座,开关的都能中继。
作者: recoco    时间: 2023-3-23 14:09
请问楼主,使用效果如何?
作者: 独心    时间: 2023-3-24 16:04
开源的 自己打板做就好了~
作者: Ari    时间: 2023-3-24 17:16
独心 发表于 2023-3-24 16:04
开源的 自己打板做就好了~

芯片缺货了,还好当时做了2个,有备用
作者: lexcao    时间: 2023-3-27 10:50
recoco 发表于 2023-3-23 14:09
请问楼主,使用效果如何?

ZHA里面没有找到设备,不知道是不是失败了
作者: 独心    时间: 2023-3-29 23:07
Ari 发表于 2023-3-24 17:16
芯片缺货了,还好当时做了2个,有备用

啊?缺货了啊- -我还有3片e72,7片2652p2




欢迎光临 『瀚思彼岸』» 智能家居技术论坛 (https://bbs.hassbian.com/) Powered by Discuz! X3.5