USB Controlled Multi-color Signal Beacon User Manual
32
⑧
NE_GetFirmVer
Item
Description
Name
byte[] NE_GetFirmVer()
Overview
Get the firmware version of the connected USB Controlled Multi-color Signal
Beacon.
Argument
None
Return Value
1
st
byte
:
Product model / major version
First 4bits
:
0
:
NE-SN-USB; 1
:
NE-WN-USB
Last 4bits
:
Major version
2
nd
byte
:
Minor version
First 4bits
:
First decimal place
Last 4bits
:
Second decimal place
All in BCD notation.
(
Example
:
0x0123
=
NE-SN-USB Ver.1.23
,
0x1258
=
NE-WN-USB Ver.2.58
)
If this product is not connected, returns 0.
bit
15 14 13 12 11 10
9
8
7
6
5
4
3
2
1
0
BCD
0
0
0
1
0
0
1
0
0
0
1
1
0
1
0
0
0b0:NE-SN-USB
0b1:NE-WN-USB
Other:Reserve
Major Version
First place
(0
~
F)
Minor Version
First decimal
place
(0
~
9)
Minor Version
Second decimal
place
(0
~
9)
Precautions
It is necessary to call “NE_OpenDevice” before calling this function.
Program
Example
int open_state, send_state;
open_state = NE_OpenDevice();
if(open_state == 0){
byte[] ver = NE_GetFirmVer();
/* Get Firmware Version */
}
NE_CloseDevice();