-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SONOFF ZBMINI (01MINIZB) with CC2652P can only work as CC2652R1 - by HW design #96
Comments
Sorry, but I do not have these modules, and I cannot look at this problem in a debugger. |
Can I do anything to help? This is the status in Flash Programmer 2, the chip is properly detected: Are there any hardware specifics, which could make CC2652P work on one PCB design but not on another? The crystal on this board is 48.000 MHz. |
Just tried again using the newest release ptvo-firmware-2022-02-16.zip. Left all settings at their defaults, only made the following configuration changes:
Tried the following combinations:
Additional tests which can be helpful:
I currently don't have additional ideas about what else to try 😞 |
@bojanpotocnik, I had same module zbmini with CC2652P. I was able to flush it only once connecting with needles. There is no TDO и TDI spots to solder. I see you used Flash programmer 2, but what hardware did you use? |
I use TMS320-XDS100-V3 (bought it on Mouser because I didn't want to wait for it, but there are plenty on cheap clones available which should do the work) by connecting TCK and TMS (cJTAG protocol). |
Hello. As you can see in PTVO telegram was able to flush ZBMINI with firmware configured to cc2652r. |
@bojanpotocnik Could you please try firmware for CC2652P from the latest version with this module? |
I have just tested with ZBMINI with the original FW. Using But I discovered another interesting thing: 2 modules side by side, one with the original FW, one with ptvo CC2652R1 FW (CC2652P still doesn't work with 63199af): they have identical LQI (29-32) 🤨 |
Considering that the original -P FW has identical LQI as the -R1 FW, I asked myself: would it be possible that ITead designed the hardware incorrectly for 20 dBm output, so they are also not using the high-power amplifier? My doubts amplified after checking the Reference Design documents:
Notice the top and bottom matching circuits and their connections, ignore the middle one: Notice the ZBMINI connections: So this is not a FW but HW issue, @ptvoinfo sorry for me not checking this first. |
@bojanpotocnik sorry, the conclusion is not clear for me. So, the ZBMINI cannot work as a router with the custom firmware OR just if I set the chip type to CC2652R1? update: ZBMINI is working now, took ~20 mins to join the network (created FW as CC2652R1 + Router dev. type) |
I think that the conclusion is that can not configure the firmware to that it does to use power amplifier. CC2652R does not have power amplifier so it is limited to 5 dBm maximum and thus using its configuration profile for a CC2652P chip it will never go over a TX transmit power of 5 dBm and thus not never try to make use of the power amplifier. Manually configuring the TX transmit power to 5 dBm or less in the firmware should probably also work? |
Not sure if this can help, I have PTVO firmware running fine as router on a CC2652P device based on a RF Star module RF-BM-2652P2. I used a chinese clone of XDS110 to flash the device. I also have this firmware running fine on a different device based on E-BYTE E72-2G4M05S1F (CC2652RB) but this one is configured as end point (not router). |
@glcos as ptvo mentioned in their blog post, the ptvo firmware itself works fine on the CC2652P chip and makes use of the +20 dBm power amplifier.
@ptvoinfo, do you need to manually enable TX Power Amplifier (e.g. before setting power higher than 5 dBm) or is it done automatically by the SDK if the set power is higher than 5 dBm? |
@glcos You could maybe help by providing an end-device firmware with TX 5 dBm for users to test with "SONOFF ZBMINI-L"? See Koenkk/zigbee2mqtt#11676 and https://community.home-assistant.io/t/sonoff-zbmini-l-zigbee-3-0-smart-switch-by-itead-works-without-neutral-wire-and-based-on-cc2652p-so-should-be-a-good-zigbee-router/384644/ |
@Hedda Unfortunately I have no idea how to provide a firmware with +5dBm output power. There is not such option in the PTVO GUI and I have no access to firmware sources. |
@glcos, The firmware for cc2652r has +5dBm output power by default. So, the firmware should be the same as for ZBMINI |
I do not own a SONOFF device to test |
But the "SONOFF ZBMINI" has a Zigbee Router config though and the "SONOFF ZBMINI-L" should have End Device config? See: and "SONOFF ZBMINI-L" is a device without neutral and thus not guaranteed to always have power so therefore config as End Device. |
@Hedda |
@bojanpotocnik do you know the pin numbers off this device? P07 seems to be the LED as you mentioned but I have no clue how to find the other pins. Update: nevermind, just found out this tool comes with a preset folder 😄 |
@ptvoinfo would it be possible to generate a |
P07 - LED |
@Koenkk Currently, the firmware can only send on/off commands to a bound device. Does your wall switch have a button with two fixed positions, or it is a clickable button too? |
@ptvoinfo two fixed positions, it is connected to the s1 and s2 ports of the sonoff mini. I think this would be a very common use case, you will basically get a hue wall switch but than cheaper and with AC power instead of batteries. |
@Koenkk Then, I do not understand why the switch (toggle off) & on/off commands do not work with that bulb? |
@ptvoinfo they will work, problem is that the bulb can also be controlled via zigbee2mqtt directly so the switch will be in a different state, a e.g.
|
Did you think that is possible to flash with custom firmware an cheap Sonoff SNZB-01 push button to do the same functionnality that an hue wall switch Today, in my experience, only the "hue wall switch" have this feature. Thanks a lot for your reply. |
@robotsflo why not start a new seperate issue for that when your question is not related to the original issue? |
This is probably not an issue with this firmware itself (I see that other users got CC2652P chips working with this FW), but it is a strange issue I cannot explain.
Last month, I received few ZBMINI modules from different AliExpress vendors, all of them containing CC2652 P1F chip:
I have mentioned this here Koenkk/zigbee2mqtt#10704 (comment), however I now noticed that the modules do not pair even with ZHA. If I set the Board type to
CC2652R1
they work fine, if set toCC2652P/CC1352P2
they don't work.Does anyone have any idea what could be the cause? I don't believe this would be fake
P
chips which are in factR1
... or?I have XDS100v3 so I can also help with any debugging steps. Thank you.
The text was updated successfully, but these errors were encountered: