Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to open the device (Windows on Xampp) #9

Open
cauli opened this issue May 19, 2014 · 3 comments
Open

Unable to open the device (Windows on Xampp) #9

cauli opened this issue May 19, 2014 · 3 comments

Comments

@cauli
Copy link

cauli commented May 19, 2014

Trying to connect from XAMPP to Arduino on windows I found out that PHP-Serial couldn't open the device.

I solved the problem by following answer #13 at this link
( https://code.google.com/p/php-serial/issues/detail?id=7 ) .

Line 113 on PhpSerial.php was changed to

 $this->_device = "\\\.\com" . $matches[1];

Wondering if this is a Xampp-only issue.

@czb182
Copy link

czb182 commented Jun 24, 2014

try "\.\COM"

@ZoranderTheRealOne
Copy link

on windows 7 64bit php version 5.4.29 help me next things
on 163 line
$this->_dHandle = @fopen($this->_device, $mode);
i changed
$this->_dHandle = @fopen($this->_winDevice, $mode);

@DiclZYY
Copy link

DiclZYY commented Apr 16, 2024

Trying to connect from XAMPP to Arduino on windows I found out that PHP-Serial couldn't open the device.

I solved the problem by following answer #13 at this link ( https://code.google.com/p/php-serial/issues/detail?id=7 ) .

Line 113 on PhpSerial.php was changed to

 $this->_device = "\\\.\com" . $matches[1];

Wondering if this is a Xampp-only issue.

whit php7.4(nts) on windows 11, it's the right way to solve this problem.thanks! But, why?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants