0

I have a little problem with PHP. I need to send some data to the serial port with PHP in Linux.

I m using this:

exec (" echo -ne 'hello' > /dev/ttymxc0 ");

it is OK but I can't see anything on my console. After I write:

echo -ne 'World ' > /dev/ttymxc0 

The output is like:

Worldhellohello 

Can you give me any advise or do you have suggestion about that? What should I have to do ?

Thanks...

Best Regards

Chris
  • 4,672
  • 13
  • 52
  • 93
Mustafa
  • 147
  • 1
  • 12
  • Possible duplicate of http://stackoverflow.com/questions/14147144/how-can-i-send-data-from-a-web-page-to-a-serial-port – Shakti Phartiyal Mar 25 '17 at 18:49
  • Actually I looked at this page , but I think I need more simple solution because I can send data , but I cant see it , I can see it after I write some charachters with echo command . it s like It uses buffer or something .... – Mustafa Mar 25 '17 at 19:03

0 Answers0