
CNV_485_HID & CNV_485_HID_ARC1
Notice d’utilisation
CNV_485_HID & CNV_485_HID_ARC1
Operating instructions
© STid 2017
– 20 PA des Pradeaux FR 13850 GREASQUE – NI1123A01 – 2/4 – Ed. 28/08/2017
➢
Brancher la sortie câble du CNV_485_HID sur un convertisseur RS485 vers
RS232 ou RS485 vers USB.
➢
Connecter le convertisseur RS232 ou USB au PC.
➢
Connecter la prise USB du CNV_485_HID au PC.
➢
Ouvrir un terminal permettant d’envoyer des caractères sur la liaison série
(par exemple Tera Term ou Com Tools).
➢
Configurer le CNV_485_HID en envoyant les commandes en ASCII et en
respectant la casse (majuscule/minuscule) : voir tableau ci-dessous.
➢
Finir en envoyant les octets CR/LF
→ 0x0D 0x0A.
Le CNV_485_HID doit acquitter de la bonne réception de la trame en
envoyant les caractères ASCII « o » et « k ».
➢
Attention à communiquer à la bonne vitesse (38400 par défaut).
Commande
ASCII
Données
Hexa
Description de la commande
update
Pas de donnée
Permet
de
passer
le
convertisseur
en
mode
reprogrammation.
baudrate
1 octet de donnée :
9600
→ 0x00
19200
→ 0x01
38400
→ 0x02
57600
→ 0x03
115200
→ 0x04
Permet de changer la vitesse
de communication de la liaison
RS485.
language
1 octet de donnée :
Français
→ 0x00
Anglais
→ 0x01
Permet de changer la langue
du clavier (Français AZERTY,
anglais QWERTY).
PIDVID
4 octets de donnée :
1
er
octet
→ PID MSB
2
ème
octet
→ PID LSB
3
ème
octet
→ VID MSB
4
ème
octet
→ VID LSB
Permet de modifier le PID* et le
VID** dans le cas où le client
veut
un
VID
et/ou
PID
personnalisé.
PID
2 octets de donnée :
1
er
octet
→ PID MSB
2
ème
octet
→ PID LSB
Permet de modifier le PID*
indépendamment du VID**.
VID
2 octets de donnée :
1
er
octet
→ VID MSB
2
ème
octet
→ VID LSB
Permet de modifier le VID**
indépendamment du PID*.
casing
1 octet de donnée :
Majuscule
→ 0x00
Minuscule
→ 0x01
Permet de choisir si les
caractères
alphabétiques
affichés
sur
l'écran
apparaissent en majuscule ou
en minuscule.
numloc
1 octet de donnée :
Pavé num
→ 0x00
Touche num
→ 0x01
Permet de choisir quelles
touches
numériques seront
utilisés : celles du pavé
numérique ou celles situées au-
dessus
des
touches
alphabétiques.
info
Pas de donnée
Permet
de
connaitre
la
configuration du câble (version,
baudrate…).
timing
1 ou 2 octets
Permet de définir le temps
entre
l’envoi de 2 caractères
(entre 20ms et 1s).
Par défaut il est réglé au
minimum.
L’octet ou les octets doivent
être envoyés directement en
décimal.
Envoyer 1 octet pour un délai
compris entre 20 et 99ms.
Envoyer 2 octets si le délai est
supérieur à 99ms.
Exemples :
- Pour régler à 1000ms envoyer
0x10 puis 0x00.
- Pour régler à 100ms envoyer
0x01 puis 0x00
- Pour régler à 30ms envoyer
0x30.
Ex. : Pour configurer le baudrate à 115200 envoyer :
‘b’ ‘a’ ‘u’ ‘d’ ‘r’ ‘a’ ‘t’ ‘e’ 0x04 0x0D 0x0A
* PID : Product ID
– ** VID : Vendor ID
➢
Connect the CNV_485_HID cable to an RS485/RS232 converter or an
RS485/USB converter.
➢
Connect the RS232 or USB converter to the PC.
➢
Connect the USB connector of the CNV_485_HID to the PC.
➢
Open a terminal which can send characters on the serial link (example Tera
Term or Com Tools).
➢
Configure the CNV_485_HID cable by sending commands in ASCII case
sensitive: see table below.
➢
End the frame with CR/LF → 0x0D 0x0A.
The CNV_485_HID replies with acknowledgment receipt
in ASCII format “o”
and “k”.
➢
Make sure to communicate with the accurate speed (38,400 by default).
Command
ASCII
Data
Hexa
Description of the command
update
No data
Put the converter in update
mode.
baudrate
1 byte of data:
9,600
→ 0x00
19,200
→ 0x01
38,400
→ 0x02
57,600
→ 0x03
115,200
→ 0x04
Change the communication
speed of the RS485 link.
language
1 byte of data:
French
→ 0x00
English
→ 0x01
Change the keyboard language
(French
AZERTY,
English
QWERTY).
PIDVID
4 bytes of data:
1
st
byte
→ PID MSB
2
nd
byte
→ PID LSB
3
rd
byte
→ VID MSB
4
th
byte
→ VID LSB
Modify the PID* and the VID** if
the
customer
wants
a
customized VID and/or PID.
PID
2 bytes of data:
1
st
byte
→ PID MSB
2
nd
byte
→ PID LSB
Modify the PID* regardless of
the VID**.
VID
2 bytes of data:
1
st
byte
→ VID MSB
2
nd
byte
→ VID LSB
Modify the VID** regardless of
the PID*.
casing
1 byte of data:
Upper case
→ 0x00
Lower case
→ 0x01
Select the upper case or lower
case to display the alphabetic
characters.
numloc
1 byte of data:
Num keypad
→ 0x00
Num keys
→ 0x01
Select which numeric keys will
be used: numeric keypad or
numeric
keys
above
the
alphabetic keys.
info
No data
Give
the
cable
settings
(version, baud
rate,…).
timing
1 or 2 bytes
Define the time between the
sending
of
2
characters
(between 20ms and 1s).
By default it is set to minimum.
The byte(s) must be sent in
decimal.
Send 1 byte for a time between
20 and 99ms.
Send 2 bytes if the time is
higher than 99ms.
Example:
- For 1000ms send 0x10 then
0x00.
- For 100ms send 0x01 then
0x00
- For 30ms send 0x30.
Ex.: To set the baud rate to 11,5200 send:
‘b’ ‘a’ ‘u’ ‘d’ ‘r’ ‘a’ ‘t’ ‘e’ 0x04 0x0D 0x0A
* PID : Product ID
– ** VID : Vendor ID