Hello group!
I made a program that uses the TS-7400's ttyAM0 (COM1) in raw mode
to write PMPP requests and get responses from a "custom device".
But i have a problem, another program seems to use that same port
to listen to incoming PPP requests. I dont know which program it is
and i would like to kill/disable it.
PS: Both PMPP and PPP requests begin and end with 7E in hex.
Step #1
When i write a PMPP request on the TS-7400 port, lets say (in hex):
7E05 13C1 302B 0201 0004 0670 7562 6C69 63A0 1E02 0101 0201 0002
0100 3013 3011 060D 2B06 0104 0189 3604 0203 0102 0005 00B1 F27E
Step #2
I get a PMPP response from my "custom device":
7E05 13C1 302D 0201 0004 0670 7562 6C69 63A2 2002 0101 0201 0002
0100 3015 3013 060D 2B06 0104 0189 3604 0203 0102 0002 0200 86AB CA7E
Step #3
Here, my program (the one on the TS7400) cannot read the response.
The response (which was on the serial port, i sniffed it) was caught
by another process running on the TS7400. It looks like that process
was looking for requests beginning and ending with 7Es. Worst than
that, it writes back a meaningless PPP answer to the serial port!!!
Step #4 TS7400 writes the "evil" PPP request to the port:
7E30 2D08 0808 302D 2008 0808 3070 2D06 752D 0862 2D08 6C2D 0869
2D08 632D 0820 2D08 081B 5B37 4430 3070 7562 6C69 6320 2D1B 5B39
440D 2420 3070 7562 6C69 6320 2D1B 5B4A 1B5B 3944 3030 7075 626C
6963 202D 1B5B 3944 3070 7562 6C69 6320 2D0A 2D73 683A 2030 3070
7562 6C69 633A 206E 6F74 2066 6F75 6E64 0D0A 2024 2B08 2008 3608
360D 0A24 207E
So, if anyone could tell me how to read/write on the serial port
without sharing it with other programs it would be very appreciated.
Or if you know how to disable the program that listens on the serial
port this can also be a solution.
PS: I also used lock files and fcntl with write locks without
success.
Regards,
Louis-Pierre Beaumont
Software Developer
VER-MAC Signalisation inc.
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/ts-7000/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/ts-7000/join
(Yahoo! ID required)
<*> To change settings via email:
<*> To unsubscribe from this group, send an email to:
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|