Haitham Sharaf
Newbie level 1
- Joined
- Jul 5, 2014
- Messages
- 1
- Helped
- 0
- Reputation
- 0
- Reaction score
- 0
- Trophy points
- 1
- Activity points
- 6
I am using a relay controller, I want to write my own code to run this controller,
The following is the serial port log:
Can any body help me to write this code
The following is the serial port log:
# Time Function Direction Status Data Data (chars)
0 4/4/2014 7:39 IRP_MJ_CREATE DOWN STATUS_SUCCESS C:\1.EXE
1 4/4/2014 7:39 IRP_MJ_CREATE UP STATUS_SUCCESS C:\1.EXE
2 4/4/2014 7:39 IRP_MJ_CLOSE DOWN STATUS_SUCCESS
3 4/4/2014 7:39 IRP_MJ_CLOSE UP STATUS_SUCCESS
4 4/4/2014 7:39 IRP_MJ_CREATE DOWN STATUS_SUCCESS C:\1.exe
5 4/4/2014 7:39 IRP_MJ_CREATE UP STATUS_SUCCESS C:\1.exe
6 4/4/2014 7:39 IRP_MJ_DEVICE_CONTROL (IOCTL_SERIAL_SET_WAIT_MASK) DOWN STATUS_SUCCESS fd 01 00 00 ?...
7 4/4/2014 7:39 IRP_MJ_DEVICE_CONTROL (IOCTL_SERIAL_SET_WAIT_MASK) UP STATUS_SUCCESS
8 4/4/2014 7:39 IRP_MJ_DEVICE_CONTROL (IOCTL_SERIAL_SET_QUEUE_SIZE) DOWN STATUS_SUCCESS 00 04 00 00 00 02 00 00 ........
9 4/4/2014 7:39 IRP_MJ_DEVICE_CONTROL (IOCTL_SERIAL_SET_QUEUE_SIZE) UP STATUS_SUCCESS
10 4/4/2014 7:39 IRP_MJ_DEVICE_CONTROL (IOCTL_SERIAL_PURGE) DOWN STATUS_SUCCESS 0f 00 00 00 ....
11 4/4/2014 7:39 IRP_MJ_DEVICE_CONTROL (IOCTL_SERIAL_PURGE) UP STATUS_SUCCESS
12 4/4/2014 7:39 IRP_MJ_DEVICE_CONTROL (IOCTL_SERIAL_SET_TIMEOUTS) DOWN STATUS_SUCCESS ff ff ff ff 00 00 00 00 00 00 00 00 00 00 00 00 88 13 00 00 ÿÿÿÿ............?...
13 4/4/2014 7:39 IRP_MJ_DEVICE_CONTROL (IOCTL_SERIAL_SET_TIMEOUTS) UP STATUS_SUCCESS
14 4/4/2014 7:39 IRP_MJ_DEVICE_CONTROL (IOCTL_SERIAL_GET_BAUD_RATE) DOWN STATUS_SUCCESS
15 4/4/2014 7:39 IRP_MJ_DEVICE_CONTROL (IOCTL_SERIAL_GET_BAUD_RATE) UP STATUS_SUCCESS 80 25 00 00 €%..
16 4/4/2014 7:39 IRP_MJ_DEVICE_CONTROL (IOCTL_SERIAL_GET_LINE_CONTROL) DOWN STATUS_SUCCESS
17 4/4/2014 7:39 IRP_MJ_DEVICE_CONTROL (IOCTL_SERIAL_GET_LINE_CONTROL) UP STATUS_SUCCESS 00 00 07 ...
18 4/4/2014 7:39 IRP_MJ_DEVICE_CONTROL (IOCTL_SERIAL_GET_CHARS) DOWN STATUS_SUCCESS
19 4/4/2014 7:39 IRP_MJ_DEVICE_CONTROL (IOCTL_SERIAL_GET_CHARS) UP STATUS_SUCCESS 1a 00 00 1a 11 13 ......
20 4/4/2014 7:39 IRP_MJ_DEVICE_CONTROL (IOCTL_SERIAL_GET_HANDFLOW) DOWN STATUS_SUCCESS
21 4/4/2014 7:39 IRP_MJ_DEVICE_CONTROL (IOCTL_SERIAL_GET_HANDFLOW) UP STATUS_SUCCESS 00 00 00 00 00 00 00 00 00 08 00 00 00 02 00 00 ................
22 4/4/2014 7:39 IRP_MJ_DEVICE_CONTROL (IOCTL_SERIAL_GET_BAUD_RATE) DOWN STATUS_SUCCESS
23 4/4/2014 7:39 IRP_MJ_DEVICE_CONTROL (IOCTL_SERIAL_GET_BAUD_RATE) UP STATUS_SUCCESS 80 25 00 00 €%..
24 4/4/2014 7:39 IRP_MJ_DEVICE_CONTROL (IOCTL_SERIAL_GET_LINE_CONTROL) DOWN STATUS_SUCCESS
25 4/4/2014 7:39 IRP_MJ_DEVICE_CONTROL (IOCTL_SERIAL_GET_LINE_CONTROL) UP STATUS_SUCCESS 00 00 07 ...
26 4/4/2014 7:39 IRP_MJ_DEVICE_CONTROL (IOCTL_SERIAL_GET_CHARS) DOWN STATUS_SUCCESS
27 4/4/2014 7:39 IRP_MJ_DEVICE_CONTROL (IOCTL_SERIAL_GET_CHARS) UP STATUS_SUCCESS 1a 00 00 1a 11 13 ......
28 4/4/2014 7:39 IRP_MJ_DEVICE_CONTROL (IOCTL_SERIAL_GET_HANDFLOW) DOWN STATUS_SUCCESS
29 4/4/2014 7:39 IRP_MJ_DEVICE_CONTROL (IOCTL_SERIAL_GET_HANDFLOW) UP STATUS_SUCCESS 00 00 00 00 00 00 00 00 00 08 00 00 00 02 00 00 ................
30 4/4/2014 7:39 IRP_MJ_DEVICE_CONTROL (IOCTL_SERIAL_SET_BAUD_RATE) DOWN STATUS_SUCCESS 80 25 00 00 €%..
31 4/4/2014 7:39 IRP_MJ_DEVICE_CONTROL (IOCTL_SERIAL_SET_BAUD_RATE) UP STATUS_SUCCESS
32 4/4/2014 7:39 IRP_MJ_DEVICE_CONTROL (IOCTL_SERIAL_SET_WAIT_MASK) DOWN STATUS_SUCCESS fd 01 00 00 ?...
33 4/4/2014 7:39 IRP_MJ_DEVICE_CONTROL (IOCTL_SERIAL_SET_WAIT_MASK) UP STATUS_SUCCESS
34 4/4/2014 7:39 IRP_MJ_DEVICE_CONTROL (IOCTL_SERIAL_CLR_RTS) DOWN STATUS_SUCCESS
35 4/4/2014 7:39 IRP_MJ_DEVICE_CONTROL (IOCTL_SERIAL_CLR_RTS) UP STATUS_SUCCESS
36 4/4/2014 7:39 IRP_MJ_DEVICE_CONTROL (IOCTL_SERIAL_SET_WAIT_MASK) DOWN STATUS_SUCCESS fd 01 00 00 ?...
37 4/4/2014 7:39 IRP_MJ_DEVICE_CONTROL (IOCTL_SERIAL_SET_WAIT_MASK) UP STATUS_SUCCESS
38 4/4/2014 7:39 IRP_MJ_DEVICE_CONTROL (IOCTL_SERIAL_SET_DTR) DOWN STATUS_SUCCESS
39 4/4/2014 7:39 IRP_MJ_DEVICE_CONTROL (IOCTL_SERIAL_WAIT_ON_MASK) DOWN STATUS_SUCCESS
40 4/4/2014 7:39 IRP_MJ_DEVICE_CONTROL (IOCTL_SERIAL_SET_DTR) UP STATUS_SUCCESS
41 4/4/2014 7:39 IRP_MJ_DEVICE_CONTROL (IOCTL_SERIAL_SET_LINE_CONTROL) DOWN STATUS_SUCCESS 00 02 08 ...
42 4/4/2014 7:39 IRP_MJ_DEVICE_CONTROL (IOCTL_SERIAL_SET_LINE_CONTROL) UP STATUS_SUCCESS
43 4/4/2014 7:39 IRP_MJ_DEVICE_CONTROL (IOCTL_SERIAL_SET_CHARS) DOWN STATUS_SUCCESS 1a 3f 3f 00 11 13 .??...
44 4/4/2014 7:39 IRP_MJ_DEVICE_CONTROL (IOCTL_SERIAL_SET_CHARS) UP STATUS_SUCCESS
45 4/4/2014 7:39 IRP_MJ_DEVICE_CONTROL (IOCTL_SERIAL_SET_HANDFLOW) DOWN STATUS_SUCCESS 01 00 00 00 04 00 00 00 00 01 00 00 00 01 00 00 ................
46 4/4/2014 7:39 IRP_MJ_DEVICE_CONTROL (IOCTL_SERIAL_SET_HANDFLOW) UP STATUS_SUCCESS
47 4/4/2014 7:39 IRP_MJ_DEVICE_CONTROL (IOCTL_SERIAL_GET_COMMSTATUS) DOWN STATUS_SUCCESS
48 4/4/2014 7:39 IRP_MJ_DEVICE_CONTROL (IOCTL_SERIAL_GET_COMMSTATUS) UP STATUS_SUCCESS 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
Can any body help me to write this code
Last edited by a moderator: