AI 2.4G&AI-BS-WS40-V User manual

2 / 27
Contents
Contents ........................................................................................................................................................................ 2
2、Data interface ................................................................................................................................................................. 3
2.4 G&RF 433 wireless data interface can be divided into the sending end of data interface and data interface at
the receiving end........................................................................................................................................................... 3
2.1 The data interface of sender ................................................................................................................................... 3
2.1.1 Barcode scanning decoding module connection ................................................................................................. 3
2.1.2 Transmission Interface ................................................................................................................................. 3
3 、Comprehensive set ....................................................................................................................................................... 3
3.1 Setting command .................................................................................................................................................... 3
3.2 The data format of setting command ..................................................................................................................... 4
Table 3.3-1 The data format of seng command table① .......................................................................................... 4
3.4 Setting type ............................................................................................................................................................. 4
3.4-1 The table of setting type ...................................................................................................................................... 4
3.5 “Enter setting”and“Save&Exit” ...................................................................................................................... 4
4.1 Pairing ★ ........................................................................................................................................................ 5
4.2 HID-KEYBOARD Language setting★ ........................................................................................................... 5
4.3 To change the frequency of the wireless reception ...................................................................................... 6
4.4 Check the parameters ..................................................................................................................................... 6
4.5 Working mode★ ............................................................................................................................................ 6
4.7 Restore the factory settings★ ........................................................................................................................ 8
4.8 The command of firmware upgrade ............................................................................................................. 10
4.9 Wireless connectivity detection(★Note: this function only in a scanner connected to a receiver)
.................................................................................................................................................................................... 10
4.10 The sender wired output..................................................................................................................................... 11
4.11 Wired connection (USB/USB VCP COM) ★ ......................................................................................................... 11
4.13 Auto trigger ...................................................................................................................................................... 13
4.14 Start symbol mode setting ★ ............................................................................................................................. 13
4.15 End symbol mode setting ................................................................................................................................... 13
5.1 Receiver instructions system ................................................................................................................................. 15
5.2.1 Receiver LED light indicator ................................................................................................................................ 17
6 2.4G Wireless sending and receiving data packet format .............................................................................................. 17
7、Inventory mode to save and read data packet format: ............................................................................................ 18
7.1 Inventory model management information storage format: ..................................................................................... 18
8、433 wireless data packet ............................................................................................................................................... 18
Symbol table ....................................................................................................................................................................... 19

3 / 27
1、Introduce
1.1 Introduction to the 2.4 G wireless solutions
2.4 G wireless rf module + treatment scheme is to use BK2425 MCU data for effective combination
form for high speed transmission of a device to send and receive treatment scheme, complete
solution contains a sender and a receiver。
1.2 A brief introduction AI-BS-WS40-V wireless solutions
AI-BS-WS40-V wireless solutions using STM32FC8T6 (MCU) + Si4438 (RF) way to realize wireless
sending and receiving data.
2、Data interface
2.4 G&RF 433 wireless data interface can be divided into the sending end of data interface and data
interface at the receiving end.
2.1 The data interface of sender
2.1.1 Barcode scanning decoding module connection
Interface circuit for a FPC (0.5 mm to 12 p) interface communicate with barcode scanning module,
mainly through the wireless MCU interface receives the barcode scanning module, transmission of
data and processing.
NO. Pin Type Instrctions
1 NC NG Reserved
2 VCC DC Power DC3.3V or DC5V(According to the different modules)±5%
3 GND Ground GND
4 Rx I Serial input ports TTL level
5 Tx O Serial output ports TTL level
6 NC None Reserved
7 NC None Reserved
8 NC None Reserved
9 BPR O Buzzer hint Decode the output frequency of 3 k 150 ms,
output low level when not working
10 LED O Light hint Decode the output low level 150 ms
11 NC None Reserve
12 TRIG I Trigger scanner
2.1.2 Transmission Interface
1. The transmission interface of RF is consists of 2.4G/AI-BS-WS40-V. 2.4G/AI-BS-WS40-V RF
module hardware
2.USB transmission interface
3 、Comprehensive set
3.1 Setting command
1、Setting barcode are made by Code128-type B.
2、The part with “*” means factory default settings.
(1)Scanning:After scanning the barcode “@SET” to enter setting mode, if not within 20 seconds
scanning the next setting command , exit setting mode automatically
(2)In setting mode ,can scan . Scanning: related set of barcode. In this step, the bar code command can

