Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8000465
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T15:48:10+00:00 2026-06-04T15:48:10+00:00

I have USB IR module in connected to a tty port, and I can

  • 0

I have USB IR module in connected to a tty port, and I can read/write data from/to it fine.

Now I’m trying to run a PHP application that would read data from that port, but for some reason my PHP script on Apache can’t seem to read the serial port. I get complaint “error accessing”
The user (www-data) has access to dialup group (in /etc/group):

...
dialout:x:20:jlumme,www-data
...

And if I switch over to www-data user (su www-data), I am able to successfully run the program from the same folder where it resides (same folder with PHP script).
Access rights to the tty should also be ok:

>ls -l /dev/tty
...
crw-rw---- 1 root dialout 166, 0 2012-05-03 19:10 ttyACM0
...

I’m out of ideas what to try..

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T15:48:12+00:00Added an answer on June 4, 2026 at 3:48 pm

    Looks like all I had to do was to re-boot the linux board, and now it worked ok.
    I’m not sure what went wrong before, possibly re-starting Apache could have done the trick.

    Anyhow, just making sure proper user rights have access to /dev/tty seems to be the answer!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is it possible to read/write from/to a specific USB port, avoiding all that USB
I have a GPS module connected through serial port(USB->Virtual COM port). A measurement software
I have a firmware for an USB module I can already control by visual
I have been trying to get a USB HID keyboard working on an Android
I have a USB device I'm trying to communicate with over a virtual serial
I have a kernel module in which I deal with USB devices. It happens
I have several USB drives connected to a WinXP SP3 computer, and I need
We have a usb device and the drivers (.inf, libusb.dll, libusb.sys) and can install
I have Firmata working fine on an Arduino Uno, communicating over cable USB to
Many LCD televisions nowadays have USB ports so you can plug in your camera

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.