[gull] test port série

sneaky56 at gmx.net sneaky56 at gmx.net
Fri Nov 28 23:09:02 CET 2003


Yann Sagon <ypublic at hasa.ch> writes:

> J'aimerais avoir un moyen de tester le port série, histoire d'être sûr
> qu'il ne soit pas defectueux.

Je ne sais pas si ça t'aide, mais chez moi ça fonctionne (avec un Palm
V (en fait il s'agit d'un IBM WorkPad c3):

510[0]thp at varga:thp> ls -l /dev/ttyS0
lr-xr-xr-x    1 root     root            5 Nov 28 21:54 /dev/ttyS0 -> tts/0
511[0]thp at varga:thp> ls -l /dev/tts/0 
crw-rw-rw-    1 root     root       4,  64 Jan  1  1970 /dev/tts/0
512[0]thp at varga:thp> pilot-xfer -p /dev/ttyS0 -l


   Listening to port: /dev/ttyS0

   Please press the HotSync button now... Connected

Reading list of databases in RAM...
AddressDB
DatebookDB
ExpenseDB
[...]
Saved Preferences

List complete. 77 files found.
Time elapsed: 0:00:28
513[0]thp at varga:thp> setserial -a /dev/ttyS0
/dev/ttyS0, Line 0, UART: 16550A, Port: 0x03f8, IRQ: 4
        Baud_base: 115200, close_delay: 5000, divisor: 0
        closing_wait: 37856
        Flags: spd_normal skip_test

514[0]thp at varga:thp> cat /proc/tty/driver/serial 
serinfo:1.0 driver revision:
0: uart:16550A port:000003F8 irq:41: uart:16550A port:000002F8 irq:32: uart:unknown port:000003E8 irq:4
3: uart:unknown port:000002E8 irq:3
4: uart:unknown port:000001A0 irq:9
5: uart:unknown port:000001A8 irq:9
6: uart:unknown port:000001B0 irq:9
7: uart:unknown port:000001B8 irq:9
8: uart:unknown port:000002A0 irq:5
9: uart:unknown port:000002A8 irq:5
10: uart:unknown port:000002B0 irq:5
11: uart:unknown port:000002B8 irq:5
12: uart:unknown port:00000330 irq:4
13: uart:unknown port:00000338 irq:4
14: uart:unknown port:00000000 irq:0
15: uart:unknown port:00000000 irq:0
16: uart:unknown port:00000100 irq:12
17: uart:unknown port:00000108 irq:12
18: uart:unknown port:00000110 irq:12
19: uart:unknown port:00000118 irq:12
20: uart:unknown port:00000120 irq:12
21: uart:unknown port:00000128 irq:12
22: uart:unknown port:00000130 irq:12
23: uart:unknown port:00000138 irq:12
24: uart:unknown port:00000140 irq:12
25: uart:unknown port:00000148 irq:12
26: uart:unknown port:00000150 irq:12
27: uart:unknown port:00000158 irq:12
28: uart:unknown port:00000160 irq:12
29: uart:unknown port:00000168 irq:12
30: uart:unknown port:00000170 irq:12
31: uart:unknown port:00000178 irq:12
32: uart:unknown port:00000302 irq:3
33: uart:unknown port:00000302 irq:3
34: uart:unknown port:00000302 irq:3
35: uart:unknown port:00000302 irq:3
36: uart:unknown port:00000302 irq:3
37: uart:unknown port:00000302 irq:3
38: uart:unknown port:00000302 irq:3
39: uart:unknown port:00000302 irq:3
40: uart:unknown port:00000302 irq:3
41: uart:unknown port:00000302 irq:3
42: uart:unknown port:00000302 irq:3
43: uart:unknown port:00000302 irq:3
44: uart:unknown port:00003220 irq:3
45: uart:unknown port:00003228 irq:3
46: uart:unknown port:00004220 irq:3
47: uart:unknown port:00004228 irq:3
48: uart:unknown port:00005220 irq:3
49: uart:unknown port:00005228 irq:3
50: uart:unknown port:00000000 irq:0
51: uart:unknown port:00000000 irq:0
52: uart:unknown port:00000000 irq:0
53: uart:unknown port:00000000 irq:0
515[0]thp at varga:thp> dpkg -l pilot-link jpilot
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Installed/Config-files/Unpacked/Failed-config/Half-installed
|/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err: uppercase=bad)
||/ Name           Version        Description
+++-==============-==============-============================================
ii  pilot-link     0.11.8-7       Tools to communicate with a PalmOS PDA
ii  jpilot         0.99.6-6       Graphical app. to modify the contents of you
516[0]thp at varga:thp> cat /etc/de
debconf.conf    default         deluser.conf    
debian_version  defoma          devfs           
516[0]thp at varga:thp> cat /etc/debian_version 
testing/unstable
517[0]thp at varga:thp> pilot-xfer -p /dev/ttyS2 -l

   Unable to bind to port: /dev/ttyS2
   Please use --help for more information

518[1]thp at varga:thp> 

mais là c'est normal, car le port ttyS2 n'existe pas chez moi.

Et sur le Palm j'ai:
DirectSerial avec 57600bps et Flow Ctl Automatic

En espérant t'avoir aidé.


	tom

-- 
as seen in a signature:
       "In an open world without walls and fences,
        who needs Gates and windows?"




More information about the gull mailing list