4 / 27
scan one or more Settings
(3)Scanning:scan “@END”.
(4)Some functions can be set directly. such as “pairing”, “discharge pairing”
3.2 The data format of setting command
Table 3.3-1 The data format of setting command table①
Prefix Target Type Parameter
WN- T-/R-/W- Reference the data format
of setting command table *****
Note ①The format does not include access Settings and save exit setup instructions.
3.3-2 Setting mode format and data analysis
Format Data Description
Prefix WN- The Fixed prefix characters
Target T-/R-/W-
T-: It means the setting barcode work on the receiver
directly
R-: It means the setting barcode work on the receiver
directly, The setting barcodes of the receiver need to
be forward by the sender through wireless
transmission
W-: work on the sender and the receiver at the same
time
Type Consult the table of setting type
Parameter The parameter is four characters in the range “0-9”
3.4 Setting type
3.4-1 The table of setting type
Type Description
A Wireless pairing/discharge pairing
B Language settings
C Check the Firmware info/Change the frequency
D Auto trigger switch
F Real-time mode /Inventory mode /Data operation for Inventory
mode
G Sleep times
H Restore the factory settings
I Data transfer form\Prefix mode setting\Custom end symbol
K The sender/receiver firmware update command
L USB Wired output switch
3.5 “Enter setting”and“Save&Exit”
Command:
Function Command
Barcode Remark
Enter setting @SET
Enter setting mode,For 20 seconds
time effectively
Exit & Save @END Exit & Save

5 / 27
Notice☆:1. For the setting of the non-quick setting command, it is necessary to scan into the setting
command first, and then scan the corresponding parameter setting instruction and finally
scan the saving and exit setting instruction.
3. If in setting state, scanned the setting bar code, the system will identify as invalid barcode, low sound
alarm, invalid alarm belongs to the normal situation.
4. To set the type of barcode
4.1 Pairing ★
Function Command Barcode Remark
Enter setting @.WN-T-A0001
/
Power off when pairing
failed.
When the pairing is
successful, the engine to
continue running.
Discharge
pairing
@.WN-T-A0000
/ Discharge pairing
Notice☆:1、The pairing effective time is 20 seconds from the start of the receiver's power-on (the LED is
flashing). After 20s, the LEDs are always on and cannot be paired. (This method is for a
receiver without a button)
2、Press buttons on the receiver, the receiver will automatically enter the matching state, during
this period can be paired normally. (with button this way for receiving).
3、 2.4G stops flashing after pairing is successful, and 433 stops flashing after 20S is turned on.
4.2 HID-KEYBOARD Language setting★
Function Command Barcode Remark
@SET
*USA WN-W-B1000
*USA
FRENCH WN-W-B1001
FRENCH
GEMRAN WN-W-B1002
GEMRAN
TUKISH WN-W-B1003
TUKISH
BELGIUM WN-W-B1004
BELGIUM
BRAZIL WN-W-B1005
BRAZIL
CRZCH WN-W-B1006
CRZCH
SPANISH WN-W-B1007
SPANISH
@END
Note★:This setting is valid for both the receiving end (Tx) and the transmitting end (Rx). If
multi-language is set when the wireless transmission connection is disconnected, the

