-
1 Attachment(s)
Problem with USBKeys
why the iocards module always with the stoping status? How to make it running?
sioc.ini
[SIOC]
IOCP_port=8092
IOCP_timeout=4000
Minimized=No
toggle_delay=20
CONFIG_FILE=.\SCRIPTS\sioc fmc magenta.txt
[IOCARDS MODULE]
IOCard_disable=No
IOCard_LPT=No
[MASTERS]
[USBKEYS]
USBKeys=1,50
[FSUIPC MODULE]
FSUipcdisable=No
FSUipcRefresh=50
[IOCP CLIENTS MODULES]
IOCPini_delay=3000
IOCPclient0_disable=Yes
IOCPclient0_host=localhost
IOCPclient0_port=8090
IOCPclient1_disable=Yes
IOCPclient1_host=localhost
IOCPclient1_port=8099
[SOUND MODULE]
Sound_disable=Yes
Volume=100
him8889@yahoo.com.hk
Attachment 4574
-
Re: Problem with USBKeys
Hi Him8899 (what a weird name you have ;-) )
Check that your are using DEVICE 1 in your sioc fmc magenta.txt
Tips:
* do not use file names with spaces...
* compile the script first (with config_sioc.exe), save as "scriptname".ssi and use CONFIG_FILE=.\SCRIPTS\"scriptname".ssi in sioc.ini
Nico Kaan
-
Re: Problem with USBKeys
Hi Nico Kaan
how to check the DEVICE in the txt file?
scripts
Var 0001, name iocp_teclas
Var 0002, name teclado, Link USB_KEYS
{
IF &teclado = 71 // menu
{
&k = 629
}
IF &teclado = 79 // perf init
{
&k = 624
}
IF &teclado = 78 // rte
{
&k = 625
}
IF &teclado = 75 // des
{
&k = 628
}
IF &teclado = 70 // legs
{
&k = 630
}
IF &teclado = 67 // prog
{
&k = 633
}
IF &teclado = 63 // n1 altn
{
&k = 634
}
IF &teclado = 62 // fix
{
&k = 635
}
IF &teclado = 77 // clb
{
&k = 626
}
IF &teclado = 76 // crz
{
&k = 627
}
IF &teclado = 69 // dep
{
&k = 631
}
IF &teclado = 68 // hold
{
&k = 632
}
IF &teclado = 66 // ENTER
{
&k = 13
}
IF &teclado = 55 // Prev Pg
{
&k = 33
}
IF &teclado = 54 // Next Pg
{
&k = 34
}
IF &teclado = 7 // 0
{
&k = 48
}
IF &teclado = 32 // 1
{
&k = 49
}
IF &teclado = 31 // 2
{
&k = 50
}
IF &teclado = 30 // 3
{
&k = 51
}
IF &teclado = 24 // 4
{
&k = 52
}
IF &teclado = 23 // 5
{
&k = 53
}
IF &teclado = 22 // 6
{
&k = 54
}
IF &teclado = 16 // 7
{
&k = 55
}
IF &teclado = 15 // 8
{
&k = 56
}
IF &teclado = 14 // 9
{
&k = 57
}
IF &teclado = 8 // .
{
&k = 190
}
IF &teclado = 2 // barra
{
&k = 191
}
IF &teclado = 6 // +
{
&k = 107
}
IF &teclado = 3 // Delete
{
&k = 46
}
IF &teclado = 1 // Clr
{
&k = 8
}
IF &teclado = 4 // Clr
{
&k = 32
}
IF &teclado = 61 // A
{
&k = 65
}
IF &teclado = 60 // B
{
&k = 66
}
IF &teclado = 59 // C
{
&k = 67
}
IF &teclado = 58 // D
{
&k = 68
}
IF &teclado = 57 // E
{
&k = 69
}
IF &teclado = 53 // F
{
&k = 70
}
IF &teclado = 52 // G
{
&k = 71
}
IF &teclado = 51 // H
{
&k = 72
}
IF &teclado = 50 // I
{
&k = 73
}
IF &teclado = 49 // J
{
&k = 74
}
IF &teclado = 29 // K
{
&k = 75
}
IF &teclado = 28 // L
{
&k = 76
}
IF &teclado = 27 // M
{
&k = 77
}
IF &teclado = 26 // N
{
&k = 78
}
IF &teclado = 25 // O
{
&k = 79
}
IF &teclado = 21 // P
{
&k = 80
}
IF &teclado = 20 // Q
{
&k = 81
}
IF &teclado = 19 // R
{
&k = 82
}
IF &teclado = 18 // S
{
&k = 83
}
IF &teclado = 17 // T
{
&k = 84
}
IF &teclado = 13 // U
{
&k = 85
}
IF &teclado = 12 // V
{
&k = 86
}
IF &teclado = 11 // W
{
&k = 87
}
IF &teclado = 10 // X
{
&k = 88
}
IF &teclado = 9 // Y
{
&k = 89
}
IF &teclado = 5 // Z
{
&k = 90
}
IF &teclado = 56 // Linea 1L
{
&k = 112
}
IF &teclado = 64 // Linea 2L
{
&k = 113
}
IF &teclado = 72 // Linea 3L
{
&k = 114
}
IF &teclado = 80 // Linea 4L
{
&k = 115
}
IF &teclado = 88 // Linea 5L
{
&k = 116
}
IF &teclado = 87 // Linea 6L
{
&k = 117
}
IF &teclado = 86 // Linea 1R
{
&k = 118
}
IF &teclado = 85 // Linea 2R
{
&k = 119
}
IF &teclado = 84 // Linea 3R
{
&k = 120
}
IF &teclado = 83 // Linea 4R
{
&k = 121
}
IF &teclado = 82 // Linea 5R
{
&k = 122
}
IF &teclado = 74 // Linea 6R
{
&k = 123
}
}
Var 0005, name k, Link SUBRUTINE
{
IF &k <> 0
{
IF &k = &tempk
{
&offsetk = &k + &shift
IF &shift = 0
{
&shift = 2048
}
ELSE
{
&shift = 0
}
}
ELSE
{
&offsetk = &k
&tempk = &k
}
&k = 0
}
}
Var 0006, name tempk
Var 0008, name shift
Var 3000, name offsetk, Link FSUIPC_INOUT, Offset $5428, Length 2 // CDU Functions
Var 4000, name messages, Link FSUIPC_INOUT, Offset $052C, Length 2 // CDU leds
{
&ledexec = TESTBIT &messages ,0
&ledmsg = TESTBIT &messages ,1
&ledfail = TESTBIT &messages ,2
&ledofst = TESTBIT &messages ,3
}
Var 5000, name ledexec, Link IOCARD_OUT, Output 10 // led EXEC
Var 5001, name ledmsg, Link IOCARD_OUT, Output 11 // led MSG
Var 5002, name ledfail, Link IOCARD_OUT, Output 12 // led FAIL
Var 5003, name ledofst, Link IOCARD_OUT, Output 13 // led OFST
-
Re: Problem with USBKeys
You are using device 0, the default.
Change USBKeys=0,50 in sioc.ini
Nico
-
Re: Problem with USBKeys
hi
I already change to 0, but it still no work.
Do you have any special setting of the USBKeys Card.
Thanks
-
Re: Problem with USBKeys
Hi,
if you define the USBKeys=1,50
then you need to put Var0002, name teclado, link USBKEYS, device = 1
anyway, I would also enable the iocpclients in the sioc ini file and start the iocpconsole program to see that the var0002 is or isnt filled with the keycode
you are pressing.
Greetz Peter
-
Re: Problem with USBKeys
hi
when i add Var 0002, name teclado, Link USB_KEYS, device = 1
it have error
%FAILED%
* COMPILATION ERROR*
thanks
-
Re: Problem with USBKeys