problem with port /dev/ttymxc3

Discussion in 'General Programming Discussion' started by theravech, May 27, 2014.

  1. theravech

    theravech New Member

    Joined:
    Feb 4, 2014
    Messages:
    7
    Likes Received:
    0
    Hi friends,

    I'm working on a relay control via web and am experiencing some problems with our udoo.

    PHP simply does not recognize the door / dev/ttymxc3 that the fopen command.
    me no access to the relay when I try to test the page.

    I test it directly on the Arduino serial monitor my code works perfectly.

    I did tests with Windows using COM port and it works too!
    I'll post the code here so they can take a look and maybe they find a course for my situation.

    Arduino

    PHP/HTML

    I hope you can help!

    Leandro
     
  2. extream96

    extream96 New Member

    Joined:
    Jun 27, 2014
    Messages:
    48
    Likes Received:
    0
    The problem could be that you don't have permission for the /dev/ttymxc3, you can use the command chmod 777 /dev/ttymxc3 and retry to connect via php.
    if you want use more settings there is a php library to set up the serial, it works correctly.
     
  3. francescomm

    francescomm Member

    Joined:
    Dec 14, 2013
    Messages:
    80
    Likes Received:
    4
    Yes, I had the same problem with PHP, setting up permissions on the serial solved it

    Code:
    sudo chmod 777 /dev/ttymxc3
     
  4. theravech

    theravech New Member

    Joined:
    Feb 4, 2014
    Messages:
    7
    Likes Received:
    0
    Perfect! tank you!!!
     
  5. ANA

    ANA New Member

    Joined:
    Aug 25, 2015
    Messages:
    1
    Likes Received:
    0
    Hi Everyone,
    I´m new on this and need some help about a Project that I´m working.
    I´m working with a ULTRASONIC sensor and I can´t communicate with PD.

    I´m using the Patch "Smart Theremin" :



    I don´t understand how to fix with PHP... I´m new in this,,,

    Someone can help me Please?

    There is the error on PD:

    [comport] opening serial port 0 failed!
    Opening /dev/ttymxc3
    [comport]: could not open device /dev/ttymxc3:
    failure(3) ERROR_PATH_NOT_FOUND

    The arduino patch show the comport 3, I try to change to comport 3 on PD and doesn´t work...

    Thanks

    Ana
     

Share This Page