6 / 27
language setting of the sender is successful and the language of the receiver is not
changed.
4.3 To change the frequency of the wireless reception
Function Command Barcode Remark
@SET
①To change the
receiving
address
WN-R-C0000
Methods①:Automatic
@END
Note★:After the receiver frequency is changed, it must be re-powered (unplug the receiver to
re-insert) before pairing, otherwise communication will not be possible.
4.4 Check the parameters
Function Command Barcode Remark
Print the system
parameters
WN-W-C1000
1> firmware version
2> Battery
3> wireless spectrum
4> wireless channel
5> receive address
Instructions☆:being check parameters command with the system parameters to receive, terminators
after each parameter is separated, such as: PKT {protocol field | WN - W - B1001 | parameter 1 + 0 x0d |
parameter 2 + 0 x0d |...}, {} for the contents of the packet)
4.5 Working mode★
Function Command Barcode Remark
*Real-time
mode
@.WN-T-F0000
/
Scan and transmit, data will
automatically lost if
upload failed.
Cache mode
@.WN-T-F1000
/
Same as real time mode if
connection normal. Scan
barcodes will be automatically
restore if connection failed. Will
upload one by one if
connection return as normal.
Inventory
mode
@.WN-T-F2000
/
Scanning barcodes will be
restored without upload. Will
upload once scan “Upload
data” barcode. Will clear once
scan “Clear data” .Will check
sum once scan” Data sum”
Upload data @.WN-T-F2001
/ Upload barcode data

7 / 27
Data sum @.WN-T-F2002
/ Upload the sum of barcode
Clear data @.WN-T-F2003
/ To clean the data of barcode
Instructions:☆:1、Working mode of six instructions for quick setup, state changes save directly, without
scanning into the keep out of the setup instructions and instructions; Work mode of "real
time" mode, "cache model", "inventory model" in the scanned into the setting after
scanning is a quick instruction set, need save to exit the Settings take effect;
2、Inventory mode 【upload data】, 【Data sum】, 【the clear data】 three operation setting
commands in enter setting state is not available, when using the three operation setting
commands if has entered the set state, after the need to save first, just can use.
3、 New 433 and 2.4G solutions (product models are: xxxx) Storage data description:
Inventory mode: Stores 30 Bytes of data for 49,000
Stores data with a length of 13 bytes for storing 104,500
Cache mode: Stores data with a length of 30 Bytes and stores 14,200
Stores 30 Bytes of data with a length of 13 Bytes
4.6 character output / keyboard format settings
Function
Command
codes
Output
Standard ASCii code
output
@.WN-W-F3000/
*GBK output
@.WN-W-F3001/
Unicode output
@.WN-W-F3002/
Keypad mode output
@.WN-W-F3203/
Extended function key
output
@.WN-W-F3005/
Case check
*Case key(CapsLK) off
@.WN-W-F3201/

8 / 27
Case key(CapsLK)on
@.WN-W-F3202/
4.7 Sleep times setting★
Function Command Barcode Remark
@SET
*20 sec WN-T-G0001
60 sec WN-T-G0003
3 min WN-T-G0009
5 min WN-T-G0015
15 min WN-T-G0045
30 min WN-T-G0090
non-sleep WN-T-G0000
After startup, with no sleep
(applicable to when used to
connect wireless scanner cable
can be set to no sleep, no sleep
mode is not recommended)
@END
Instructions☆: The calculation method of sleep time:20 * x = n (ms) , X for barcode after two decimal
values
4.8 Restore the factory settings★
Function Command Barcode Remark
@SET
Factory Reset WN-W-H0000
1> autoSetFactory
2> The current spectrum
constant
3> Matching the address
remains the sam
4> The wireless channel is
constant
5> Locking band logo remains
the same

9 / 27
@END
4.12 wired output mode (USB / virtual serial port)
Function
Command
Barcodes
Remark
@SET
*USB Output
WN-W-L10
00
Normal USB output
Virtual serial
output
WN-W-L10
01
USB virtual serial port
needs to be installed
USB to serial port driver
can be used normally
RS232 output
WN-R-L10
02
1. The serial output function
can be used only on devices
that support serial output
(hardware). Currently, only
the AI-BS-WS40-V receiver
supports serial output.
2. The new product optimizes
the transmission method. USB
and RS232 serial port
transmission will be
automatically recognized, no
need to set serial port output
@END
Note ★: 1. The default is USB and RS232 serial output, the system will automatically select USB or
RS232 serial port output according to the hardware, no need to set
2. USB and virtual serial port (Virtual COM Port) need to scan the setting code to change, but do not
need to plug in the receiver

