centauro1954 / php-serial

Automatically exported from code.google.com/p/php-serial
0 stars 0 forks source link

50$ Serial characters arrive gibbrish #18

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. $serial->confBaudRate(600); - lowest baudrate set to check
2. $serial->sendMessage("ABCDEFGHI");
3.

What is the expected output? What do you see instead?
I see on my terminal:
ABÃDÅÆGH 

What version of the product are you using? On what operating system?
Win7 64, apache2.4, php5.2

Please provide any additional information below.

I have tried different COM ports and different baudrates - all resulting in 
random character mismatch,
although there are always about 50% of correct characters, in the correct order.
So that is not total garbage i am receiving, however what could be the cause of 
the mismatch characters ?!
Thanks !

Original issue reported on code.google.com by avnerric...@gmail.com on 21 Sep 2013 at 9:43

Attachments:

GoogleCodeExporter commented 8 years ago
I meant 50% of course...

Original comment by avnerric...@gmail.com on 21 Sep 2013 at 9:45

GoogleCodeExporter commented 8 years ago
oh and the really strange thing, is that when i use the same port with a local 
terminal - it works perfectly....

Original comment by avnerric...@gmail.com on 21 Sep 2013 at 9:51

GoogleCodeExporter commented 8 years ago
More details:

1.no matter what baudrate i use.
2.no matter what COM port i use (COM1 for php-serial and COM3 for terminal, or 
vice-versa)
3.no matter what sequence sent, if it is one char only, or a 100-chars string
{
  sending "1" will always result in receiving "±"
  sending "A" will always result in receiving "A"
  etc... i.e. some characters will arrive OK and some will be converted to something else
}

Original comment by avnerric...@gmail.com on 22 Sep 2013 at 5:48

GoogleCodeExporter commented 8 years ago
I have the same problem... Did you solved it ?

Original comment by mhrico...@gmail.com on 28 Mar 2015 at 3:06