zigpy / zigpy-znp

TI CC2531, CC13x2, CC26x2 radio support for Zigpy and ZHA
GNU General Public License v3.0
146 stars 40 forks source link

OTA for Texas Instruments CC1352/CC2652, Z-Stack #199

Closed gielk closed 1 year ago

gielk commented 1 year ago

I was following the next instructions : Manually initiating OTA firmware update

But the instructions are not defining how and what I need to fill in the required 3 fields. Can someone tell me how I can find this information?

image

Downloaded diagnostics;

{
  "home_assistant": {
    "installation_type": "Home Assistant OS",
    "version": "2023.1.7",
    "dev": false,
    "hassio": true,
    "virtualenv": false,
    "python_version": "3.10.7",
    "docker": true,
    "arch": "x86_64",
    "timezone": "Europe/Amsterdam",
    "os_name": "Linux",
    "os_version": "5.15.90",
    "supervisor": "2023.01.1",
    "host_os": "Home Assistant OS 9.5",
    "docker_version": "20.10.22",
    "chassis": "vm",
    "run_as_root": true
  },
  "custom_components": {
    "spotcast": {
      "version": "v3.6.30",
      "requirements": []
    },
    "dwains_dashboard": {
      "version": "3.3.0",
      "requirements": []
    },
    "adaptive_lighting": {
      "version": "1.4.1",
      "requirements": []
    },
    "tplink_deco": {
      "version": "3.1.0",
      "requirements": [
        "pycryptodome>=3.12.0"
      ]
    },
    "meural": {
      "version": "1.0.1",
      "requirements": []
    },
    "hacs": {
      "version": "1.30.1",
      "requirements": [
        "aiogithubapi>=22.10.1"
      ]
    },
    "localtuya": {
      "version": "5.0.0",
      "requirements": []
    },
    "afvalwijzer": {
      "version": "2023.01.01",
      "requirements": []
    },
    "webrtc": {
      "version": "v3.0.1",
      "requirements": []
    },
    "eufy_security": {
      "version": "6.2.0",
      "requirements": [
        "websocket-client==1.1.0",
        "aiortsp==1.3.6"
      ]
    }
  },
  "integration_manifest": {
    "domain": "zha",
    "name": "Zigbee Home Automation",
    "config_flow": true,
    "documentation": "https://www.home-assistant.io/integrations/zha",
    "requirements": [
      "bellows==0.34.6",
      "pyserial==3.5",
      "pyserial-asyncio==0.6",
      "zha-quirks==0.0.90",
      "zigpy-deconz==0.19.2",
      "zigpy==0.53.0",
      "zigpy-xbee==0.16.2",
      "zigpy-zigate==0.10.3",
      "zigpy-znp==0.9.2"
    ],
    "usb": [
      {
        "vid": "10C4",
        "pid": "EA60",
        "description": "*2652*",
        "known_devices": [
          "slae.sh cc2652rb stick"
        ]
      },
      {
        "vid": "1A86",
        "pid": "55D4",
        "description": "*sonoff*plus*",
        "known_devices": [
          "sonoff zigbee dongle plus v2"
        ]
      },
      {
        "vid": "10C4",
        "pid": "EA60",
        "description": "*sonoff*plus*",
        "known_devices": [
          "sonoff zigbee dongle plus"
        ]
      },
      {
        "vid": "10C4",
        "pid": "EA60",
        "description": "*tubeszb*",
        "known_devices": [
          "TubesZB Coordinator"
        ]
      },
      {
        "vid": "1A86",
        "pid": "7523",
        "description": "*tubeszb*",
        "known_devices": [
          "TubesZB Coordinator"
        ]
      },
      {
        "vid": "1A86",
        "pid": "7523",
        "description": "*zigstar*",
        "known_devices": [
          "ZigStar Coordinators"
        ]
      },
      {
        "vid": "1CF1",
        "pid": "0030",
        "description": "*conbee*",
        "known_devices": [
          "Conbee II"
        ]
      },
      {
        "vid": "10C4",
        "pid": "8A2A",
        "description": "*zigbee*",
        "known_devices": [
          "Nortek HUSBZB-1"
        ]
      },
      {
        "vid": "0403",
        "pid": "6015",
        "description": "*zigate*",
        "known_devices": [
          "ZiGate+"
        ]
      },
      {
        "vid": "10C4",
        "pid": "EA60",
        "description": "*zigate*",
        "known_devices": [
          "ZiGate"
        ]
      },
      {
        "vid": "10C4",
        "pid": "8B34",
        "description": "*bv 2010/10*",
        "known_devices": [
          "Bitron Video AV2010/10"
        ]
      }
    ],
    "codeowners": [
      "@dmulcahey",
      "@adminiuga",
      "@puddly"
    ],
    "zeroconf": [
      {
        "type": "_esphomelib._tcp.local.",
        "name": "tube*"
      },
      {
        "type": "_zigate-zigbee-gateway._tcp.local.",
        "name": "*zigate*"
      },
      {
        "type": "_zigstar_gw._tcp.local.",
        "name": "*zigstar*"
      },
      {
        "type": "_slzb-06._tcp.local.",
        "name": "slzb-06*"
      }
    ],
    "dependencies": [
      "file_upload"
    ],
    "after_dependencies": [
      "onboarding",
      "usb",
      "zeroconf"
    ],
    "iot_class": "local_polling",
    "loggers": [
      "aiosqlite",
      "bellows",
      "crccheck",
      "pure_pcapy3",
      "zhaquirks",
      "zigpy",
      "zigpy_deconz",
      "zigpy_xbee",
      "zigpy_zigate",
      "zigpy_znp"
    ],
    "is_built_in": true
  },
  "data": {
    "ieee": "**REDACTED**",
    "nwk": 0,
    "manufacturer": "Texas Instruments",
    "model": "CC1352/CC2652, Z-Stack 3.30+ (build 20210708)",
    "name": "Texas Instruments CC1352/CC2652, Z-Stack 3.30+ (build 20210708)",
    "quirk_applied": false,
    "quirk_class": "zigpy_znp.zigbee.device.ZNPCoordinator",
    "manufacturer_code": 0,
    "power_source": "Mains",
    "lqi": null,
    "rssi": null,
    "last_seen": "2023-01-30T17:13:24",
    "available": true,
    "device_type": "Coordinator",
    "signature": {
      "node_descriptor": "NodeDescriptor(logical_type=<LogicalType.Coordinator: 0>, complex_descriptor_available=0, user_descriptor_available=0, reserved=0, aps_flags=0, frequency_band=<FrequencyBand.Freq2400MHz: 8>, mac_capability_flags=<MACCapabilityFlags.AllocateAddress|RxOnWhenIdle|MainsPowered|FullFunctionDevice|AlternatePanCoordinator: 143>, manufacturer_code=0, maximum_buffer_size=80, maximum_incoming_transfer_size=160, server_mask=11265, maximum_outgoing_transfer_size=160, descriptor_capability_field=<DescriptorCapability.NONE: 0>, *allocate_address=True, *is_alternate_pan_coordinator=True, *is_coordinator=True, *is_end_device=False, *is_full_function_device=True, *is_mains_powered=True, *is_receiver_on_when_idle=True, *is_router=False, *is_security_capable=False)",
      "endpoints": {
        "1": {
          "profile_id": 260,
          "device_type": "0x0400",
          "in_clusters": [
            "0x0000",
            "0x0006",
            "0x000a",
            "0x0019",
            "0x0501"
          ],
          "out_clusters": [
            "0x0001",
            "0x0020",
            "0x0500",
            "0x0502"
          ]
        },
        "2": {
          "profile_id": 49246,
          "device_type": "0x0820",
          "in_clusters": [
            "0x0000"
          ],
          "out_clusters": []
        }
      }
    },
    "active_coordinator": true,
    "entities": [],
    "neighbors": [
      {
        "device_type": "EndDevice",
        "rx_on_when_idle": "Off",
        "relationship": "Child",
        "extended_pan_id": "**REDACTED**",
        "ieee": "**REDACTED**",
        "nwk": "0x0015",
        "permit_joining": "Unknown",
        "depth": "1",
        "lqi": "170"
      },
      {
        "device_type": "EndDevice",
        "rx_on_when_idle": "Off",
        "relationship": "Child",
        "extended_pan_id": "**REDACTED**",
        "ieee": "**REDACTED**",
        "nwk": "0x2C11",
        "permit_joining": "Unknown",
        "depth": "1",
        "lqi": "170"
      },
      {
        "device_type": "EndDevice",
        "rx_on_when_idle": "Off",
        "relationship": "Child",
        "extended_pan_id": "**REDACTED**",
        "ieee": "**REDACTED**",
        "nwk": "0x0015",
        "permit_joining": "Unknown",
        "depth": "1",
        "lqi": "170"
      },
      {
        "device_type": "EndDevice",
        "rx_on_when_idle": "Off",
        "relationship": "Child",
        "extended_pan_id": "**REDACTED**",
        "ieee": "**REDACTED**",
        "nwk": "0xA4C1",
        "permit_joining": "Unknown",
        "depth": "1",
        "lqi": "170"
      },
      {
        "device_type": "EndDevice",
        "rx_on_when_idle": "Off",
        "relationship": "Child",
        "extended_pan_id": "**REDACTED**",
        "ieee": "**REDACTED**",
        "nwk": "0xA4C1",
        "permit_joining": "Unknown",
        "depth": "1",
        "lqi": "170"
      },
      {
        "device_type": "EndDevice",
        "rx_on_when_idle": "Off",
        "relationship": "Child",
        "extended_pan_id": "**REDACTED**",
        "ieee": "**REDACTED**",
        "nwk": "0xA4C1",
        "permit_joining": "Unknown",
        "depth": "1",
        "lqi": "170"
      },
      {
        "device_type": "EndDevice",
        "rx_on_when_idle": "Off",
        "relationship": "Child",
        "extended_pan_id": "**REDACTED**",
        "ieee": "**REDACTED**",
        "nwk": "0x2C11",
        "permit_joining": "Unknown",
        "depth": "1",
        "lqi": "170"
      },
      {
        "device_type": "EndDevice",
        "rx_on_when_idle": "Off",
        "relationship": "Child",
        "extended_pan_id": "**REDACTED**",
        "ieee": "**REDACTED**",
        "nwk": "0xA4C1",
        "permit_joining": "Unknown",
        "depth": "1",
        "lqi": "170"
      },
      {
        "device_type": "EndDevice",
        "rx_on_when_idle": "Off",
        "relationship": "Child",
        "extended_pan_id": "**REDACTED**",
        "ieee": "**REDACTED**",
        "nwk": "0xA2A3",
        "permit_joining": "Unknown",
        "depth": "1",
        "lqi": "170"
      },
      {
        "device_type": "EndDevice",
        "rx_on_when_idle": "Off",
        "relationship": "Child",
        "extended_pan_id": "**REDACTED**",
        "ieee": "**REDACTED**",
        "nwk": "0x7674",
        "permit_joining": "Unknown",
        "depth": "1",
        "lqi": "170"
      },
      {
        "device_type": "Router",
        "rx_on_when_idle": "Unknown",
        "relationship": "Sibling",
        "extended_pan_id": "**REDACTED**",
        "ieee": "**REDACTED**",
        "nwk": "0x9CF3",
        "permit_joining": "Unknown",
        "depth": "255",
        "lqi": "48"
      }
    ],
    "routes": [
      {
        "dest_nwk": "0x6757",
        "route_status": "Discovery_Underway",
        "memory_constrained": false,
        "many_to_one": false,
        "route_record_required": false,
        "next_hop": "0xFFFE"
      }
    ],
    "endpoint_names": [
      {
        "name": "CONTROLLER"
      },
      {
        "name": "IAS_CONTROL"
      }
    ],
    "user_given_name": null,
    "device_reg_id": "ba80d1262265eda4a8c1b57347e743dd",
    "area_id": "server",
    "cluster_details": {
      "2": {
        "device_type": {
          "name": "CONTROLLER",
          "id": 2080
        },
        "profile_id": 49246,
        "in_clusters": {
          "0x0000": {
            "endpoint_attribute": "basic",
            "attributes": {},
            "unsupported_attributes": {}
          }
        },
        "out_clusters": {}
      },
      "1": {
        "device_type": {
          "name": "IAS_CONTROL",
          "id": 1024
        },
        "profile_id": 260,
        "in_clusters": {
          "0x0000": {
            "endpoint_attribute": "basic",
            "attributes": {},
            "unsupported_attributes": {}
          },
          "0x0006": {
            "endpoint_attribute": "on_off",
            "attributes": {},
            "unsupported_attributes": {}
          },
          "0x000a": {
            "endpoint_attribute": "time",
            "attributes": {},
            "unsupported_attributes": {}
          },
          "0x0019": {
            "endpoint_attribute": "ota",
            "attributes": {},
            "unsupported_attributes": {}
          },
          "0x0501": {
            "endpoint_attribute": "ias_ace",
            "attributes": {},
            "unsupported_attributes": {}
          }
        },
        "out_clusters": {
          "0x0001": {
            "endpoint_attribute": "power",
            "attributes": {},
            "unsupported_attributes": {}
          },
          "0x0020": {
            "endpoint_attribute": "poll_control",
            "attributes": {},
            "unsupported_attributes": {}
          },
          "0x0500": {
            "endpoint_attribute": "ias_zone",
            "attributes": {},
            "unsupported_attributes": {}
          },
          "0x0502": {
            "endpoint_attribute": "ias_wd",
            "attributes": {},
            "unsupported_attributes": {}
          }
        }
      }
    }
  }
}
puddly commented 1 year ago

You can put 0 for all of them.

gielk commented 1 year ago

I did this and this it what i saw in the log. image

MattWestb commented 1 year ago

Mark only QueryJitter and move the query_jitter slider so it getting one no zero value and isue zigbee command shall working OK.

gielk commented 1 year ago

@MattWestb I did move the query_jitter image Still getting an error, tried multiple values. image

MattWestb commented 1 year ago

What kind of device is you trying doing OTA updating on ? Is on Signal repeater, router or end device ? Its looks it being the coordinator the the error is saying its address 0x0000 and its cant being done with OTA it must being flashed from the bootloader or with debug adapter.

gielk commented 1 year ago

I'm trying to update the Texas Instruments CC1352/CC2652, Z-Stack 3.30+ It is currently on build 20210708, and I have some problems. Some devices keep disconnecting, and I saw that the first thing I should do is update the firmware on the Zigbee Coordinator. So that is what I'm trying to do here.

MattWestb commented 1 year ago

Then you must flashing the coordinator with one external tool. Read more here for TI coordinators : https://www.zigbee2mqtt.io/guide/adapters/#notes