10 / 27
4.9 The command of firmware upgrade
Function Command Barcode Remark
@SET
Receiver
upgrade WN-R-K0000
1. The receiver is connected to the
PC via USB, and in the case of
pairing, after the scanner scans the
barcode, the receiver reinserts the
receiver after receiving it.
2. The receiving socket is
connected to the PC through the
RS232 serial port, and after the
scanner scans the barcode, the
receiving end is re-plugged after
receiving the barcode.
3. The receiving socket is
connected to the PC through the
serial port, and the system enters
the upgrade mode after pressing
the bottom button for 8 seconds.
Sender
upgrade WN-T-K0000
1. Connect the PC through the USB
cable, then scan the upgrade
barcode of the sender, and then
restart the device to detect the
upgrade.
@END
4.9 0x0A 过滤
开启会过滤掉字符串中间的 0x0A(换行符),字符串结尾(倒数第一和第二位)的 0x0A 不会被过滤。
功能 指令 条码 备注
*开启 0x0A 过滤 @.WN-W-F3301/
开启后,字符串中间
的换行符 0x0A 会被
过滤,
关闭 0x0A 过滤 @.WN-W-F3302/
关闭后数据中间如
果有换行符,会正常
输出
4.10 Wireless connectivity detection(★Note: this function only in a scanner connected to a
receiver)
Function Command Barcode Remark
@SET
Enable
connection WN-T-C0001
This setting only in a scanner
connected to a receiver

11 / 27
test
*Disable
connection
test
WN-T-C0002
When multiple scanners are
connected to a receiver,
connection detection needs to
be turned off. The factory
default is to disable connection
detection.
@END
4.11 The sender wired output
Function Command Barcode Remark
@SET
* Enable USB wired
output WN-T-L0000
1. After open the sender after
the PCB via USB cable
connection, connection can
be directly through the
normal USB transmission, do
not use the wireless
transmission
Disable USB wired
output WN-T-L0001
Shut down after insert USB
cable only allows charging,
only through wireless data
transmission
@END
Note☆:USB wired output is used only for the sender
4.11 Wired connection (USB/USB VCP COM) ★
Function Command Barcode Remark
@SET
*USB mode WN-W-L1000
USB interface
USB VCP COM WN-W-L1001
USB virtual serial port need
to install the serial port
(USB) driver can be normal
use

12 / 27
RS232 mode WN-R-L1002
1, a serial port output
function only in support of
a serial port output devices
(hardware) can use, now
only AI-BS-WS40-V receive
support serial output 2,
optimizes the transmission
way of new products. USB
and RS232 serial port
transmission can
automatically identify, do
not need to set up a serial
port output
RS485 mode WN-R-L1004
@END
Note★:1. The default for USB and RS232 serial Port output, the system will automatically choose the USB or
RS232 serial Port output according to the hardware, without setting 2. USB and Virtual serial Port
(Virtual COM Port) when switching need scan Settings to change, but don't need to plug the receiver
4.12 Serial port setting ★
Function Command Barcode Remark
@SET
3.10.1 Baud rate
2400 WN-R-D0000
4800 WN-R-D0001
*9600 WN-R-D0002
19200 WN-R-D0003
38400 WN-R-D0004
57600 WN-R-D0005
115200 WN-R-D0006
3.10.2 The length of the data
7 Data Bits WN-R-D1002
*8 Data Bits WN-R-D1001

