Skip to content
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

About "connect P04, P06 and P20 to GND" #794

Open
fred-c1 opened this issue Jan 2, 2019 · 11 comments

Comments

Projects
None yet
7 participants
@fred-c1
Copy link

commented Jan 2, 2019

This is not an issue but more a FYI or TBC/To Be Confirmed

In very short: it seems that with the lastest firmware(s???), "connect P04, P06 and P20 to GND" is not needed anymore.

For memo, "connect P04, P06 and P20 to GND" comes from this page:
https://koenkk.github.io/zigbee2mqtt/information/cc_sniffer_devices.html
in "CC2530 with RFX2401" section

******************************** This is how I came to the conclusion that "connect P04, P06 and P20 to GND" is not needed anymore.

Hardware:
I don't have a GBAN unit
I have ZB600+XCore2530. Like the GBAN unit, this hardware is based on CC2530+RFX2401
On ZB600 I removed all the jumpers except UART RX and TX
Therefore the CC2530 P04, P06 and P20 pins are floating

Firmware:
https://github.com/Koenkk/Z-Stack-firmware/blob/master/coordinator/CC2530_CC2591/bin/CC2530_CC2591ZNP-Prod_20181123.zip

I have done several reboot and power cycling => good startup and operation of Zigbee2MQTT

******************************** Below is an attempt to clarify the original "connect P04, P06 and P20 to GND" requirement

The orginal firmware of "https://github.com/Koenkk/Z-Stack-firmware" is ti.com ZNP provided in ti.com Z-stack.
This original firmware is designed for ti.com hardware: SmartRF05EB + CC2530EM

On ti.com board:
P0.4 = EM_UART_CTS = serial port "Clear To Send" (CC2530 input)
P0.5 = EM_UART_RTS = serial port "Request To Send" (CC2530 output)
(P0.6 = EM_JOY_LEVEL = "Voltage level from joystick, indicating position")
P2.0 = EM_JOY_MOVE = "Positive edge when the joystick is moved"

Back to "connect P04, P06 and P20 to GND":

About "P06": I believe that this is a typo and should be P05
In fact many post refer to P05 instead of P06

About "P04" and "P05"
I believe that you don't need to connect these pins to GND anymore because
RTS/CTS is disabled in the new CC2530 firmware
+
RTS/CTS is disabled in configuration.yaml (rtscts: false)

About "P20"
I don't why apparently, you don't need to connect it to GND anaymore


wish 1: maybe someone else could confirm that "connect P04, P06 and P20 to GND" is not needed anymore.

wish 2: it would be great to have a reliable method to upgrade (/replace) the firmware (/coordinator) without having to repair all the devices. My attempt to do this failed (I lost some devices).

Happy new year !

@MikeVRT

This comment has been minimized.

Copy link

commented Jan 4, 2019

maybe someone else could confirm that "connect P04, P06 and P20 to GND" is not needed anymore

on my CC2530 (without RFX2401) its NEEDED. without that - didn't not work.

@ykreal

This comment has been minimized.

Copy link

commented Jan 18, 2019

Thanks for the information.

Hardware:
CC2530 with RFX2401(GBAN unit) didn't connect P04, P06 and P20 to GND

configuration.yaml:
rtscts: false

Firmware:
coordinator: CC2530_CC2591ZNP-Prod_20181123.zip (work)
router: CC2530_CC2591_router_2018_09.zip (work)

When startup Zigbee2MQTT everytime, I got a warning message.
But I think it's okay.
warn: No converter available for 'CC2530.ROUTER' with cid 'genOnOff', type 'devChange' and data '{"cid":"genOnOff","data":{"onOff":0}}'

@desertspider

This comment has been minimized.

Copy link

commented Jan 27, 2019

I can confirm for the CC2530 with RFX2401 no soldering is needed anymore.

@enboig

This comment has been minimized.

Copy link

commented Feb 4, 2019

I am flashing CC2530 with RFX2401 as a coordinator, but it don't work. Flashing appear to be ok:

~/src/cc-tool-gban$ sudo ./cc-tool -v -e -w  CC2530ZNP-Prod.hex 
  Programmer: SmartRF04DD
  Target: CC2530
  Erasing flash...
  Completed       
  Writing flash (241 KB)...
  Completed (8.35 s.)
  Verifying flash...
  Completed (3.26 s.)

and it is detected

[ 2082.847883] usb 1-5: new full-speed USB device number 18 using xhci_hcd
[ 2082.997889] usb 1-5: New USB device found, idVendor=10c4, idProduct=ea60
[ 2082.997895] usb 1-5: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 2082.997900] usb 1-5: Product: CP2102 USB to UART Bridge Controller
[ 2082.997904] usb 1-5: Manufacturer: Silicon Labs
[ 2082.997907] usb 1-5: SerialNumber: 0001
[ 2082.999079] cp210x 1-5:1.0: cp210x converter detected
[ 2083.000862] usb 1-5: cp210x converter now attached to ttyUSB0

But fails to start:

  zigbee2mqtt:info 2019-2-4 23:47:20 Logging to directory: '/home/user/src/zigbee2mqtt/data/log/2019-02-04.23-47-20'
  zigbee2mqtt:info 2019-2-4 23:47:20 Starting zigbee2mqtt version 1.1.1 (commit #4fbb666)
  zigbee2mqtt:info 2019-2-4 23:47:20 Starting zigbee-shepherd
  zigbee2mqtt:info 2019-2-4 23:47:23 Error while starting zigbee-shepherd, attemping to fix... (takes 60 seconds)
  zigbee2mqtt:info 2019-2-4 23:48:23 Starting zigbee-shepherd
  zigbee2mqtt:error 2019-2-4 23:48:26 Error while starting zigbee-shepherd!
  zigbee2mqtt:error 2019-2-4 23:48:26 Press the reset button on the stick (the one closest to the USB) and start again
  zigbee2mqtt:error 2019-2-4 23:48:26 Failed to start
	{"message":"request timeout","stack":"Error: request timeout\n    at CcZnp.<anonymous> (/home/user/src/zigbee2mqtt/node_modules/cc-znp/lib/ccznp.js:255:22)\n    at Object.onceWrapper (events.js:277:13)\n    at CcZnp.emit (events.js:189:13)\n    at Timeout.<anonymous> (/home/user/src/zigbee2mqtt/node_modules/cc-znp/lib/ccznp.js:234:18)\n    at ontimeout (timers.js:436:11)\n    at tryOnTimeout (timers.js:300:5)\n    at listOnTimeout (timers.js:263:5)\n    at Timer.processTimers (timers.js:223:10)"}

I tried with rtscts: false
Am I missin something? I am using firmware CC2530_CC2591ZNP-Prod_20190109.zip

EDIT: Now it is working, I wasn't putting rtscts into advanced section

@avanc

This comment has been minimized.

Copy link

commented Mar 25, 2019

If this is confirmed, the documentation should be updated:
https://www.zigbee2mqtt.io/information/cc_sniffer_devices.html

@fred-c1

This comment has been minimized.

Copy link
Author

commented Apr 6, 2019

@Koenkk , can you help to update the docuentation?
https://www.zigbee2mqtt.io/information/cc_sniffer_devices.html

@Koenkk

This comment has been minimized.

Copy link
Owner

commented Apr 7, 2019

fred-c1 added a commit to fred-c1/zigbee2mqtt.io that referenced this issue Apr 7, 2019

@fred-c1

This comment has been minimized.

Copy link
Author

commented Apr 10, 2019

@Koenkk , I don't now much about github and PRs.
I made an attempt... Please review.

@Koenkk

This comment has been minimized.

Copy link
Owner

commented Apr 11, 2019

@fred-c1

This comment has been minimized.

Copy link
Author

commented Apr 11, 2019

@Koenkk yes this is correct

Koenkk added a commit to Koenkk/zigbee2mqtt.io that referenced this issue Apr 11, 2019

@Koenkk

This comment has been minimized.

Copy link
Owner

commented Apr 11, 2019

Great, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.