Get Moway device
information
Developer set the Moway device
User use the Moway device
Developer create update package
file
Get Moway device information- no previledge(permission) required:
The process:
1 Enumerate the Moway device;
2 Open the Moway device;
3 Get all of device information (structure);
4 Get the specified information (item);
5 Close the device.
Developer set the Moway device
The Process:
1 Enumerate the Moway device;
2 Open the Moway device;
3. Verify the Developer PIN;
4 Set the PID (Product ID)
5 Modify the Developer PIN;
6 Create the File (Binary file, read & write file, Key file-AES128, and Key
file-HMAC)
7 With developer permission to write file
8 Close the Moway device
User use the Moway device
The process:
1 Enumerate the Moway device
2 Open the Moway device;
3 Verify User PIN
4 Modify the User PIN;
5 Read the file with read only attribute
6 Modify the data file with read & write attribute
7 Use the key file to encrypt/decrypt (AES128)
8 Use the key file HMAC to calculate the HASH value
9 Close The Moway device
Developer create update package file
The process includes 2 parts:
1. Developer premise: Generate a the update file package by developer
2. User premise: Import this update file package into the Moway device by
user
The process in developer premise:
developer create a update file package
1 Enumerate the Moway device
2 Open the device
3 Verify the Developer PIN
4 Create the update file package(To update the binary data file)
5 Close the device
The process in user premise:
User import the update file package to the Moway device
1 Enumerate the device
2 Open the device
3 Verify User PIN
4 Import the update file package
5 Verify the content of update file package (Read & verify the data are
consistent with the data updated)
6 Close the device.