13 / 27
3.10.3 Stop bit
*1 Stop Bit WN-R-D1003
2 Stop Bit WN-R-D1004
3.10.4 Parity bit
*No Parity WN-R-D1005
Odd Parity WN-R-D1006
Even Parity WN-R-D1007
@END
Note★:The serial port setting can be used normal on support serial output equipment only
4.13 Auto trigger
Function Command Barcode Remark
@SET
Enable auto trigger WN-T-D0000
Enable infrared
induction trigger
Disable auto trigger
WN-T-D0001
Disable infrared
induction trigger
@END
4.14 Start symbol mode setting ★
Function Command Barcode Remark
@SET
*No start
symbol WN-T-I0000
Custom
start
symbol+bar
code
WN-T-I0002
@END
The sample of start symbol mode setting:To set a start symbol “#Ab9”in barcode “1234567”,The barcode data
will be “#Ab91234567”.
1.Scan 【@SET】barcode.
2.Scan 【Custom start symbol + bar code】
3.Scan the following symbol【#】、【A】、【b】、【9】 in turn.
4.Scan 【@END】barcode.
4.15 End symbol mode setting

14 / 27
Function Command Barcode Remark
@SET
No end symbol WN-T-I1000
No end symbol
Custom end
symbol WN-T-I100A
Custom end symbol
can be composed of
ASCII codes of any
character, customers
can set according to
need
@END
The sample of end symbol mode setting:To set a start symbol “%B”in barcode “1234567”,The barcode data
will be “1234567%B”.
1.Scan【@SET】barcode ->2.Scan【Custom end symbol】barcode ->3. Scan the following symbol【%】、
【B】、in turn
4.Scan【Exit&Save】barcode
5. End symbol of factory reset: 0x0D(Enter)
6. End symbol of commonly used symbols: 0x0D(Enter),0x0A,0x09(Tab)
0x0D(Enter) 0x0A(Line feed) 0x09(Tab)
4.17 Sender prompts sound selection
When the wireless scanner is used normally, there are two sounds. The first sound is the sound of
successful reading, and the second sound is the sound of successful wireless transmission.
Function
Command
Barcode
Remark
@SET
*Turn on the boot
sound
WN-T-E0001
Turn off the boot
sound
WN-T-E0002

15 / 27
*Enable sending
successful voice
prompts
WN-T-E1001
Turn off sending
successful voice
prompts
WN-T-E1002
@END
Note: This function is mainly for module use. Most modules have boot sound and scan code sound,
so the boot sound of the motherboard and the wireless send sound are turned on. The two sounds
overlap. Therefore, the setting of the added sound switch can cope with the mode. The group
sounds are repeated and the sound is mixed.
4.18 Receiving base sound
Turn on the base boot sound Turn off the base boot sound
4.19 Transmitter wireless transmission tone
Turn on the transmission sound Turn off the transmission sound
Turn off all sound
5 Information instructions:
5.1 Receiver instructions system
Serial
number
The type of status
indicators The type of status indicators State of the LED

16 / 27
Boot to detect hints
1 Wireless module to detect
anomalies
Short three beeps(high
frequency) Red light blinks three times
2 External storage module
abnormal Long two beeps (high frequency)
Red light blinks twice
3 Power on Short Four beeps(high/mid/
low frequency) Green light normally on
Instructions of pairing state
4 Start the wireless pairing One short beeps(high
frequency) LED light blinks once
5 Wireless pairing state None Red light blinks
6 Wireless pairing failure None Red light normally on,
Green light off
7 Wireless pairing success long three beeps(high/mid/
low frequency) Green light normally on
Setting state instructions
8 Enter setting mode
long one beep and short two
beeps (high/mid/low
frequency)
Green light blinks once
9 Exit & Save
Long one beep and short two
beeps(high/mid/low
frequency)
Green light blinks once
10 Setting command state Long one beep and short one
beep(high/low frequency) Green light normally on
11 Effective command
Long one beep and two short
long(high/mid/low
frequency)
Green light blinks once
12 Non-effective command
Long one beep(low frequency)
Green light blinks once &
Red light blink once
Instructions of Inventory mode
13 Data uploaded
successfully short one beep(high frequency) Green light blinks once
14 Data uploaded failure short three beeps(Intermediate
frequency) Red light blinks three times
15 Data Overflow long two beeps(high frequency) Red light blinks twice
Real-time mode
17 Upload data successfully Short one beep(high frequency) Green light blinks once
18 Upload data failde beeps(Intermediate frequency) Red light blinks three times
Power status indicators
20 Charging status None Blue light on
21 Charging completed None Blue light off,Green light on
22 Sleep/power off Long one beep(Intermediate
frequency) Light off

17 / 27
23 Low battery tips None Red light on (does not affect
the green light to red light)
Quick command indicators
24 Quick instructions
Long one beep and short two
beeps(high/mid/low
frequency)
Green light blink once
Data Overflow
25 Data Overflow Long one beep(Low frequency) Red light blink once
5.2.1 Receiver LED light indicator
Serial number
System state Buzzer announce
Indicator light
2.4G & 433 USB adapter
1 power on within 30 seconds --- Green light blink slowly
2 Boot after 30 seconds --- Green light normally on
3 Receive the packet --- Green light blink once
433 receiver
1 Electricity boot Boot ringtone
2 power on within 30 seconds None Green light blink slowly
3 30 seconds later None Green light normally o n
4
Press the button to enter matching
state
None Green light blink slowly
6 2.4G Wireless sending and receiving data packet format
6.1 bk2425 Infinite packet format
The statement field Size Description
U8 pkt_len 1byte The length of the barcode
U8 pkt_check 1 byte
[[7] Address pairing indication marks
[6] 0: command package 1: The packet
[5] Barcode transmission complete indication
marks
0: Transfer to complete
1: unfinished
[4] Whether to show ID
0: ID hide
1: ID show
[3:0] system working mode
0:real-time mode
1:Inventroy mode
2:Cache mode

18 / 27
u8 pkt_part 1 byte Long subcontract send number barcode data
u8 payload[29] Max 29byte Effective data area (Data of barcode)
7、Inventory mode to save and read data packet format:
The statement field Size Description
u16 len 2byte The length of the barcode
u8 barcode_buf[520]
The size of the data
of effective
barcode data
Effective barcode data
7.1 Inventory model management information storage format:
Type Fields Length Description
u8 sequence 1Byte The order of the information stored in the
management sector
u16 barcode_count 2Byte The number of barcode in the inventory model of
storage
U16 mode2_barcode_count
2Byte Cache barcode number
u32 write_addr 4Byte The initial address of can be written (Inventory
mode)
u32 read_addr 4Byte The initial address of can be read(Inventory mode)
u32 mode2_write_addr 4Byte Initial address of can be written in the
buffer(Cache mode)
u32 mode2_read_addr 4Byte Initial address of can be read in the buffer(Cache
mode)
8、433 wireless data packet
The packet format
The statement field
Size Description
U8 pkt_length 1byte The length of the packet (The entire packet length,
contains the length of byte)
u8 pkt_part 1 byte Long subcontract send number barcode data
U16 src_addr 2byte source address
U32 dst_addr 2byte destination address
U8 pkt_check 1 byte
[7] Address pairing indication marks
[6] 0: command package 1: The packet
[5] Barcode transmission complete indication marks
0: Transfer to complete
1: unfinished
[4] Whether to show ID
0: ID hide
1: ID show
[3:0] Reserved[0~7]

19 / 27
U8 pkt_repeat 1byte Packets duplicate detection
u8 pkt_payload [56] Max 56byte Effective data area (Data of barcode)( Plan to
increase to120Bytes)
ACK packet format
The statement field Size Description
U8 pkt_length 1byte The length of the packet (The entire packet length,
contains the length of byte)
U8 pkt_check 1 byte
[7] Address pairing indication marks
[6] 0: command packet 1: Data packet
[5] Bar code transmission complete indication marks
0: Transmission complete
1: Transmission failure
[4] Whether to showID
0: ID hide
1: ID show
[3:0] Reserved[0~7]
U16 src_addr 2byte source address
U32 dst_addr 2byte destination address
U16 cmd 2byte The command of ACK return
Symbol table
Control symbol Hex
^@(NULL) 00
^A(SOH) 01
^B(STX) 02
^C(ETX) 03
^D(EOT) 04
^E(ENQ) 05
^F(ACK) 06
^G(BEL) 07
^H(BS) 08
Table of contents