Re: php serial communication in linux

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Probably because "COM14" is not a valid way to refer to a serial port in a Linux environment.


On 2012-05-01, at 12:02 AM, "prudhvi09" <prudhvi09@xxxxxxxxx> wrote:

> i haveput SElinux in permissive mode and tried it dint work.
> with the code below it worked
> <?php
> echo "hi";
> $fp=fopen("/dev/ttyUSB0","w+");
> if(!$fp)
> echo "Port could not be opened";
> else
> { sleep(3);
> echo "port has been opened";
> $txt="*s"; 
> fputs($fp,$txt);
> 
> fputs($fp,$txt);
> 
> fputs($fp,$txt);
>> 
> Can u tell me why is it not working with serial class?
> 
> --
> View this message in context: http://fedora.12.n6.nabble.com/php-serial-communication-in-linux-tp4938590p4942953.html
> Sent from the Fedora List mailing list archive at Nabble.com.
> -- 
> users mailing list
> users@xxxxxxxxxxxxxxxxxxxxxxx
> To unsubscribe or change subscription options:
> https://admin.fedoraproject.org/mailman/listinfo/users
> Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
> Have a question? Ask away: http://ask.fedoraproject.org

-- 
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux