Hallo,
kann mir jemand bitte ein paar Tipps geben, wie ich mit meiner NSLU2 und picocom, minicom o.ä. eine Verbindung zur seriellen Schnittstelle meiner Heizung herstelle?
Die Verbidungsparameter lauten: 9600, 8N1. Aber bei z.B. picocom kommt nach "Terminal ready" nichts mehr. Was muss ich tun?
|
Source code
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
root@nslu ~ $ picocom --b 9600 /dev/ttyUSB0
picocom v1.4
port is : /dev/ttyUSB0
flowcontrol : none
baudrate is : 9600
parity is : none
databits are : 8
escape is : C-a
noinit is : no
noreset is : no
nolock is : no
send_cmd is : ascii_xfr -s -v -l10
receive_cmd is : rz -vv
Terminal ready
|
Ich weiß, dass das Senden des Hex-Codes 02 mit dem Hex-Code 10 als Antwort quittiert werden müsste.
Aber wie sende ich einen Hex-Code mittels picocom o.ä. Tools rüber?
Ich weiß, dass die Verkabelung unter Windows (mittels COM-Port und Software des Heizungsherstellers) mit meinem USB-RS232-Adapter funktioniert (pl2303 oder ftdi_sio als Alternativen). Aber das sollte auch von der NSLU2 aus klappen.
Die für einen der beiden Adapter nötigen Kernel-Module (ftdi_sio, pl2303) sind geladen:
|
Source code
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
root@nslu ~ $ cat /proc/modules
appletalk 30216 20 - Live 0xbf1a8000
nfsd 227964 17 - Live 0xbf16f000
auth_rpcgss 40356 1 nfsd, Live 0xbf164000
exportfs 4064 1 nfsd, Live 0xbf162000
nfs 264848 0 - Live 0xbf120000
lockd 68564 2 nfsd,nfs, Live 0xbf10e000
nfs_acl 3328 2 nfsd,nfs, Live 0xbf09b000
sunrpc 196248 13 nfsd,auth_rpcgss,nfs,lockd,nfs_acl, Live 0xbf0dd000
ext2 63752 1 - Live 0xbf0cc000
pl2303 16676 0 - Live 0xbf0c6000
evdev 8672 0 - Live 0xbf0c2000
ftdi_sio 47464 1 - Live 0xbf0b5000
usbserial 30860 4 pl2303,ftdi_sio, Live 0xbf0ac000
ixp4xx_eth 12280 0 - Live 0xbf0a8000
ixp4xx_npe 8000 2 ixp4xx_eth, Live 0xbf0a5000
firmware_class 7648 1 ixp4xx_npe, Live 0xbf0a2000
ixp4xx_qmgr 5272 6 ixp4xx_eth, Live 0xbf09f000
ixp4xx_beeper 2816 0 - Live 0xbf09d000
ohci_hcd 18276 0 - Live 0xbf095000
ext3 123688 3 - Live 0xbf075000
jbd 45460 1 ext3, Live 0xbf068000
mbcache 7968 2 ext2,ext3, Live 0xbf065000
sd_mod 22736 8 - Live 0xbf05e000
ehci_hcd 35212 0 - Live 0xbf054000
usb_storage 83559 5 - Live 0xbf03e000
usbcore 128828 7 pl2303,ftdi_sio,usbserial,ohci_hcd,ehci_hcd,usb_storage, Live 0xbf01d000
scsi_mod 111300 2 sd_mod,usb_storage, Live 0xbf000000
|
Das Device müsste /dev/ttyUSB0 sein:
|
Source code
|
1
2
3
4
5
|
root@nslu ~ $ dmesg | grep tty
[42949377.250000] serial8250.0: ttyS0 at MMIO 0xc8000000 (irq = 15) is a XScale
[42949377.250000] console [ttyS0] enabled
[42949377.590000] serial8250.0: ttyS1 at MMIO 0xc8001000 (irq = 13) is a XScale
[42949406.140000] usb 1-2.1: FTDI USB Serial Device converter now attached to ttyUSB0
|
Herzlichen Dank für Eure Hilfe!