Discussion:
[ros-bugs] [jira] (CORE-12892) CreateFile and serial port COM1
visualprog (JIRA)
2017-03-05 17:09:35 UTC
Permalink
visualprog created CORE-12892:
---------------------------------

Summary: CreateFile and serial port COM1
Key: CORE-12892
URL: https://jira.reactos.org/browse/CORE-12892
Project: Core ReactOS
Issue Type: Bug
Reporter: visualprog
Assignee: Bug Zilla
Attachments: COMTEST.JPG

Hello
How to use CreateFile for open serial port COM1 ?
I created the exe program for testing, see the picture and
GetLastError() return 2, ERROR_FILE_NOT_FOUND
OS version 0.4.3

Thank
PS:COM1 driver will be updated on the Device manager.
-----------------------------------------
hCom = CreateFile(
"COM1",
GENERIC_READ| GENERIC_WRITE,
0, /* comm devices must be opened w/exclusive-access */
NULL, /* no security attrs */
OPEN_EXISTING, /* comm devices must use OPEN_EXISTING */
0, /* not overlapped I/O FILE_FLAG_OVERLAPPED*/
NULL /* hTemplate must be NULL for comm devices */
);
if( hCom==INVALID_HANDLE_VALUE)
eFilerr = GetLastError( );


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
Mark Jansen (JIRA)
2017-03-05 17:11:23 UTC
Permalink
[ https://jira.reactos.org/browse/CORE-12892?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=90013#comment-90013 ]

Mark Jansen commented on CORE-12892:
------------------------------------

If reactos has debugging enabled, that means the COM1 is not available to use for applications.
Post by visualprog (JIRA)
CreateFile and serial port COM1
-------------------------------
Key: CORE-12892
URL: https://jira.reactos.org/browse/CORE-12892
Project: Core ReactOS
Issue Type: Bug
Reporter: visualprog
Assignee: Bug Zilla
Attachments: COMTEST.JPG
Hello
How to use CreateFile for open serial port COM1 ?
I created the exe program for testing, see the picture and
GetLastError() return 2, ERROR_FILE_NOT_FOUND
OS version 0.4.3
Thank
PS:COM1 driver will be updated on the Device manager.
-----------------------------------------
hCom = CreateFile(
"COM1",
GENERIC_READ| GENERIC_WRITE,
0, /* comm devices must be opened w/exclusive-access */
NULL, /* no security attrs */
OPEN_EXISTING, /* comm devices must use OPEN_EXISTING */
0, /* not overlapped I/O FILE_FLAG_OVERLAPPED*/
NULL /* hTemplate must be NULL for comm devices */
);
if( hCom==INVALID_HANDLE_VALUE)
eFilerr = GetLastError( );
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
visualprog (JIRA)
2017-03-06 17:12:23 UTC
Permalink
[ https://jira.reactos.org/browse/CORE-12892?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=90072#comment-90072 ]

visualprog commented on CORE-12892:
-----------------------------------

Thank.
No, I started ROs 0.4.3 (0.4.4) in normall mode.
Post by visualprog (JIRA)
CreateFile and serial port COM1
-------------------------------
Key: CORE-12892
URL: https://jira.reactos.org/browse/CORE-12892
Project: Core ReactOS
Issue Type: Bug
Reporter: visualprog
Assignee: Bug Zilla
Attachments: COMTEST.JPG
Hello
How to use CreateFile for open serial port COM1 ?
I created the exe program for testing, see the picture and
GetLastError() return 2, ERROR_FILE_NOT_FOUND
OS version 0.4.3
Thank
PS:COM1 driver will be updated on the Device manager.
-----------------------------------------
hCom = CreateFile(
"COM1",
GENERIC_READ| GENERIC_WRITE,
0, /* comm devices must be opened w/exclusive-access */
NULL, /* no security attrs */
OPEN_EXISTING, /* comm devices must use OPEN_EXISTING */
0, /* not overlapped I/O FILE_FLAG_OVERLAPPED*/
NULL /* hTemplate must be NULL for comm devices */
);
if( hCom==INVALID_HANDLE_VALUE)
eFilerr = GetLastError( );
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
Mark Jansen (JIRA)
2017-03-06 18:18:37 UTC
Permalink
[ https://jira.reactos.org/browse/CORE-12892?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=90075#comment-90075 ]

Mark Jansen commented on CORE-12892:
------------------------------------

And on windows this works?
Post by visualprog (JIRA)
CreateFile and serial port COM1
-------------------------------
Key: CORE-12892
URL: https://jira.reactos.org/browse/CORE-12892
Project: Core ReactOS
Issue Type: Bug
Reporter: visualprog
Assignee: Bug Zilla
Attachments: COMTEST.JPG
Hello
How to use CreateFile for open serial port COM1 ?
I created the exe program for testing, see the picture and
GetLastError() return 2, ERROR_FILE_NOT_FOUND
OS version 0.4.3
Thank
PS:COM1 driver will be updated on the Device manager.
-----------------------------------------
hCom = CreateFile(
"COM1",
GENERIC_READ| GENERIC_WRITE,
0, /* comm devices must be opened w/exclusive-access */
NULL, /* no security attrs */
OPEN_EXISTING, /* comm devices must use OPEN_EXISTING */
0, /* not overlapped I/O FILE_FLAG_OVERLAPPED*/
NULL /* hTemplate must be NULL for comm devices */
);
if( hCom==INVALID_HANDLE_VALUE)
eFilerr = GetLastError( );
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
visualprog (JIRA)
2017-03-06 18:52:23 UTC
Permalink
[ https://jira.reactos.org/browse/CORE-12892?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=90082#comment-90082 ]

visualprog commented on CORE-12892:
-----------------------------------

Yes,
I have two HDD , one for Windows and one for ReactOs.
Post by visualprog (JIRA)
CreateFile and serial port COM1
-------------------------------
Key: CORE-12892
URL: https://jira.reactos.org/browse/CORE-12892
Project: Core ReactOS
Issue Type: Bug
Reporter: visualprog
Assignee: Bug Zilla
Attachments: COMTEST.JPG
Hello
How to use CreateFile for open serial port COM1 ?
I created the exe program for testing, see the picture and
GetLastError() return 2, ERROR_FILE_NOT_FOUND
OS version 0.4.3
Thank
PS:COM1 driver will be updated on the Device manager.
-----------------------------------------
hCom = CreateFile(
"COM1",
GENERIC_READ| GENERIC_WRITE,
0, /* comm devices must be opened w/exclusive-access */
NULL, /* no security attrs */
OPEN_EXISTING, /* comm devices must use OPEN_EXISTING */
0, /* not overlapped I/O FILE_FLAG_OVERLAPPED*/
NULL /* hTemplate must be NULL for comm devices */
);
if( hCom==INVALID_HANDLE_VALUE)
eFilerr = GetLastError( );
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
Thomas Faber (JIRA)
2017-03-06 20:06:23 UTC
Permalink
[ https://jira.reactos.org/browse/CORE-12892?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=90084#comment-90084 ]

Thomas Faber commented on CORE-12892:
-------------------------------------

Does \\.\COM1 behave any differently
Post by visualprog (JIRA)
CreateFile and serial port COM1
-------------------------------
Key: CORE-12892
URL: https://jira.reactos.org/browse/CORE-12892
Project: Core ReactOS
Issue Type: Bug
Reporter: visualprog
Assignee: Bug Zilla
Attachments: COMTEST.JPG
Hello
How to use CreateFile for open serial port COM1 ?
I created the exe program for testing, see the picture and
GetLastError() return 2, ERROR_FILE_NOT_FOUND
OS version 0.4.3
Thank
PS:COM1 driver will be updated on the Device manager.
-----------------------------------------
hCom = CreateFile(
"COM1",
GENERIC_READ| GENERIC_WRITE,
0, /* comm devices must be opened w/exclusive-access */
NULL, /* no security attrs */
OPEN_EXISTING, /* comm devices must use OPEN_EXISTING */
0, /* not overlapped I/O FILE_FLAG_OVERLAPPED*/
NULL /* hTemplate must be NULL for comm devices */
);
if( hCom==INVALID_HANDLE_VALUE)
eFilerr = GetLastError( );
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
visualprog (JIRA)
2017-03-07 05:39:23 UTC
Permalink
[ https://jira.reactos.org/browse/CORE-12892?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=90099#comment-90099 ]

visualprog commented on CORE-12892:
-----------------------------------

Yes, I tested :
COM1 GetLastError() return 2
\\.\COM1 GetLastError() return 2
\\\\.\\COM1 GetLastError() return 3
Post by visualprog (JIRA)
CreateFile and serial port COM1
-------------------------------
Key: CORE-12892
URL: https://jira.reactos.org/browse/CORE-12892
Project: Core ReactOS
Issue Type: Bug
Reporter: visualprog
Assignee: Bug Zilla
Attachments: COMTEST.JPG
Hello
How to use CreateFile for open serial port COM1 ?
I created the exe program for testing, see the picture and
GetLastError() return 2, ERROR_FILE_NOT_FOUND
OS version 0.4.3
Thank
PS:COM1 driver will be updated on the Device manager.
-----------------------------------------
hCom = CreateFile(
"COM1",
GENERIC_READ| GENERIC_WRITE,
0, /* comm devices must be opened w/exclusive-access */
NULL, /* no security attrs */
OPEN_EXISTING, /* comm devices must use OPEN_EXISTING */
0, /* not overlapped I/O FILE_FLAG_OVERLAPPED*/
NULL /* hTemplate must be NULL for comm devices */
);
if( hCom==INVALID_HANDLE_VALUE)
eFilerr = GetLastError( );
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
visualprog (JIRA)
2017-03-18 19:04:00 UTC
Permalink
[ https://jira.reactos.org/browse/CORE-12892?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=90820#comment-90820 ]

visualprog commented on CORE-12892:
-----------------------------------

Hi

in the virtual machine (VBox, Xen server) it works.
Post by visualprog (JIRA)
CreateFile and serial port COM1
-------------------------------
Key: CORE-12892
URL: https://jira.reactos.org/browse/CORE-12892
Project: Core ReactOS
Issue Type: Bug
Reporter: visualprog
Assignee: Bug Zilla
Attachments: COMTEST.JPG
Hello
How to use CreateFile for open serial port COM1 ?
I created the exe program for testing, see the picture and
GetLastError() return 2, ERROR_FILE_NOT_FOUND
OS version 0.4.3
Thank
PS:COM1 driver will be updated on the Device manager.
-----------------------------------------
hCom = CreateFile(
"COM1",
GENERIC_READ| GENERIC_WRITE,
0, /* comm devices must be opened w/exclusive-access */
NULL, /* no security attrs */
OPEN_EXISTING, /* comm devices must use OPEN_EXISTING */
0, /* not overlapped I/O FILE_FLAG_OVERLAPPED*/
NULL /* hTemplate must be NULL for comm devices */
);
if( hCom==INVALID_HANDLE_VALUE)
eFilerr = GetLastError( );
--
This message was sent by Atlassian JIRA
(v7.3.2#73013)
visualprog (JIRA)
2017-03-29 08:20:00 UTC
Permalink
[ https://jira.reactos.org/browse/CORE-12892?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=91153#comment-91153 ]

visualprog commented on CORE-12892:
-----------------------------------

Hello

I disabled the COM port on board, use an external I/O ISA card, but the problem is the same. 
Post by visualprog (JIRA)
CreateFile and serial port COM1
-------------------------------
Key: CORE-12892
URL: https://jira.reactos.org/browse/CORE-12892
Project: Core ReactOS
Issue Type: Bug
Reporter: visualprog
Assignee: Bug Zilla
Attachments: COMTEST.JPG
Hello
How to use CreateFile for open serial port COM1 ?
I created the exe program for testing, see the picture and
GetLastError() return 2, ERROR_FILE_NOT_FOUND
OS version 0.4.3
Thank
PS:COM1 driver will be updated on the Device manager.
-----------------------------------------
hCom = CreateFile(
"COM1",
GENERIC_READ| GENERIC_WRITE,
0, /* comm devices must be opened w/exclusive-access */
NULL, /* no security attrs */
OPEN_EXISTING, /* comm devices must use OPEN_EXISTING */
0, /* not overlapped I/O FILE_FLAG_OVERLAPPED*/
NULL /* hTemplate must be NULL for comm devices */
);
if( hCom==INVALID_HANDLE_VALUE)
eFilerr = GetLastError( );
--
This message was sent by Atlassian JIRA
(v7.3.2#73013)
visualprog (JIRA)
2017-05-04 07:50:00 UTC
Permalink
[ https://jira.reactos.org/browse/CORE-12892?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=92705#comment-92705 ]

visualprog commented on CORE-12892:
-----------------------------------

Hi

I tested under Linux Wine Slacko, it works.
Post by visualprog (JIRA)
CreateFile and serial port COM1
-------------------------------
Key: CORE-12892
URL: https://jira.reactos.org/browse/CORE-12892
Project: Core ReactOS
Issue Type: Bug
Reporter: visualprog
Assignee: Bug Zilla
Attachments: COMTEST.JPG
Hello
How to use CreateFile for open serial port COM1 ?
I created the exe program for testing, see the picture and
GetLastError() return 2, ERROR_FILE_NOT_FOUND
OS version 0.4.3
Thank
PS:COM1 driver will be updated on the Device manager.
-----------------------------------------
hCom = CreateFile(
"COM1",
GENERIC_READ| GENERIC_WRITE,
0, /* comm devices must be opened w/exclusive-access */
NULL, /* no security attrs */
OPEN_EXISTING, /* comm devices must use OPEN_EXISTING */
0, /* not overlapped I/O FILE_FLAG_OVERLAPPED*/
NULL /* hTemplate must be NULL for comm devices */
);
if( hCom==INVALID_HANDLE_VALUE)
eFilerr = GetLastError( );
--
This message was sent by Atlassian JIRA
(v7.3.2#73013)
HBelusca (JIRA)
2017-05-04 12:53:00 UTC
Permalink
[ https://jira.reactos.org/browse/CORE-12892?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

HBelusca updated CORE-12892:
----------------------------
Description:
Hello
How to use CreateFile for open serial port COM1 ?
I created the exe program for testing, see the picture and
GetLastError() return 2, ERROR_FILE_NOT_FOUND
OS version 0.4.3

Thank
PS:COM1 driver will be updated on the Device manager.
-----------------------------------------
{code:c}
hCom = CreateFile(
"COM1",
GENERIC_READ| GENERIC_WRITE,
0, /* comm devices must be opened w/exclusive-access */
NULL, /* no security attrs */
OPEN_EXISTING, /* comm devices must use OPEN_EXISTING */
0, /* not overlapped I/O FILE_FLAG_OVERLAPPED*/
NULL /* hTemplate must be NULL for comm devices */
);
if( hCom==INVALID_HANDLE_VALUE)
eFilerr = GetLastError( );
{code}

was:
Hello
How to use CreateFile for open serial port COM1 ?
I created the exe program for testing, see the picture and
GetLastError() return 2, ERROR_FILE_NOT_FOUND
OS version 0.4.3

Thank
PS:COM1 driver will be updated on the Device manager.
-----------------------------------------
hCom = CreateFile(
"COM1",
GENERIC_READ| GENERIC_WRITE,
0, /* comm devices must be opened w/exclusive-access */
NULL, /* no security attrs */
OPEN_EXISTING, /* comm devices must use OPEN_EXISTING */
0, /* not overlapped I/O FILE_FLAG_OVERLAPPED*/
NULL /* hTemplate must be NULL for comm devices */
);
if( hCom==INVALID_HANDLE_VALUE)
eFilerr = GetLastError( );
Post by visualprog (JIRA)
CreateFile and serial port COM1
-------------------------------
Key: CORE-12892
URL: https://jira.reactos.org/browse/CORE-12892
Project: Core ReactOS
Issue Type: Bug
Reporter: visualprog
Assignee: Bug Zilla
Attachments: COMTEST.JPG
Hello
How to use CreateFile for open serial port COM1 ?
I created the exe program for testing, see the picture and
GetLastError() return 2, ERROR_FILE_NOT_FOUND
OS version 0.4.3
Thank
PS:COM1 driver will be updated on the Device manager.
-----------------------------------------
{code:c}
hCom = CreateFile(
"COM1",
GENERIC_READ| GENERIC_WRITE,
0, /* comm devices must be opened w/exclusive-access */
NULL, /* no security attrs */
OPEN_EXISTING, /* comm devices must use OPEN_EXISTING */
0, /* not overlapped I/O FILE_FLAG_OVERLAPPED*/
NULL /* hTemplate must be NULL for comm devices */
);
if( hCom==INVALID_HANDLE_VALUE)
eFilerr = GetLastError( );
{code}
--
This message was sent by Atlassian JIRA
(v7.3.2#73013)
visualprog (JIRA)
2017-07-14 05:22:01 UTC
Permalink
[ https://jira.reactos.org/browse/CORE-12892?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=95483#comment-95483 ]

visualprog commented on CORE-12892:
-----------------------------------

Hi

I tested in version 0.4.5 ,  but the problem is the same. (ERROR_FILE_NOT_FOUND)
Post by visualprog (JIRA)
CreateFile and serial port COM1
-------------------------------
Key: CORE-12892
URL: https://jira.reactos.org/browse/CORE-12892
Project: Core ReactOS
Issue Type: Bug
Reporter: visualprog
Assignee: Bug Zilla
Attachments: COMTEST.JPG
Hello
How to use CreateFile for open serial port COM1 ?
I created the exe program for testing, see the picture and
GetLastError() return 2, ERROR_FILE_NOT_FOUND
OS version 0.4.3
Thank
PS:COM1 driver will be updated on the Device manager.
-----------------------------------------
{code:c}
hCom = CreateFile(
"COM1",
GENERIC_READ| GENERIC_WRITE,
0, /* comm devices must be opened w/exclusive-access */
NULL, /* no security attrs */
OPEN_EXISTING, /* comm devices must use OPEN_EXISTING */
0, /* not overlapped I/O FILE_FLAG_OVERLAPPED*/
NULL /* hTemplate must be NULL for comm devices */
);
if( hCom==INVALID_HANDLE_VALUE)
eFilerr = GetLastError( );
{code}
--
This message was sent by Atlassian JIRA
(v7.3.2#73013)
visualprog (JIRA)
2018-05-06 18:05:00 UTC
Permalink
[ https://jira.reactos.org/browse/CORE-12892?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=103826#comment-103826 ]

visualprog commented on CORE-12892:
-----------------------------------

Hi

I test more ReactOS systems 0.4.3 - 0.4.8,
only in ReactOS 0.4.9 LiveCD Safe Mode is working and my test read/write to COM1 is ok.
New : ReactOS 0.4.8 LiveCD Safe Mode - COM1 !COMTEST.JPG|thumbnail! is working
How to run the port on boot CD ?
Thank you, very very mutch

Pavel
Post by visualprog (JIRA)
CreateFile and serial port COM1
-------------------------------
Key: CORE-12892
URL: https://jira.reactos.org/browse/CORE-12892
Project: Core ReactOS
Issue Type: Bug
Reporter: visualprog
Assignee: Bug Zilla
Attachments: COMTEST.JPG
Hello
How to use CreateFile for open serial port COM1 ?
I created the exe program for testing, see the picture and
GetLastError() return 2, ERROR_FILE_NOT_FOUND
OS version 0.4.3
Thank
PS:COM1 driver will be updated on the Device manager.
-----------------------------------------
{code:c}
hCom = CreateFile(
"COM1",
GENERIC_READ| GENERIC_WRITE,
0, /* comm devices must be opened w/exclusive-access */
NULL, /* no security attrs */
OPEN_EXISTING, /* comm devices must use OPEN_EXISTING */
0, /* not overlapped I/O FILE_FLAG_OVERLAPPED*/
NULL /* hTemplate must be NULL for comm devices */
);
if( hCom==INVALID_HANDLE_VALUE)
eFilerr = GetLastError( );
{code}
--
This message was sent by Atlassian JIRA
(v7.3.2#73013)
visualprog (JIRA)
2018-05-06 18:05:00 UTC
Permalink
[ https://jira.reactos.org/browse/CORE-12892?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

visualprog updated CORE-12892:
------------------------------
Comment: was deleted

(was: Hi

I test more ReactOS systems 0.4.3 - 0.4.8,
only in ReactOS 0.4.9 LiveCD Safe Mode is working and my test read/write to COM1 is ok.
New : ReactOS 0.4.8 LiveCD Safe Mode - COM1 !COMTEST.JPG|thumbnail! is working
How to run the port on boot CD ?
Thank you, very very mutch

Pavel)
Post by visualprog (JIRA)
CreateFile and serial port COM1
-------------------------------
Key: CORE-12892
URL: https://jira.reactos.org/browse/CORE-12892
Project: Core ReactOS
Issue Type: Bug
Reporter: visualprog
Assignee: Bug Zilla
Attachments: COMTEST.JPG
Hello
How to use CreateFile for open serial port COM1 ?
I created the exe program for testing, see the picture and
GetLastError() return 2, ERROR_FILE_NOT_FOUND
OS version 0.4.3
Thank
PS:COM1 driver will be updated on the Device manager.
-----------------------------------------
{code:c}
hCom = CreateFile(
"COM1",
GENERIC_READ| GENERIC_WRITE,
0, /* comm devices must be opened w/exclusive-access */
NULL, /* no security attrs */
OPEN_EXISTING, /* comm devices must use OPEN_EXISTING */
0, /* not overlapped I/O FILE_FLAG_OVERLAPPED*/
NULL /* hTemplate must be NULL for comm devices */
);
if( hCom==INVALID_HANDLE_VALUE)
eFilerr = GetLastError( );
{code}
--
This message was sent by Atlassian JIRA
(v7.3.2#73013)
visualprog (JIRA)
2018-05-06 18:06:01 UTC
Permalink
[ https://jira.reactos.org/browse/CORE-12892?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=103827#comment-103827 ]

visualprog commented on CORE-12892:
-----------------------------------

Hi
I test more ReactOS systems 0.4.3 - 0.4.8,
only in ReactOS 0.4.9 LiveCD Safe Mode is working and my test read/write to COM1 is ok.
New : ReactOS 0.4.8 LiveCD Safe Mode - COM1 is working
How to run the port on boot CD ?
Thank you, very very mutch
Pavel
Post by visualprog (JIRA)
CreateFile and serial port COM1
-------------------------------
Key: CORE-12892
URL: https://jira.reactos.org/browse/CORE-12892
Project: Core ReactOS
Issue Type: Bug
Reporter: visualprog
Assignee: Bug Zilla
Attachments: COMTEST.JPG
Hello
How to use CreateFile for open serial port COM1 ?
I created the exe program for testing, see the picture and
GetLastError() return 2, ERROR_FILE_NOT_FOUND
OS version 0.4.3
Thank
PS:COM1 driver will be updated on the Device manager.
-----------------------------------------
{code:c}
hCom = CreateFile(
"COM1",
GENERIC_READ| GENERIC_WRITE,
0, /* comm devices must be opened w/exclusive-access */
NULL, /* no security attrs */
OPEN_EXISTING, /* comm devices must use OPEN_EXISTING */
0, /* not overlapped I/O FILE_FLAG_OVERLAPPED*/
NULL /* hTemplate must be NULL for comm devices */
);
if( hCom==INVALID_HANDLE_VALUE)
eFilerr = GetLastError( );
{code}
--
This message was sent by Atlassian JIRA
(v7.3.2#73013)
visualprog (JIRA)
2018-05-06 18:09:00 UTC
Permalink
[ https://jira.reactos.org/browse/CORE-12892?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

visualprog updated CORE-12892:
------------------------------
Attachment: COM1_ok.jpg
Post by visualprog (JIRA)
CreateFile and serial port COM1
-------------------------------
Key: CORE-12892
URL: https://jira.reactos.org/browse/CORE-12892
Project: Core ReactOS
Issue Type: Bug
Reporter: visualprog
Assignee: Bug Zilla
Attachments: COM1_ok.jpg, COMTEST.JPG
Hello
How to use CreateFile for open serial port COM1 ?
I created the exe program for testing, see the picture and
GetLastError() return 2, ERROR_FILE_NOT_FOUND
OS version 0.4.3
Thank
PS:COM1 driver will be updated on the Device manager.
-----------------------------------------
{code:c}
hCom = CreateFile(
"COM1",
GENERIC_READ| GENERIC_WRITE,
0, /* comm devices must be opened w/exclusive-access */
NULL, /* no security attrs */
OPEN_EXISTING, /* comm devices must use OPEN_EXISTING */
0, /* not overlapped I/O FILE_FLAG_OVERLAPPED*/
NULL /* hTemplate must be NULL for comm devices */
);
if( hCom==INVALID_HANDLE_VALUE)
eFilerr = GetLastError( );
{code}
--
This message was sent by Atlassian JIRA
(v7.3.2#73013)
visualprog (JIRA)
2018-05-06 18:09:01 UTC
Permalink
[ https://jira.reactos.org/browse/CORE-12892?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=103828#comment-103828 ]

visualprog commented on CORE-12892:
-----------------------------------

!COM1_ok.jpg|thumbnail!
Post by visualprog (JIRA)
CreateFile and serial port COM1
-------------------------------
Key: CORE-12892
URL: https://jira.reactos.org/browse/CORE-12892
Project: Core ReactOS
Issue Type: Bug
Reporter: visualprog
Assignee: Bug Zilla
Attachments: COM1_ok.jpg, COMTEST.JPG
Hello
How to use CreateFile for open serial port COM1 ?
I created the exe program for testing, see the picture and
GetLastError() return 2, ERROR_FILE_NOT_FOUND
OS version 0.4.3
Thank
PS:COM1 driver will be updated on the Device manager.
-----------------------------------------
{code:c}
hCom = CreateFile(
"COM1",
GENERIC_READ| GENERIC_WRITE,
0, /* comm devices must be opened w/exclusive-access */
NULL, /* no security attrs */
OPEN_EXISTING, /* comm devices must use OPEN_EXISTING */
0, /* not overlapped I/O FILE_FLAG_OVERLAPPED*/
NULL /* hTemplate must be NULL for comm devices */
);
if( hCom==INVALID_HANDLE_VALUE)
eFilerr = GetLastError( );
{code}
--
This message was sent by Atlassian JIRA
(v7.3.2#73013)
visualprog (JIRA)
2018-05-06 18:13:00 UTC
Permalink
[ https://jira.reactos.org/browse/CORE-12892?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

visualprog updated CORE-12892:
------------------------------
Attachment: (was: COMTEST.JPG)
Post by visualprog (JIRA)
CreateFile and serial port COM1
-------------------------------
Key: CORE-12892
URL: https://jira.reactos.org/browse/CORE-12892
Project: Core ReactOS
Issue Type: Bug
Reporter: visualprog
Assignee: Bug Zilla
Attachments: COM1_ok.jpg
Hello
How to use CreateFile for open serial port COM1 ?
I created the exe program for testing, see the picture and
GetLastError() return 2, ERROR_FILE_NOT_FOUND
OS version 0.4.3
Thank
PS:COM1 driver will be updated on the Device manager.
-----------------------------------------
{code:c}
hCom = CreateFile(
"COM1",
GENERIC_READ| GENERIC_WRITE,
0, /* comm devices must be opened w/exclusive-access */
NULL, /* no security attrs */
OPEN_EXISTING, /* comm devices must use OPEN_EXISTING */
0, /* not overlapped I/O FILE_FLAG_OVERLAPPED*/
NULL /* hTemplate must be NULL for comm devices */
);
if( hCom==INVALID_HANDLE_VALUE)
eFilerr = GetLastError( );
{code}
--
This message was sent by Atlassian JIRA
(v7.3.2#73013)
Serge Gautherie (JIRA)
2018-05-07 14:22:00 UTC
Permalink
[ https://jira.reactos.org/browse/CORE-12892?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=103862#comment-103862 ]

Serge Gautherie commented on CORE-12892:
----------------------------------------

[~visualprog], ROSBE-132 and CORE-14596 are already duplicates/clones of CORE-14595. No need to link them here too.
Post by visualprog (JIRA)
CreateFile and serial port COM1
-------------------------------
Key: CORE-12892
URL: https://jira.reactos.org/browse/CORE-12892
Project: Core ReactOS
Issue Type: Bug
Reporter: visualprog
Assignee: Bug Zilla
Attachments: COM1_ok.jpg
Hello
How to use CreateFile for open serial port COM1 ?
I created the exe program for testing, see the picture and
GetLastError() return 2, ERROR_FILE_NOT_FOUND
OS version 0.4.3
Thank
PS:COM1 driver will be updated on the Device manager.
-----------------------------------------
{code:c}
hCom = CreateFile(
"COM1",
GENERIC_READ| GENERIC_WRITE,
0, /* comm devices must be opened w/exclusive-access */
NULL, /* no security attrs */
OPEN_EXISTING, /* comm devices must use OPEN_EXISTING */
0, /* not overlapped I/O FILE_FLAG_OVERLAPPED*/
NULL /* hTemplate must be NULL for comm devices */
);
if( hCom==INVALID_HANDLE_VALUE)
eFilerr = GetLastError( );
{code}
--
This message was sent by Atlassian JIRA
(v7.3.2#73013)
visualprog (JIRA)
2018-05-15 14:32:00 UTC
Permalink
[ https://jira.reactos.org/browse/CORE-12892?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

visualprog updated CORE-12892:
------------------------------
Attachment: ROS_ACPI.jpg
Post by visualprog (JIRA)
CreateFile and serial port COM1
-------------------------------
Key: CORE-12892
URL: https://jira.reactos.org/browse/CORE-12892
Project: Core ReactOS
Issue Type: Bug
Reporter: visualprog
Assignee: Bug Zilla
Attachments: COM1_ok.jpg, ROS_ACPI.jpg
Hello
How to use CreateFile for open serial port COM1 ?
I created the exe program for testing, see the picture and
GetLastError() return 2, ERROR_FILE_NOT_FOUND
OS version 0.4.3
Thank
PS:COM1 driver will be updated on the Device manager.
-----------------------------------------
{code:c}
hCom = CreateFile(
"COM1",
GENERIC_READ| GENERIC_WRITE,
0, /* comm devices must be opened w/exclusive-access */
NULL, /* no security attrs */
OPEN_EXISTING, /* comm devices must use OPEN_EXISTING */
0, /* not overlapped I/O FILE_FLAG_OVERLAPPED*/
NULL /* hTemplate must be NULL for comm devices */
);
if( hCom==INVALID_HANDLE_VALUE)
eFilerr = GetLastError( );
{code}
--
This message was sent by Atlassian JIRA
(v7.3.2#73013)
visualprog (JIRA)
2018-05-15 14:43:00 UTC
Permalink
[ https://jira.reactos.org/browse/CORE-12892?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=104026#comment-104026 ]

visualprog commented on CORE-12892:
-----------------------------------

Hi
The serial port COM1 is working on ROS 0.4.8 Boot (the real hardware VIA EPIA D525MW ) and now I could test my program Visualprog, which is connected through a serial port with a controller.
See my


*I changed in Setup ACPI to Standart PC uniprocesor*.
!ROS_ACPI.jpg|thumbnail!
Post by visualprog (JIRA)
CreateFile and serial port COM1
-------------------------------
Key: CORE-12892
URL: https://jira.reactos.org/browse/CORE-12892
Project: Core ReactOS
Issue Type: Bug
Reporter: visualprog
Assignee: Bug Zilla
Attachments: COM1_ok.jpg, ROS_ACPI.jpg
Hello
How to use CreateFile for open serial port COM1 ?
I created the exe program for testing, see the picture and
GetLastError() return 2, ERROR_FILE_NOT_FOUND
OS version 0.4.3
Thank
PS:COM1 driver will be updated on the Device manager.
-----------------------------------------
{code:c}
hCom = CreateFile(
"COM1",
GENERIC_READ| GENERIC_WRITE,
0, /* comm devices must be opened w/exclusive-access */
NULL, /* no security attrs */
OPEN_EXISTING, /* comm devices must use OPEN_EXISTING */
0, /* not overlapped I/O FILE_FLAG_OVERLAPPED*/
NULL /* hTemplate must be NULL for comm devices */
);
if( hCom==INVALID_HANDLE_VALUE)
eFilerr = GetLastError( );
{code}
--
This message was sent by Atlassian JIRA
(v7.3.2#73013)
HBelusca (JIRA)
2018-05-15 15:29:00 UTC
Permalink
[ https://jira.reactos.org/browse/CORE-12892?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=104028#comment-104028 ]

HBelusca commented on CORE-12892:
---------------------------------

Ok then this is a bug of ours, that we need to be in generic standard HAL instead of ACPI HAL to have the COM1 visible.
Post by visualprog (JIRA)
CreateFile and serial port COM1
-------------------------------
Key: CORE-12892
URL: https://jira.reactos.org/browse/CORE-12892
Project: Core ReactOS
Issue Type: Bug
Reporter: visualprog
Assignee: Bug Zilla
Attachments: COM1_ok.jpg, ROS_ACPI.jpg
Hello
How to use CreateFile for open serial port COM1 ?
I created the exe program for testing, see the picture and
GetLastError() return 2, ERROR_FILE_NOT_FOUND
OS version 0.4.3
Thank
PS:COM1 driver will be updated on the Device manager.
-----------------------------------------
{code:c}
hCom = CreateFile(
"COM1",
GENERIC_READ| GENERIC_WRITE,
0, /* comm devices must be opened w/exclusive-access */
NULL, /* no security attrs */
OPEN_EXISTING, /* comm devices must use OPEN_EXISTING */
0, /* not overlapped I/O FILE_FLAG_OVERLAPPED*/
NULL /* hTemplate must be NULL for comm devices */
);
if( hCom==INVALID_HANDLE_VALUE)
eFilerr = GetLastError( );
{code}
--
This message was sent by Atlassian JIRA
(v7.3.2#73013)
HBelusca (JIRA)
2018-05-15 15:30:01 UTC
Permalink
[ https://jira.reactos.org/browse/CORE-12892?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=104028#comment-104028 ]

HBelusca edited comment on CORE-12892 at 5/15/18 3:29 PM:
----------------------------------------------------------

Ok then this is a bug of ours, that we need to be in generic standard HAL instead of ACPI HAL to have the COM1 visible (cc. [~ThFabba]).


was (Author: hbelusca):
Ok then this is a bug of ours, that we need to be in generic standard HAL instead of ACPI HAL to have the COM1 visible.
Post by visualprog (JIRA)
CreateFile and serial port COM1
-------------------------------
Key: CORE-12892
URL: https://jira.reactos.org/browse/CORE-12892
Project: Core ReactOS
Issue Type: Bug
Reporter: visualprog
Assignee: Bug Zilla
Attachments: COM1_ok.jpg, ROS_ACPI.jpg
Hello
How to use CreateFile for open serial port COM1 ?
I created the exe program for testing, see the picture and
GetLastError() return 2, ERROR_FILE_NOT_FOUND
OS version 0.4.3
Thank
PS:COM1 driver will be updated on the Device manager.
-----------------------------------------
{code:c}
hCom = CreateFile(
"COM1",
GENERIC_READ| GENERIC_WRITE,
0, /* comm devices must be opened w/exclusive-access */
NULL, /* no security attrs */
OPEN_EXISTING, /* comm devices must use OPEN_EXISTING */
0, /* not overlapped I/O FILE_FLAG_OVERLAPPED*/
NULL /* hTemplate must be NULL for comm devices */
);
if( hCom==INVALID_HANDLE_VALUE)
eFilerr = GetLastError( );
{code}
--
This message was sent by Atlassian JIRA
(v7.3.2#73013)
Thomas Faber (JIRA)
2018-05-15 17:48:01 UTC
Permalink
[ https://jira.reactos.org/browse/CORE-12892?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=104030#comment-104030 ]

Thomas Faber commented on CORE-12892:
-------------------------------------

Yeah all of the ACPI resource assignments are broken, I looked at this a while ago. But it's a big task so it's unlikely I'll get around to finishing it any time soon.
Post by visualprog (JIRA)
CreateFile and serial port COM1
-------------------------------
Key: CORE-12892
URL: https://jira.reactos.org/browse/CORE-12892
Project: Core ReactOS
Issue Type: Bug
Reporter: visualprog
Assignee: Bug Zilla
Attachments: COM1_ok.jpg, ROS_ACPI.jpg
Hello
How to use CreateFile for open serial port COM1 ?
I created the exe program for testing, see the picture and
GetLastError() return 2, ERROR_FILE_NOT_FOUND
OS version 0.4.3
Thank
PS:COM1 driver will be updated on the Device manager.
-----------------------------------------
{code:c}
hCom = CreateFile(
"COM1",
GENERIC_READ| GENERIC_WRITE,
0, /* comm devices must be opened w/exclusive-access */
NULL, /* no security attrs */
OPEN_EXISTING, /* comm devices must use OPEN_EXISTING */
0, /* not overlapped I/O FILE_FLAG_OVERLAPPED*/
NULL /* hTemplate must be NULL for comm devices */
);
if( hCom==INVALID_HANDLE_VALUE)
eFilerr = GetLastError( );
{code}
--
This message was sent by Atlassian JIRA
(v7.3.2#73013)

Loading...