Vision Systems VScom 200E PCIex Manual de usuario Pagina 50

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 93
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 49
7 /proc-Extensions for the KS8695 based Devices
7. /proc-Extensions for the KS8695 based Devices
In the /proc/vscom directory reside several files to manipulate the OnRISC hardware:
epld_ttyS* - configure serial driver e.g. rs232, rs422, rs485. For exact values execute
echo /proc/vscom/epld_ttySn (n=1..4)
For detailed description see 6.4
gpio_* - set and read digital IO channels. For detailed description see 6.1
leds - set and read LEDs values. For detailed description see 6.3
buzzer, buzzer_frq - configure the buzzer. For detailed description see 6.2
reset - reboot the OnRISC. To execute the hardware reset
echo 1 > /proc/vscom/reset
Examples:
echo 1 > /proc/vscom/buzzer turn buzzer on
echo 0 > /proc/vscom/buzzer turn buzzer off
echo 0x000001f4 > /proc/vscom/buzzer_frq this will activate the buzzer for 500ms and then
deactivate it for 500ms and so on
cat /proc/vscom/leds get the current LED status
echo GREEN > /proc/vscom/leds turn the green LED on
echo green > /proc/vscom/leds turn the green LED off
echo rs422 > /proc/vscom/epld_ttyS2 sets the mode of the second port to rs422
echo 0x05 0x05 > /proc/vscom/gpio_ctrl set DIO0 and DIO2 to output
May 2014 OnRISC User Manual 50
Vista de pagina 49
1 2 ... 45 46 47 48 49 50 51 52 53 54 55 ... 92 93

Comentarios a estos manuales

Sin comentarios