The SwiftRNG device API is implemented using a USB High Speed interface utilizing bulk data transfers. It operates based on 1 byte commands. We recommend using the supplied software kit, as it reduces the complexity and simplifies the use of the generator. The following table contains the complete command set and descriptions.

SwiftRNG Pro

Command as ASCII char Response Description
x 16,000 random bytes + the status byte The response will contain 16,000 high-quality, non-biased random bytes and an additional byte for the status byte. The status byte will contain 0 value for success or error code.
m 8 bytes of the device model + the status byte The response will contain 8 bytes for the device model as ASCII codes. The status byte will contain 0 value for success or error code.
v 4 bytes of the device version + the status byte The response will contain 4 bytes for the device version as ASCII codes. The status byte will contain 0 value for success or error code.
s 15 bytes of the device serial number + status byte The response will contain 15 bytes for the device serial number as ASCII codes. The status byte will contain 0 value for success or error code.
f 512 bytes that represent frequency tables of the noise sources + the status byte The first 256 bytes are frequency table of the first noise source and the next 256 bytes are frequency table of the second noise source. The status byte will contain 0 value for success or error code.
< 16,000 random bytes + the status byte The response will contain 16,000 of RAW unprocessed and unmodified random bytes generated from the first noise source. The status byte will contain 0 value for success or error code.
> 16,000 random bytes + the status byte The response will contain 16,000 of RAW unprocessed and unmodified random bytes generated from the second noise source. The status byte will contain 0 value for success or error code.
d status byte It will trigger the built-in device diagnostics. The status byte will contain 0 value for success or error code.

SwiftRNG Z

Command as ASCII char Response Description
x 16,000 random bytes + the status byte The response will contain 16,000 high quality non-biased random bytes processed internally with a Linear Corrector (P. Lacharme) and an additional byte for the status byte. The status byte will contain 0 value for success or error code.
m 8 bytes of the device model + the status byte The response will contain 8 bytes for the device model as ASCII codes. The status byte will contain 0 value for success or error code.
v 4 bytes of the device version + the status byte The response will contain 4 bytes for the device version as ASCII codes. The status byte will contain 0 value for success or error code.
s 15 bytes of the device serial number + status byte The response will contain 15 bytes for the device serial number as ASCII codes. The status byte will contain 0 value for success or error code.
f 512 bytes that represent frequency tables of the noise sources + the status byte The first 256 bytes are frequency table of the first noise source and the next 256 bytes are frequency table of the second noise source. The status byte will contain 0 value for success or error code.
< 16,000 random bytes + the status byte The response will contain 16,000 of RAW unprocessed and unmodified random bytes generated from the first noise source. The status byte will contain 0 value for success or error code.
> 16,000 random bytes + the status byte The response will contain 16,000 of RAW unprocessed and unmodified random bytes generated from the second noise source. The status byte will contain 0 value for success or error code.
d status byte It will trigger the built-in device diagnostics. The status byte will contain 0 value for success or error code.

SwiftRNG

Command as ASCII char Response Description
x 16,000 random bytes + the status byte The response will contain 16,000 low biased (RAW) random bytes and an additional byte for the status byte. The status byte will contain 0 value for success or error code.
m 8 bytes of the device model + the status byte The response will contain 8 bytes for the device model as ASCII codes. The status byte will contain 0 value for success or error code.
v 4 bytes of the device version + the status byte The response will contain 4 bytes for the device version as ASCII codes. The status byte will contain 0 value for success or error code.
s 15 bytes of the device serial number + status byte The response will contain 15 bytes for the device serial number as ASCII codes. The status byte will contain 0 value for success or error code.
f 512 bytes that represent frequency tables of the noise sources + the status byte The first 256 bytes are frequency table of the first noise source and the next 256 bytes are frequency table of the second noise source. The status byte will contain 0 value for success or error code. This command is only available when used with SwiftRNG devices versions 1.2 or higher.
< 16,000 random bytes + the status byte The response will contain 16,000 of RAW unprocessed and unmodified random bytes generated from the first noise source. The status byte will contain 0 value for success or error code. This command is only available when used with SwiftRNG devices versions 1.2 or higher.
> 16,000 random bytes + the status byte The response will contain 16,000 of RAW unprocessed and unmodified random bytes generated from the second noise source. The status byte will contain 0 value for success or error code. This command is only available when used with SwiftRNG devices versions 1.2 or higher.
0 status byte Set device power profile number 0 for the slowest speed and lowest power consumption. The status byte will contain 0 value for success or error code.
1 status byte Set device power profile number 1. The status byte will contain 0 value for success or error code.
2 status byte Set device power profile number 2. The status byte will contain 0 value for success or error code.
3 status byte Set device power profile number 3. The status byte will contain 0 value for success or error code.
4 status byte Set device power profile number 4. The status byte will contain 0 value for success or error code.
5 status byte Set device power profile number 4. The status byte will contain 0 value for success or error code.
6 status byte Set device power profile number 6. The status byte will contain 0 value for success or error code.
7 status byte Set device power profile number 7. The status byte will contain 0 value for success or error code.
8 status byte Set device power profile number 8. The status byte will contain 0 value for success or error code.
9 status byte Set device power profile number 9 for the highest speed and power consumption. The status byte will contain 0 value for success or error code.

SwiftRNG LE

Command as ASCII char Response Description
x 16,000 random bytes + the status byte The response will contain 16,000 low biased (RAW) random bytes and an additional byte for the status byte. The status byte will contain 0 value for success or error code.
m 8 bytes of the device model + the status byte The response will contain 8 bytes for the device model as ASCII codes. The status byte will contain 0 value for success or error code.
v 4 bytes of the device version + the status byte The response will contain 4 bytes for the device version as ASCII codes. The status byte will contain 0 value for success or error code.
s 15 bytes of the device serial number + status byte The response will contain 15 bytes for the device serial number as ASCII codes. The status byte will contain 0 value for success or error code.
f 512 bytes that represent frequency tables of the noise sources + the status byte The first 256 bytes are frequency table of the first noise source and the next 256 bytes are frequency table of the second noise source. The status byte will contain 0 value for success or error code. This command is only available when used with SwiftRNG LE devices versions 1.2 or higher.
< 16,000 random bytes + the status byte The response will contain 16,000 of RAW unprocessed and unmodified random bytes generated from the first noise source. The status byte will contain 0 value for success or error code. This command is only available when used with SwiftRNG LE devices versions 1.2 or higher.
> 16,000 random bytes + the status byte The response will contain 16,000 of RAW unprocessed and unmodified random bytes generated from the second noise source. The status byte will contain 0 value for success or error code. This command is only available when used with SwiftRNG LE devices versions 1.2 or higher.