tresloukadu Posted January 12, 2007 Share Posted January 12, 2007 hello, flks! I have a doubt... Is possible use php to access usb port on windows? because I spent some hours in google and I had not found anything... just to "com" port... and I tried some functions in my code like: dio_open, fopen, fwrite .... but these function run ok only with "com" (rs232) port... But usb is impossible I get errors all the time.... I wanna access a usb port cause I have a garmin gps ... and I'm wondering catch the data send by gps with php... to store in a db... :) will I need some dll to solve this problem??? I'm hoping for any suggestion... :) seeYa! Quote Link to comment https://forums.phpfreaks.com/topic/33909-using-php-to-access-usb-port/ Share on other sites More sharing options...
mmatos Posted January 12, 2007 Share Posted January 12, 2007 Many GPS manufacturers typically have a "usb to serial" utility that you can use...they provide it so you can use your GPS with applications that don't support USB.Try searching Garmin's site for "usb to serial" or "usb to com" or something along those lines.That will get you MUCH closer. Quote Link to comment https://forums.phpfreaks.com/topic/33909-using-php-to-access-usb-port/#findComment-159255 Share on other sites More sharing options...
tresloukadu Posted January 15, 2007 Author Share Posted January 15, 2007 Yeah man is not a bad idea... I have tried ur suggestion a couple of weeks ago... However my objective is to not depend of external solution... You know?Because after I want run my script in Linux and the Garmin software is only for windows plataform... Not using external sofware is possible to keep my program more bug free and robust... ;) I'm very glad for ur post. c u. Quote Link to comment https://forums.phpfreaks.com/topic/33909-using-php-to-access-usb-port/#findComment-161049 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.