tjikkun / zigate-flasher Goto Github PK
View Code? Open in Web Editor NEWPython tool to flash your Zigate (Jennic JN5168)
License: GNU General Public License v3.0
Python tool to flash your Zigate (Jennic JN5168)
License: GNU General Public License v3.0
It would be really great if you could make a python module, out of this work.
In such it would be much easier to integrate in so existing python3 code
Hello,
I am running Python 2.7.13 and I get the following error when I run zigate-flasher.py
pi@raspberrypi:~/zigate-flasher $ python zigate-flasher.py -h
Traceback (most recent call last):
File "zigate-flasher.py", line 19, in <module>
ZIGATE_BINARY_VERSION = bytes.fromhex('07030008')
AttributeError: type object 'str' has no attribute 'fromhex'
Could you help me to fix it?
Regards,
Ludovic
Thanks for creating and publishing this project, I tried using it to flash multiple FW to a zigate and am getting the following error:
./zigate-flasher.py -p /dev/ttyUSB1 -w ../ZiGate_Coordinator_v3.0e.bin -e
Found MAC-address: 00:15:8d:00:01:b2:2a:54
writing new flash from ../ZiGate_Coordinator_v3.0e.bin
Traceback (most recent call last):
File "./zigate-flasher.py", line 349, in <module>
main()
File "./zigate-flasher.py", line 345, in main
erase_EEPROM(ser, args.pdm_only)
File "./zigate-flasher.py", line 306, in erase_EEPROM
res = read_response(ser)
File "./zigate-flasher.py", line 102, in read_response
return _unpack_raw_message(length, answer)
File "./zigate-flasher.py", line 113, in _unpack_raw_message
return _responses.get(type_, Response)(type_, data, chksum)
File "./zigate-flasher.py", line 62, in __init__
self.status = data[0]
IndexError: index out of range
I don't get this error when using JennicModuleProgrammer
.
Would it be possible to get GPIO for RPi-ZiGate and DIN-ZiGate (via a ftdi command) ?
Except for launching RPi.GPIO, zigate-flasher seems to run on unbuntu with an USB zigate.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.