Menu

PHP fopen doesn't work with com0com

Help
peeraxel
2009-12-27
2013-05-20
  • peeraxel

    peeraxel - 2009-12-27

    Hi,
    has enybody a solution for the virtual COM ports in PHP? I'm using COM10 (standard for the Perseus receiver).

    $fp = fopen ("COM10:", "r+");

    results in :
    failed to open stream: No such file or directory .

    It does not help to add "\\.\". w+ /rb+/wb+ do not wirk either.
    The same problem appears when trying to communicate with virtual COM14 where my GPS is connected via Bluetooth, independently from com0com. COM14 regularly appears in the COM-Port list in the device manager.
    The real COM1 does not cause any problems. It's possible to communicate with COM 10 and 14 via a terminal software like hterm without problems.

    Would it help to "deceive" the system as suggested in the readme-Q&A? If so, how do I add a serial port with "Add/Remove hardware". I don't find that option. (using XP)

    Any help would be appreciated.

     
  • Vyacheslav Frolov

    Try

        "\\\\.\\COM10"

     
  • peeraxel

    peeraxel - 2009-12-28

    That doesn't work either. Any other ideas?

     

Log in to post a comment.