The following is a library for serial communications via PHP: http://www.phpclasses.org/package/3679-PHP-Communicate-with-a-serial-port.html. The problem is that the method readPort is not fully implemented. It can read in a *nix environment, but apparently not in a Windows environment. The method:
Active2 years, 9 months ago
Gaming, android, travelling, fotografi, elektronika. PC Server akan mengakses port serial Arduino dengan PHP 3. Klien dapat mengakses panel kontrol yang dibuat melalui browser. Bahan yang perlu disiapkan: 1. Dengan logika tersebut, ketika router menerima koneksi dari port 5678, maka koneksi tadi akan diteruskan ke Server A, begitu juga ketika router menerima koneksi dari port 8910, maka akan diteruskan ke server B. Sekarang coba akses server dari jaringan internet menggunakan ip public yang terpasang di mikrotik. Aug 01, 2011 Kemudian saya bertanya - tanya apakah PHP dapat melakukan akses langsung ke Serial Port, Setelah googling akhirnya menemukan cara tersebut, koding dibawah ini mendeskripsikan perintah2 yang digunakan untuk membuat komunikasi ke serial port langsung dari PHP.
The author states:
> /! WARNING /! : it's working with linux for r/w, but with windows i've only been able to make write working. If you're a windows user, try to access the serial port through network with serproxy instead.
Akses Port Serial Dengan Phpmyadmin
The limitation of the PHP class library has been mentioned in SO several times already. I haven't found a decent solution. Reading is imperative for my application.
Does anyone here know what to do?
Akses Port Serial Dengan Php Tutorialdsolimano
7,64733 gold badges4141 silver badges5757 bronze badges
StackOverflowNewbieStackOverflowNewbie
14.6k8686 gold badges240240 silver badges391391 bronze badges
2 Answers
If you can guarantee that you're on Windows, I might recommend an interesting approach: Use either COM (as in, Microsoft's COM, not serial port) or .NET.
Download Printer Pro Desktop. Over 2 million people rely on Printer Pro. Readdle kicked off the weekend with a big update to Printer Pro for iPhone and iPad with a new version 5.0, featuring a new iOS 7-friendly design. Our Other Apps. Get more apps that will boost your productivity. Oct 15, 2010 Read reviews, compare customer ratings, see screenshots, and learn more about Printer Pro. Download Printer Pro and enjoy it on your iPhone, iPad, and iPod touch. Printer pro desktop mac. How to install Printer Pro Desktop If your printer is not identified automatically or you cannot work with your printer directly, the Printer Pro app suggests installing the helper application Printer Pro Desktop to print wirelessly via a PC or Mac. Printer Pro Desktop allows users to print to any printer connected to your Mac/PC using Printer Pro app. It is also recommended to use Printer Pro Desktop in case the network printer is not compatible with Printer Pro application installed on the iPad/iPhone/iPod Touch.
Pengertian Port Serial
There's a free .NET class that I regularly use called CommStudio Express. I've found it to be very reliable, but you can always use the standard SerialPort class built into .NET if you don't need to worry about a USB-to-serial adapter getting unplugged randomly.
In any case, it's easy enough to get at a .NET class in PHP with the DOTNET class:
I haven't tested this code (not on Windows at the moment), but something like that should work just fine. You can then proceed to use all of the regular .NET methods within PHP.
Community♦
BradBrad
122k3030 gold badges252252 silver badges413413 bronze badges
Nope, DOTNET hangs the COM Port. You need to either Restart the computer to detect again or Advanced Users generally Uninstall and Install Arduino.
RakyRaky
Not the answer you're looking for? Browse other questions tagged phpserial-port or ask your own question.Comments are closed.
|
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |