B&B Electronics Parallel Printer Card PIOC Manuel d'utilisateur Page 49

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 64
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 48
GHI Electronics,LLC USBwiz User Manual
USBwiz Command Set
PP - Send Data to USB Printer to print
Format PP<SP>p>ss<CR>
!00<CR>
Data to Print
!00<CR>
p is the USB port number
ss data size, max of 255 bytes
Example PP<SP>1>C<CR>
!00<CR>
Hello<SP>World!
!00<CR>
Send C bytes to USB port 1
US - Register Serial Communication Device
USBwiz has an internal Serial Driver. This command must be used before accessing
these devices.
Format US<SP>p>t>bbbbbbbb<CR>
!00<CR>
p is the port number
t is type of the serial device. It can be
C for CDC
S for Silabs
P for Prolific
R for Prolific version 2
F for FTDI
bbbbbbbb is the baudrate in
hexadecimal
Example US<SP>1>C>2580<CR>
!00<CR>
Register USB CDC device on port 1 with
baudrate 9600
SR - Read Serial Device
Reads data from device.
Format SR<SP>p<CR>
!00<CR>
$ss<CR>
ss bytes
!00<CR>
Read serial device on port p
Data size is HEX byte ss
Example SR<SP>0<CR>
!00<CR>
$06<CR>
Hello!
!00<CR>
Read serial device on port 0
The device has 6 bytes Hello!
SW - Write to Serial Device
Format SW<SP>p>ss<CR>
!00<CR>
p is the port number
ss is data size to be sent
Rev.2.27 Page 49 of 64 www.ghielectronics.com
Vue de la page 48
1 2 ... 44 45 46 47 48 49 50 51 52 53 54 ... 63 64

Commentaires sur ces manuels

Pas de commentaire