Z-uno identity

Discussion about Z-Uno product. Visit http://z-uno.z-wave.me for more details.
Post Reply
sas8
Posts: 7
Joined: 16 Jan 2018 22:19

Z-uno identity

Post by sas8 » 16 Jan 2018 22:22

Hello, how to get in sketch current serial number (or any zuno individual ID), network homeid and nodeid?
I plan to write debug info to serial port.

User avatar
PoltoS
Posts: 4167
Joined: 26 Jan 2011 19:36

Re: Z-uno identity

Post by PoltoS » 22 Jan 2018 01:44

You can read Z-Uno serial number, but not sure how will it help you if you are debugging a single board. Z-Uno programmer is doing it - you can pry in to guess how it works ;)

sas8
Posts: 7
Joined: 16 Jan 2018 22:19

Re: Z-uno identity

Post by sas8 » 23 Jan 2018 22:00

This needed for our 100+ z-uno. Then it will help. Without it - it's like dll hell. Also I think s/n must be printed on board.
"programmer is doing it - you can pry in to guess how it works" - can you tell? EEPROM addresses?

And also: How about to get current home id and node id of z-uno?

p0lyg0n1
Posts: 157
Joined: 04 Aug 2016 07:14

Re: Z-uno identity

Post by p0lyg0n1 » 24 Jan 2018 14:20

Hi, you can do it easy using default z-uno toolchain from the console (you can write bash/batch script for your task).
So, first of all you have to install Z-Uno package to your IDE, or you can just download complete toolchain manually using these links:
Windows http://rus.z-wave.me/files/z-uno/zuno_t ... -win32.zip
Linux 32bit http://rus.z-wave.me/files/z-uno/zuno_t ... x32.tar.gz
MacOS X http://rus.z-wave.me/files/z-uno/zuno_t ... osx.tar.gz
Linux 64 http://rus.z-wave.me/files/z-uno/zuno_t ... x64.tar.gz
Then you have to go to the folder you dowloaded the toolchain.
If you use Arduino IDE you can see the folder of toolchain using "Preferences" dialog box of IDE: click to <...>/preferences.txt hyperref and you have to see the opened folder with your Arduino packages. Go to packages/Z-Uno/tools/zuno_toolchain/00.08.50/zuno_toolchain. Open cmd(on Windows) or Terminal on linux/MacOS X from that folder.
0. Connect you z-uno to PC using microusb cable. You have to know the com-port/device-file of it (You can see it in IDE or Device Manager/ or dmesg, ls in MacOSX/Linux)
Z-Uno firmware version >= 2.1.1

1. type in console
Windows

Code: Select all

compiler.exe readnvm -a FFFFFF -s 4D -d <YourZ-UnoCOM>

MacOS X/Linux

Code: Select all

./compiler readnvm -a FFFFFF -s 4D -d /dev/<yourz-unodevfile>

You have to see something like this

Code: Select all

./compiler readnvm -a FFFFFF -s 4D -d /dev/cu.usbmodem621 
Openning port                            ..............................                            OK
Closing port                             ..............................                            OK


 NVM: 
 AA AA BB BB 01 15 01 10 00 01 02 0B B1 13 E1 92 02 7F C6 70 6B 7F FF 7F F1 01 15 02 0B 33 C2 02
 06 19 14 D3 77 97 23 37 AD 25 8D 9B 9C 1F 8B A4 61 BF B5 4A 6D A2 85 5E 19 BF 73 35 E1 D2 09 8C
 9B 2E 03 04 12 06 68 00 04 2F AF 00 03
Where
02 0B is your firmware version (2.1.1 in that case)
04 12 06 68 00 04 2F AF 00 03 is your serial number.

Z-Uno firmware version < 2.1.1

Code: Select all

compiler.exe readnvm -a 3650 -s 0A -d <YourZ-UnoCOM>

Code: Select all

./compiler readnvm -a 3650 -s 0A -d /dev/<yourz-unodevfile>
You have to see something like:

Code: Select all

./compiler readnvm -a 3650 -s 0A  -d /dev/cu.usbmodem621 
Openning port                            ..............................                            OK
Closing port                             ..............................                            OK

 NVM:  1E 11 06 0A 01 A2 99 C7 00 01 
 
1E 11 06 0A 01 A2 99 C7 00 01 is your serial.

sas8
Posts: 7
Joined: 16 Jan 2018 22:19

Re: Z-uno identity

Post by sas8 » 14 Feb 2018 00:47

Thank You very much! This is what I need.
About runtime NodeID and HoomeID (received when included) - Is any method to get this values in zuno sketch (runtime)?

User avatar
PoltoS
Posts: 4167
Joined: 26 Jan 2011 19:36

Re: Z-uno identity

Post by PoltoS » 15 Feb 2018 01:44

No, you can not get it currently.

Post Reply