问题
how can I access to my Bluetooth GPS via Standard Serial Port (SPP) using PHP in Windows ? Thanks.
回答1:
Here is a Windows extension for serial data:
http://www.easyvitools.com/phpserial/index.html
This class might be a bit more cross platform:
http://www.phpclasses.org/package/3679-PHP-Communicate-with-a-serial-port.html
Then I'd suggest reading about the NMEA protocol:
http://en.wikipedia.org/wiki/NMEA_0183
来源:https://stackoverflow.com/questions/3691783/php-access-to-bluetooth-gps-via-serial-port-spp-com3