xsp1989 / zigbeeFirmware

204 stars 21 forks source link

Recommend higher values in firmware for "pro" configuration #13

Closed Hedda closed 2 years ago

Hedda commented 3 years ago

@xsp1989 Recommend higher values in firmware for "pro" configuration as per https://github.com/zigpy/bellows/pull/397 and https://github.com/xsp1989/zigbeeFirmware/issues/6

This is already supported in software like Home Assistant and EFR32MG21 based devices can handle these increase these values.

Configuration Parameter Value
Address Table Size 32
Child Table Size 32
Source Routes 200
Configuration Parameter Value
Part EFR32MG21A020F768IM32
Version EZSP 6.10.1.0
CTUNE value 128
Address Table Size 32
Child Table Size 32
Source Routes 200
TX PB01
RX PB00
CTS ?
RTS ?
BTL PA00 (Low = BTL boot)
LED PC00

See example of used in real life

https://github.com/tube0013/tube_gateways/blob/main/tube_zb_gw_efr32/README.md

Specific Configuration for the Tube EFR32 Gateways

Because the EFR32 gateways uses some firrmware settings different than the bellows defaults it is recommended set them in the configuration.yaml so bellows will utilize them.

For EFR32 Series 2 Gateways with Firmware based on the 6.9.2 SDK or later please use the following config

Add these lines to your configuration.yaml file:

zha:
  zigpy_config:
    source_routing: true
    ezsp_config:
      CONFIG_APS_UNICAST_MESSAGE_COUNT: 64
      CONFIG_MAX_END_DEVICE_CHILDREN: 32
      CONFIG_SOURCE_ROUTE_TABLE_SIZE: 200
      CONFIG_ROUTE_TABLE_SIZE: 16
      CONFIG_ADDRESS_TABLE_SIZE: 32
      CONFIG_PACKET_BUFFER_COUNT: 250
      CONFIG_BINDING_TABLE_SIZE: 32
      CONFIG_NEIGHBOR_TABLE_SIZE: 26
Hedda commented 3 years ago

@xsp1989 Do you know pins ITead dongle uses for LED and the buttons so can add to list of firmware configuration parameters?

Hedda commented 3 years ago

@silabs-RaoulvB Did you verify that PC00 is actually connected to the LED and that PA00 is connected to the "BOOT" button?

Any idea about that other "RST" ('reset'?) button?

MattWestb commented 3 years ago

@Hedda RST is the chip hardware reset and its always on the same pin on the chip.

xsp1989 commented 3 years ago

@Hedda Yes,PC00 connected LED and PA00 connect BOOT.

MattWestb commented 3 years ago

So PA00 is BOOT connected to BOOT button and and also to "custom pin" on the breakout connector.

xsp1989 commented 3 years ago

What is breakout connector? The bootloader will detect the level state of PA00 when it starts, if it is low, it will enter the bootloader, otherwise it will start the APP.

MattWestb commented 3 years ago

Its the external connector that is not populated but is having programming pins (SWD) and power. The description is on the back side of the PCB.

So custom pin = Bottloader pin.

xsp1989 commented 3 years ago

@MattWestb Yes.

Hedda commented 3 years ago

Breakout connector / Programming port = IO Connector. See picture from https://www.itead.cc/zigbee-3-0-usb-dongle.html

image

xsp1989 commented 3 years ago

Thank you

Hedda commented 3 years ago

Please also see https://github.com/xsp1989/zigbeeFirmware/issues/6

Hedda commented 2 years ago

Closed without comment?