B&B Electronics Zlinx ZP Series User Manual
Page 54
![background image](/manuals/53809/54/background.png)
50
Manual Documentation Number: ZP24D-250RM-SR-2508
B&B Electronics Mfg Co Inc – 707 Dayton Rd - PO Box 1040 - Ottawa IL 61350 - Ph 815-433-5100 - Fax 815-433-5104 – www.bb-elec.com
B&B Electronics – Westlink Commercial Park – Oranmore, Galway, Ireland – Ph +353 91-792444 – Fax +353 91-792445 – www.bb-europe.com
The entire payload of the packet is encrypted using the key and the CRC is computed
across the ciphertext. When encryption is enabled, each packet carries an additional
16 Bytes to convey the random CBC Initialization Vector (IV) to the receiver(s). The
KY value may be “0” or any 128-bit value. Any other value, including entering ATKY
by itself with no parameters, will cause an error. A module with the wrong key (or no
key) will receive encrypted data, but the data driven out the serial port will be
meaningless. Likewise, a module with a key will receive unencrypted data sent from a
module without a key, but the output will be meaningless. Because CBC mode is
utilized, repetitive data appears differently in different transmissions due to the
randomly-generated IV.
When queried, the system will return an ‘OK’ message and the value of the key will
not be returned.
M0 (PWM0 Output Level)
Command
The M0 command
is used to set/read the output level
of the PWM0 line (pin 6).
Before setting the line as an
output:
1. Enable PWM0 output (P0 = 2)
2. Apply settings (use CN or AC)
The PWM period is 64 µsec and there are 0x03FF (1023 decimal) steps within this
period. When M0 = 0 (0% PWM), 0x01FF (50% PWM), 0x03FF (100% PWM), etc.
M1 (PWM1 Output Level)
Command
The M1 command
is used to set/read the output level
of the PWM1 line (pin 7).
Before setting the line as an
output:
1. Enable PWM1 output (P1 = 2)
2. Apply settings (use CN or AC)
AT Command: ATM0
Parameter Range:0 - 0x03FF [steps]
Default Parameter Value:0
Related Commands: P0 (PWM0 Enable), AC
(Apply Changes), CN (Exit Command Mode)
Minimum Firmware Version Required: v1.xA0
AT Command: ATM1
Parameter Range:0 - 0x03FF
Default Parameter Value:0
Related Commands: P1 (PWM1 Enable), AC
(Apply Changes), CN (Exit Command Mode)
Minimum Firmware Version Required: v1.xA0