Dobrý den, nenašel by se někdo zručný, kdo umí s Corelem Draw...potřeboval bych udělat takové 2 blbosti a pro někoho kdo s tím umí by to neměl být problém..prosíííím:(
Příspěvky odeslané z IP adresy 77.78.89.–
#2 liborb
Tak mi to chvíli dalo než jsem ten Portmon rozběhal, ale nakonec se to povedlo. Z logu je očividné, že ten Serial monitor pořád odesílá jistý "udržovací signál". Tu je log:
0 0.00000000 javaw.exe IRP_MJ_CREATE USBSER000 Options: Open
0 0.00002766 SUCCESS
1 0.00000000 javaw.exe IRP_MJ_CLEANUP USBSER000
1 0.00000307 SUCCESS
2 0.00000000 javaw.exe IRP_MJ_CLOSE USBSER000
2 0.00091213 SUCCESS
3 0.00000000 javaw.exe IRP_MJ_CREATE USBSER000 Options: Open
3 0.00002794 SUCCESS
4 0.00000000 javaw.exe IRP_MJ_CLEANUP USBSER000
4 0.00000307 SUCCESS
5 0.00000000 javaw.exe IRP_MJ_CLOSE USBSER000
5 0.00029501 SUCCESS
6 0.00000000 javaw.exe IRP_MJ_CREATE USBSER000 Options: Open
6 0.00003045 SUCCESS
7 0.00000000 javaw.exe IOCTL_SERIAL_SET_QUEUE_SIZE USBSER000 InSize: 2048 OutSize: 1024
7 0.00000251 SUCCESS
8 0.00000000 javaw.exe IOCTL_SERIAL_GET_PROPERTIES USBSER000
8 0.00000279 SUCCESS
9 0.00000000 javaw.exe IOCTL_SERIAL_GET_BAUD_RATE USBSER000
9 0.00096269 SUCCESS
10 0.00000000 javaw.exe IOCTL_SERIAL_GET_LINE_CONTROL USBSER000
10 0.00095264 SUCCESS
11 0.00000000 javaw.exe IOCTL_SERIAL_GET_CHARS USBSER000
11 0.00000223 SUCCESS
12 0.00000000 javaw.exe IOCTL_SERIAL_GET_HANDFLOW USBSER000
12 0.00000196 SUCCESS
13 0.00000000 javaw.exe IOCTL_SERIAL_GET_BAUD_RATE USBSER000
13 0.00094705 SUCCESS
14 0.00000000 javaw.exe IOCTL_SERIAL_GET_LINE_CONTROL USBSER000
14 0.00099203 SUCCESS
15 0.00000000 javaw.exe IOCTL_SERIAL_GET_CHARS USBSER000
15 0.00000223 SUCCESS
16 0.00000000 javaw.exe IOCTL_SERIAL_GET_HANDFLOW USBSER000
16 0.00000196 SUCCESS
17 0.00000000 javaw.exe IOCTL_SERIAL_GET_TIMEOUTS USBSER000
17 0.00000223 SUCCESS
18 0.00000000 javaw.exe IOCTL_SERIAL_GET_BAUD_RATE USBSER000
18 0.00094537 SUCCESS
19 0.00000000 javaw.exe IOCTL_SERIAL_GET_LINE_CONTROL USBSER000
19 0.00099482 SUCCESS
20 0.00000000 javaw.exe IOCTL_SERIAL_GET_CHARS USBSER000
20 0.00000196 SUCCESS
21 0.00000000 javaw.exe IOCTL_SERIAL_GET_HANDFLOW USBSER000
21 0.00000168 SUCCESS
22 0.00000000 javaw.exe IOCTL_SERIAL_SET_BAUD_RATE USBSER000 Rate: 9600
22 0.00197399 SUCCESS
23 0.00000000 javaw.exe IOCTL_SERIAL_CLR_RTS USBSER000
23 0.00000223 SUCCESS
24 0.00000000 javaw.exe IOCTL_SERIAL_SET_DTR USBSER000
24 0.00102415 SUCCESS
25 0.00000000 javaw.exe IOCTL_SERIAL_SET_LINE_CONTROL USBSER000 StopBits: 1 Parity: NONE WordLength: 8
25 0.00190415 SUCCESS
26 0.00000000 javaw.exe IOCTL_SERIAL_SET_CHAR USBSER000 EOF:4 ERR:0 BRK:0 EVT:a XON:0 XOFF:0
26 0.00000223 SUCCESS
27 0.00000000 javaw.exe IOCTL_SERIAL_SET_HANDFLOW USBSER000 Shake:1 Replace:0 XonLimit:0 XoffLimit:0
27 0.00000196 SUCCESS
28 0.00000000 javaw.exe IOCTL_SERIAL_SET_TIMEOUTS USBSER000 RI:0 RM:0 RC:0 WM:0 WC:0
28 0.00000196 SUCCESS
29 0.00000000 javaw.exe IOCTL_SERIAL_GET_BAUD_RATE USBSER000
29 0.00095934 SUCCESS
30 0.00000000 javaw.exe IOCTL_SERIAL_GET_LINE_CONTROL USBSER000
30 0.00094817 SUCCESS
31 0.00000000 javaw.exe IOCTL_SERIAL_GET_CHARS USBSER000
31 0.00000223 SUCCESS
32 0.00000000 javaw.exe IOCTL_SERIAL_GET_HANDFLOW USBSER000
32 0.00000196 SUCCESS
33 0.00000000 javaw.exe IOCTL_SERIAL_GET_TIMEOUTS USBSER000
33 0.00000223 SUCCESS
34 0.00000000 javaw.exe IOCTL_SERIAL_GET_BAUD_RATE USBSER000
34 0.00093224 SUCCESS
35 0.00000000 javaw.exe IOCTL_SERIAL_GET_LINE_CONTROL USBSER000
35 0.00098839 SUCCESS
36 0.00000000 javaw.exe IOCTL_SERIAL_GET_CHARS USBSER000
36 0.00000196 SUCCESS
37 0.00000000 javaw.exe IOCTL_SERIAL_GET_HANDFLOW USBSER000
37 0.00000196 SUCCESS
38 0.00000000 javaw.exe IOCTL_SERIAL_GET_TIMEOUTS USBSER000
38 0.00000196 SUCCESS
39 0.00000000 javaw.exe IOCTL_SERIAL_GET_BAUD_RATE USBSER000
39 0.00096996 SUCCESS
40 0.00000000 javaw.exe IOCTL_SERIAL_GET_LINE_CONTROL USBSER000
40 0.00096269 SUCCESS
41 0.00000000 javaw.exe IOCTL_SERIAL_GET_CHARS USBSER000
41 0.00000196 SUCCESS
42 0.00000000 javaw.exe IOCTL_SERIAL_GET_HANDFLOW USBSER000
42 0.00000196 SUCCESS
43 0.00000000 javaw.exe IOCTL_SERIAL_SET_BAUD_RATE USBSER000 Rate: 9600
43 0.00257966 SUCCESS
44 0.00000000 javaw.exe IOCTL_SERIAL_CLR_RTS USBSER000
44 0.00000223 SUCCESS
45 0.00000000 javaw.exe IOCTL_SERIAL_SET_DTR USBSER000
45 0.00034334 SUCCESS
46 0.00000000 javaw.exe IOCTL_SERIAL_SET_LINE_CONTROL USBSER000 StopBits: 1 Parity: NONE WordLength: 8
46 0.00198265 SUCCESS
47 0.00000000 javaw.exe IOCTL_SERIAL_SET_CHAR USBSER000 EOF:4 ERR:0 BRK:0 EVT:a XON:0 XOFF:0
47 0.00000196 SUCCESS
48 0.00000000 javaw.exe IOCTL_SERIAL_SET_HANDFLOW USBSER000 Shake:1 Replace:0 XonLimit:0 XoffLimit:0
48 0.00000196 SUCCESS
49 0.00000000 javaw.exe IOCTL_SERIAL_SET_TIMEOUTS USBSER000 RI:-1 RM:0 RC:0 WM:0 WC:0
49 0.00000223 SUCCESS
50 0.00000000 javaw.exe IOCTL_SERIAL_GET_COMMSTATUS USBSER000
50 0.00000363 SUCCESS
51 0.00000000 javaw.exe IOCTL_SERIAL_GET_COMMSTATUS USBSER000
51 0.00000196 SUCCESS
52 0.00000000 javaw.exe IOCTL_SERIAL_GET_COMMSTATUS USBSER000
52 0.00000196 SUCCESS
53 0.00000000 javaw.exe IOCTL_SERIAL_GET_COMMSTATUS USBSER000
53 0.00000168 SUCCESS
54 0.00000000 javaw.exe IOCTL_SERIAL_GET_COMMSTATUS USBSER000
54 0.00000196 SUCCESS
55 0.00000000 javaw.exe IOCTL_SERIAL_GET_MODEMSTATUS USBSER000
55 0.00000223 SUCCESS
56 0.00000000 javaw.exe IOCTL_SERIAL_GET_BAUD_RATE USBSER000
56 0.00068556 SUCCESS
57 0.00000000 javaw.exe IOCTL_SERIAL_GET_LINE_CONTROL USBSER000
57 0.00095459 SUCCESS
58 0.00000000 javaw.exe IOCTL_SERIAL_GET_CHARS USBSER000
58 0.00000223 SUCCESS
59 0.00000000 javaw.exe IOCTL_SERIAL_GET_HANDFLOW USBSER000
59 0.00000196 SUCCESS
60 0.00000000 javaw.exe IOCTL_SERIAL_GET_TIMEOUTS USBSER000
60 0.00000223 SUCCESS
61 0.00000000 javaw.exe IOCTL_SERIAL_GET_BAUD_RATE USBSER000
61 0.00093783 SUCCESS
62 0.00000000 javaw.exe IOCTL_SERIAL_GET_LINE_CONTROL USBSER000
62 0.00099845 SUCCESS
63 0.00000000 javaw.exe IOCTL_SERIAL_GET_CHARS USBSER000
63 0.00000251 SUCCESS
64 0.00000000 javaw.exe IOCTL_SERIAL_GET_HANDFLOW USBSER000
64 0.00000223 SUCCESS
65 0.00000000 javaw.exe IOCTL_SERIAL_GET_TIMEOUTS USBSER000
65 0.00000223 SUCCESS
66 0.00000000 javaw.exe IOCTL_SERIAL_GET_BAUD_RATE USBSER000
66 0.00091241 SUCCESS
67 0.00000000 javaw.exe IOCTL_SERIAL_GET_LINE_CONTROL USBSER000
67 0.00098337 SUCCESS
68 0.00000000 javaw.exe IOCTL_SERIAL_GET_CHARS USBSER000
68 0.00000196 SUCCESS
69 0.00000000 javaw.exe IOCTL_SERIAL_GET_HANDFLOW USBSER000
69 0.00000196 SUCCESS
70 0.00000000 javaw.exe IOCTL_SERIAL_SET_BAUD_RATE USBSER000 Rate: 9600
70 0.00198517 SUCCESS
71 0.00000000 javaw.exe IOCTL_SERIAL_CLR_RTS USBSER000
71 0.00000251 SUCCESS
72 0.00000000 javaw.exe IOCTL_SERIAL_SET_DTR USBSER000
72 0.00093699 SUCCESS
73 0.00000000 javaw.exe IOCTL_SERIAL_SET_LINE_CONTROL USBSER000 StopBits: 1 Parity: NONE WordLength: 8
73 0.00198265 SUCCESS
74 0.00000000 javaw.exe IOCTL_SERIAL_SET_CHAR USBSER000 EOF:4 ERR:0 BRK:0 EVT:a XON:0 XOFF:0
74 0.00000223 SUCCESS
75 0.00000000 javaw.exe IOCTL_SERIAL_SET_HANDFLOW USBSER000 Shake:1 Replace:0 XonLimit:0 XoffLimit:0
75 0.00000196 SUCCESS
76 0.00000000 javaw.exe IOCTL_SERIAL_SET_TIMEOUTS USBSER000 RI:-1 RM:0 RC:0 WM:0 WC:0
76 0.00000223 SUCCESS
77 0.00000000 javaw.exe IOCTL_SERIAL_GET_COMMSTATUS USBSER000
77 0.00000363 SUCCESS
78 0.00000000 javaw.exe IOCTL_SERIAL_GET_COMMSTATUS USBSER000
78 0.00000196 SUCCESS
79 0.00000000 javaw.exe IOCTL_SERIAL_GET_COMMSTATUS USBSER000
79 0.00000168 SUCCESS
80 0.00000000 javaw.exe IOCTL_SERIAL_GET_MODEMSTATUS USBSER000
80 0.00000223 SUCCESS
81 0.00000000 javaw.exe IOCTL_SERIAL_GET_COMMSTATUS USBSER000
81 0.00000196 SUCCESS
82 0.00000000 javaw.exe IOCTL_SERIAL_GET_COMMSTATUS USBSER000
82 0.00000196 SUCCESS
83 0.00000000 javaw.exe IOCTL_SERIAL_SET_WAIT_MASK USBSER000 Mask: RXCHAR
83 0.00000363 SUCCESS
84 0.00000000 javaw.exe IOCTL_SERIAL_GET_COMMSTATUS USBSER000
84 0.00000335 SUCCESS
85 0.00000000 javaw.exe IOCTL_SERIAL_GET_COMMSTATUS USBSER000
85 0.00000196 SUCCESS
86 0.00000000 javaw.exe IOCTL_SERIAL_GET_COMMSTATUS USBSER000
86 0.00000363 SUCCESS
87 0.00000000 javaw.exe IOCTL_SERIAL_GET_COMMSTATUS USBSER000
87 0.00000196 SUCCESS
88 0.00000000 javaw.exe IOCTL_SERIAL_GET_COMMSTATUS USBSER000
88 0.00000223 SUCCESS
89 0.00000000 javaw.exe IOCTL_SERIAL_GET_COMMSTATUS USBSER000
89 0.00000196 SUCCESS
90 0.00000000 javaw.exe IOCTL_SERIAL_GET_COMMSTATUS USBSER000
90 0.00000391 SUCCESS
91 0.00000000 javaw.exe IOCTL_SERIAL_GET_COMMSTATUS USBSER000
91 0.00000196 SUCCESS
92 0.00000000 javaw.exe IOCTL_SERIAL_GET_COMMSTATUS USBSER000
92 0.00000363 SUCCESS
93 0.00000000 javaw.exe IOCTL_SERIAL_GET_COMMSTATUS USBSER000
93 0.00000196 SUCCESS
94 0.00000000 javaw.exe IOCTL_SERIAL_GET_COMMSTATUS USBSER000
94 0.00000196 SUCCESS
95 0.00000000 javaw.exe IOCTL_SERIAL_GET_MODEMSTATUS USBSER000
95 0.00000196 SUCCESS
96 0.00000000 javaw.exe IOCTL_SERIAL_GET_COMMSTATUS USBSER000
96 0.00000196 SUCCESS
97 0.00000000 javaw.exe IOCTL_SERIAL_GET_COMMSTATUS USBSER000
97 0.00000196 SUCCESS
98 0.00000000 javaw.exe IOCTL_SERIAL_GET_COMMSTATUS USBSER000
98 0.00000196 SUCCESS
...
3349 0.00000000 javaw.exe IOCTL_SERIAL_GET_COMMSTATUS USBSER000
3349 0.00000223 SUCCESS
3350 0.00000000 javaw.exe IOCTL_SERIAL_GET_COMMSTATUS USBSER000
3350 0.00000419 SUCCESS
3351 0.00000000 javaw.exe IOCTL_SERIAL_GET_MODEMSTATUS USBSER000
3351 0.00000223 SUCCESS
3352 0.00000000 javaw.exe IOCTL_SERIAL_GET_COMMSTATUS USBSER000
3352 0.00000196 SUCCESS
3353 0.00000000 javaw.exe IOCTL_SERIAL_CLR_DTR USBSER000
3354 0.00000000 javaw.exe IOCTL_SERIAL_GET_COMMSTATUS USBSER000
3354 0.00000391 SUCCESS
3355 0.00000000 javaw.exe IOCTL_SERIAL_GET_COMMSTATUS USBSER000
3355 0.00000223 SUCCESS
3353 0.00130296 SUCCESS
3356 0.00000000 javaw.exe IOCTL_SERIAL_CLR_RTS USBSER000
3356 0.00000251 SUCCESS
3357 0.00000000 javaw.exe IOCTL_SERIAL_GET_COMMSTATUS USBSER000
3357 0.00000251 SUCCESS
3358 0.00000000 javaw.exe IOCTL_SERIAL_GET_MODEMSTATUS USBSER000
3358 0.00000223 SUCCESS
3359 0.00000000 javaw.exe IOCTL_SERIAL_GET_COMMSTATUS USBSER000
3359 0.00000196 SUCCESS
3360 0.00000000 javaw.exe IOCTL_SERIAL_CLR_DTR USBSER000
3360 0.00038999 SUCCESS
3361 0.00000000 javaw.exe IOCTL_SERIAL_CLR_RTS USBSER000
3361 0.00000196 SUCCESS
3362 0.00000000 javaw.exe IOCTL_SERIAL_GET_COMMSTATUS USBSER000
3362 0.00000223 SUCCESS
3363 0.00000000 javaw.exe IOCTL_SERIAL_GET_COMMSTATUS USBSER000
3363 0.00000196 SUCCESS
3364 0.00000000 javaw.exe IOCTL_SERIAL_GET_COMMSTATUS USBSER000
3364 0.00000391 SUCCESS
3365 0.00000000 javaw.exe IOCTL_SERIAL_GET_COMMSTATUS USBSER000
3365 0.00000196 SUCCESS
3366 0.00000000 javaw.exe IOCTL_SERIAL_GET_COMMSTATUS USBSER000
3366 0.00000391 SUCCESS
3367 0.00000000 javaw.exe IOCTL_SERIAL_GET_COMMSTATUS USBSER000
3367 0.00000223 SUCCESS
3368 0.00000000 javaw.exe IOCTL_SERIAL_GET_COMMSTATUS USBSER000
3368 0.00000196 SUCCESS
3369 0.00000000 javaw.exe IOCTL_SERIAL_GET_MODEMSTATUS USBSER000
3369 0.00000223 SUCCESS
3370 0.00000000 javaw.exe IOCTL_SERIAL_GET_COMMSTATUS USBSER000
3370 0.00000168 SUCCESS
3371 0.00000000 javaw.exe IOCTL_SERIAL_GET_COMMSTATUS USBSER000
3371 0.00000168 SUCCESS
3372 0.00000000 javaw.exe IRP_MJ_CLEANUP USBSER000
3372 0.00000419 SUCCESS
3373 0.00000000 javaw.exe IRP_MJ_CLOSE USBSER000
3373 0.00089956 SUCCESS
A tu je log jak komunikuje to moje:
3374 0.00000000 Serial.vshost. IRP_MJ_CREATE USBSER000 Options: Open
3374 0.00002905 SUCCESS
3375 0.00000000 Serial.vshost. IOCTL_SERIAL_GET_PROPERTIES USBSER000
3375 0.00000335 SUCCESS
3376 0.00000000 Serial.vshost. IOCTL_SERIAL_GET_MODEMSTATUS USBSER000
3376 0.00000223 SUCCESS
3377 0.00000000 Serial.vshost. IOCTL_SERIAL_GET_BAUD_RATE USBSER000
3377 0.00049867 SUCCESS
3378 0.00000000 Serial.vshost. IOCTL_SERIAL_GET_LINE_CONTROL USBSER000
3378 0.00092023 SUCCESS
3379 0.00000000 Serial.vshost. IOCTL_SERIAL_GET_CHARS USBSER000
3379 0.00000251 SUCCESS
3380 0.00000000 Serial.vshost. IOCTL_SERIAL_GET_HANDFLOW USBSER000
3380 0.00000223 SUCCESS
3381 0.00000000 Serial.vshost. IOCTL_SERIAL_GET_BAUD_RATE USBSER000
3381 0.00076686 SUCCESS
3382 0.00000000 Serial.vshost. IOCTL_SERIAL_GET_LINE_CONTROL USBSER000
3382 0.00106159 SUCCESS
3383 0.00000000 Serial.vshost. IOCTL_SERIAL_GET_CHARS USBSER000
3383 0.00000223 SUCCESS
3384 0.00000000 Serial.vshost. IOCTL_SERIAL_GET_HANDFLOW USBSER000
3384 0.00000196 SUCCESS
3385 0.00000000 Serial.vshost. IOCTL_SERIAL_SET_BAUD_RATE USBSER000 Rate: 9600
3385 0.00187873 SUCCESS
3386 0.00000000 Serial.vshost. IOCTL_SERIAL_CLR_RTS USBSER000
3386 0.00000223 SUCCESS
3387 0.00000000 Serial.vshost. IOCTL_SERIAL_CLR_DTR USBSER000
3387 0.00096604 SUCCESS
3388 0.00000000 Serial.vshost. IOCTL_SERIAL_SET_LINE_CONTROL USBSER000 StopBits: 1 Parity: NONE WordLength: 8
3388 0.00199551 SUCCESS
3389 0.00000000 Serial.vshost. IOCTL_SERIAL_SET_CHAR USBSER000 EOF:1a ERR:0 BRK:0 EVT:1a XON:11 XOFF:13
3389 0.00000251 SUCCESS
3390 0.00000000 Serial.vshost. IOCTL_SERIAL_SET_HANDFLOW USBSER000 Shake:0 Replace:0 XonLimit:4096 XoffLimit:4096
3390 0.00000196 SUCCESS
3391 0.00000000 Serial.vshost. IOCTL_SERIAL_GET_BAUD_RATE USBSER000
3391 0.00094118 SUCCESS
3392 0.00000000 Serial.vshost. IOCTL_SERIAL_GET_LINE_CONTROL USBSER000
3392 0.00098560 SUCCESS
3393 0.00000000 Serial.vshost. IOCTL_SERIAL_GET_CHARS USBSER000
3393 0.00000196 SUCCESS
3394 0.00000000 Serial.vshost. IOCTL_SERIAL_GET_HANDFLOW USBSER000
3394 0.00000196 SUCCESS
3395 0.00000000 Serial.vshost. IOCTL_SERIAL_SET_BAUD_RATE USBSER000 Rate: 9600
3395 0.00196645 SUCCESS
3396 0.00000000 Serial.vshost. IOCTL_SERIAL_CLR_RTS USBSER000
3396 0.00000196 SUCCESS
3397 0.00000000 Serial.vshost. IOCTL_SERIAL_CLR_DTR USBSER000
3397 0.00097219 SUCCESS
3398 0.00000000 Serial.vshost. IOCTL_SERIAL_SET_LINE_CONTROL USBSER000 StopBits: 1 Parity: NONE WordLength: 8
3398 0.00198014 SUCCESS
3399 0.00000000 Serial.vshost. IOCTL_SERIAL_SET_CHAR USBSER000 EOF:1a ERR:0 BRK:0 EVT:1a XON:11 XOFF:13
3399 0.00000223 SUCCESS
3400 0.00000000 Serial.vshost. IOCTL_SERIAL_SET_HANDFLOW USBSER000 Shake:0 Replace:0 XonLimit:4096 XoffLimit:4096
3400 0.00000168 SUCCESS
3401 0.00000000 Serial.vshost. IOCTL_SERIAL_CLR_DTR USBSER000
3401 0.00089676 SUCCESS
3402 0.00000000 Serial.vshost. IOCTL_SERIAL_SET_TIMEOUTS USBSER000 RI:-1 RM:-1 RC:-2 WM:0 WC:0
3402 0.00000279 SUCCESS
3403 0.00000000 Serial.vshost. IOCTL_SERIAL_SET_WAIT_MASK USBSER000 Mask: RXCHAR RXFLAG CTS DSR RLSD BRK ERR RING
3403 0.00000391 SUCCESS
3404 0.00000000 Serial.vshost. IOCTL_SERIAL_SET_QUEUE_SIZE USBSER000 InSize: 4096 OutSize: 2048
3404 0.00000307 SUCCESS
3405 0.00000000 Serial.vshost. IOCTL_SERIAL_WAIT_ON_MASK USBSER000
3406 0.00000000 Serial.vshost. IRP_MJ_WRITE USBSER000 Length 4: ahoj
3406 0.00082999 SUCCESS
3407 0.00000000 Serial.vshost. IRP_MJ_FLUSH_BUFFERS USBSER000
3407 0.00000307 SUCCESS
3408 0.00000000 Serial.vshost. IOCTL_SERIAL_SET_WAIT_MASK USBSER000 Mask:
3405 4.66468615 SUCCESS
3408 0.00001760 SUCCESS
3409 0.00000000 Serial.vshost. IOCTL_SERIAL_CLR_DTR USBSER000
3409 0.00036625 SUCCESS
3410 0.00000000 Serial.vshost. IRP_MJ_FLUSH_BUFFERS USBSER000
3410 0.00000196 SUCCESS
3411 0.00000000 Serial.vshost. IOCTL_SERIAL_PURGE USBSER000 Purge: RXABORT RXCLEAR
3411 0.00000391 SUCCESS
3412 0.00000000 Serial.vshost. IOCTL_SERIAL_PURGE USBSER000 Purge: TXABORT TXCLEAR
3412 0.00000196 SUCCESS
3413 0.00000000 Serial.vshost. IRP_MJ_CLEANUP USBSER000
3413 0.00000251 SUCCESS
3414 0.00000000 Serial.vshost. IRP_MJ_CLOSE USBSER000
3414 0.00106522 SUCCESS
Zdravím, v MS Visual C# jsem použil komponentu serialPort na komunikaci s Arduinem, ve kterém mám zatím kód, aby se mi na displeji zobrazilo "čekám na spojení" dokud to spojení nenastane a když se spojení ukončí, tak to zase píše to samé. Když otevřu Serial monitor, což je součást programu přes který se to programuje, tak to funguje jak má (když je serial monitor zapnutý, tak na displeji není nic), ale přes to co jsem udělal v MS Visual C# mi to nefunguje Když zmáčku tlačítko Připojit mi akorát blikne dioda RX (recive) a na displeji je stále "čekám na spojení". Když pak zmáčknu tlačítko Odpojit, udělá to to samé.
public void refreshPorts(){
List<String> tList = new List<String>();
comboBox1.Items.Clear();
string[] ports = System.IO.Ports.SerialPort.GetPortNames();
foreach (string s in ports)
{
tList.Add(s);
}
tList.Sort();
comboBox1.Items.AddRange(tList.ToArray());
comboBox1.SelectedIndex = 0;
}
private void Form1_Load(object sender, EventArgs e)
{
refreshPorts();
}
private void comboBox1_MouseClick(object sender, MouseEventArgs e)
{
refreshPorts();
}
//tlačítko připojit
private void button2_Click(object sender, EventArgs e)
{
serialPort1.PortName = comboBox1.Text;
serialPort1.Open();
serialPort1.Write("ahoj");
button2.Enabled = false;
button3.Enabled = true;
comboBox1.Enabled = false;
}
//tlačítko odpojit
private void button3_Click(object sender, EventArgs e)
{
serialPort1.Close();
button3.Enabled = false;
button2.Enabled = true;
comboBox1.Enabled = true;
}
BaudRate mám nastavený v Properties. Nevěděl by někdo jak zařídit, aby se spojení "udrželo"? Je možné, že jsem někde něco nenastavil či tak něco. O tohle se zajímám poprvé. Díky