找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
广告投放联系QQ68610888
查看: 19380|回复: 27

WRT54G V2.2 加ttl转rs232线[已测试,有图]

[复制链接]
发表于 2007-10-25 16:28 | 显示全部楼层 |阅读模式
搞个这样的线其实是很便宜的东西, 又好用。  关键是通过它可以看到路由哪里有问题。
我自己试验过可以适合 wrt54g v2.2 和belkin 7231-4
下面是以wrt54g v2.2为例:  (belkin 接到路由上面的线序有点不同,论坛搜索7231-4 应该可以找到具体的线序
                         或看这个也可以  http://wiki.openwrt.org/OpenWrtDocs/Hardware/Siemens/SE505


需要硬件:
1.芯片MAX232      1个 (这个价钱大概2.5元左右吧)  (听说max3232 好一点,不过会贵一点,5元左右吧)
    芯片座         1个
2.电容(0.1μF)    5个   (嗯, 好像 1μF 好点,  其实 0.1~10μF 都是适合的 )
3.DB9(应该叫Female吧,应该写作DB9F,指的是接到电脑主板com口的另外一头)



WRT54G V2.2 JP1,芯片max232,DB9 连接针脚
1.
    定义           WRT54G JP1          芯片max232
POWER(电源3.3V)     1脚                16脚
TX(发送数据)        4脚                11脚
RX(接收数据)        6脚                12脚
GND(接地)           9脚                15脚

2.
    定义             DB9               芯片max232
RX(接收数据)        2脚                14脚
TX(发送数据)        3脚                13脚
GND(接地)           5脚                15脚

3.
    芯片max232加电容位置针脚
  a. 1脚和3脚之间
  b. 4脚和5脚之间
  c. 6脚和15脚之间
  d. 16脚和2脚之间
  e. 16脚和15脚之间
(0.1μF 的电容没有正负之分,随便接)

4.
   电脑设置信息:
a. 软件SecurtCRT 4.1 或 附件里面的超级终端(不过我用超级终端时显示乱码)
SecureCRT 4.1 SN
License Data:        Checksum
Name:         Richard P Merrell            
Company:        
Serial Number: 03-41-000899   
License Key:  AD84V4 B3SYMS HEC6JM 1JNFH8 AAEBCS FNY2PK AT3S6M 4ZYQFB
Issue Date:  09-02-2003          

b. 软件设置:serial,com1,115200,8,None,1   。如图:

c. 电脑com口设置

[ 本帖最后由 scutlxb 于 2007-12-19 01:15 编辑 ]

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

×
我的恩山、我的无线 The best wifi forum is right here.
 楼主| 发表于 2007-10-25 16:32 | 显示全部楼层
5.其他完成图


6.启动信息
CFE version 1.0.37 for BCM947XX (32bit,SP,LE)
Build Date: Mon Oct 18 14:38:15 CST 2004 (root@me)
Copyright (C) 2000,2001,2002,2003 Broadcom Corporation.

Initializing Arena.
Initializing Devices.

No DPN
et0: Broadcom BCM47xx 10/100 Mbps Ethernet Controller 3.60.13.0
rndis0: Broadcom USB RNDIS Network Adapter (P-t-P)
CPU type 0x29007: 264MHz
Total memory: 0x1000000 bytes (16MB)

Total memory used by CFE:  0x80300000 - 0x8043EB40 (1305408)
Initialized Data:          0x80338DB0 - 0x8033B160 (9136)
BSS Area:                  0x8033B160 - 0x8033CB40 (6624)
Local Heap:                0x8033CB40 - 0x8043CB40 (1048576)
Stack Area:                0x8043CB40 - 0x8043EB40 (8192)
Text (code) segment:       0x80300000 - 0x80338DB0 (232880)
Boot area (physical):      0x0043F000 - 0x0047F000
Relocation Factor:         I:00000000 - D:00000000

Boot version: v3.4
The boot is CFE

mac_init(): Find mac [00:12:178B:0E] in location 1
Nothing...

eou_key_init(): Find key pair in location 0
The eou device id is same
The eou public key is same
The eou private key is same
Device eth0:  hwaddr 00-12-17-D8-DB-3E, ipaddr 192.168.1.1, mask 255.255.
255.0
        gateway not set, nameserver not set
Reading :: Failed.: Timeout occured
Loader:raw Filesys:raw Dev:flash0.os File: Optionsnull)
Loading: .. 3732 bytes read
Entry at 0x80001000
Closing network.
Starting program at 0x80001000
CPU revision is: 00029007
Linux version 2.4.35 (root@dd-wrt) (gcc version 3.4.4 (OpenWrt-2.0)) #2529
Wed Oct 10 01:17:32 CEST 2007
Determined physical RAM map:
memory: 01000000 @ 00000000 (usable)
On node 0 totalpages: 4096
zone(0): 4096 pages.
zone(1): 0 pages.
zone(2): 0 pages.
Kernel command line: root=/dev/mtdblock2 rootfstype=squashfs,jffs2 noinitrd
console=ttyS0,115200
CPU: BCM4712 rev 1 at 264 MHz
Using 132.000 MHz high precision timer.
Calibrating delay loop... 258.86 BogoMIPS
Page-cache hash table entries: 4096 (order: 2, 16384 bytes)
Checking for 'wait' instruction...  unavailable.
POSIX conformance testing by UNIFIX
PCI: Disabled
PCI: Fixing up bus 0
Initializing RT netlink socket
Starting kswapd
pty: 256 Unix98 ptys configured
Using word write method
mtd: partition "rootfs" doesn't start on an erase block boundary -- force
read-only
ip_conntrack version 2.1 (512 buckets, 4096 max) - 336 bytes per conntrack

ip_tables: (C) 2000-2002 Netfilter core team
ipt_random match loaded
netfilter PSD loaded - (c) astaro AG
ipt_IPV4OPTSSTRIP loaded
VFS: Mounted root (squashfs filesystem) readonly.
Booting Deviceinksys WRT54G/GL/GS
eth1: No such device
boardflags are 0x0118
enable Afterburner, boardflags are 0x0318
eth1: Broadcom BCM4320 802.11 Wireless Controller 4.80.56.0
Unlocking mtd4 ...
mmc: starting module with: SD_DI=0x20, SD_DO=0x10, SD_CLK=0x1, SD_CS=0x80

mmc: this board has no MMC mod installed!
mmc: error in mmc_init (-1)
eth1: Operation not supported
eth1: Operation not supported
eth1: Invalid argument
eth1: Invalid argument
br0: Bad file descriptor
br0: Bad file descriptor
eth1: Operation not supported
eth1: Operation not supported
eth1: Invalid argument
eth1: Invalid argument
SIOCGIFFLAGS: No such device
SIOCGIFFLAGS: No such device
SIOCGIFFLAGS: No such device
SIOCGIFFLAGS: No such device
Key is a RSA key
Wrote key to '/tmp/root/.ssh/ssh_host_rsa_key'
Key is a DSS key
Wrote key to '/tmp/root/.ssh/ssh_host_dss_key'
vlan1: Setting MAC address to  00 12 17 d8 db 3f.
vlan1: No such process
adding upstream interface vlan1
adding downstream interface br0
SIOCGIFFLAGS: No such device
SIOCGIFFLAGS: No such device
SIOCGIFFLAGS: No such device
SIOCGIFFLAGS: No such device
SIOCGIFFLAGS: No such device
SIOCGIFFLAGS: No such device
SIOCGIFFLAGS: No such device
sh: /tmp/.rc_startup: not found
/tmp/smbshare

DD-WRT v24 std (c) 2007 NewMedia-NET GmbH
Release: 10/10/07 (SVN revision: 8151)

WRT54GV22 login: DD-WRT v24 std (c) 2007 NewMedia-NET GmbH
Release: 10/10/07 (SVN revision: 8151)

WRT54GV22 login:

[ 本帖最后由 scutlxb 于 2007-10-25 17:06 编辑 ]

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

×
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2007-10-25 17:29 | 显示全部楼层
你的焊工好差哟
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2007-10-25 18:46 | 显示全部楼层
业余的已经很好了
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2007-10-25 20:44 | 显示全部楼层
晕死,出现问题了。

显示乱码。。。。。。

怎么解决?
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2007-10-26 09:09 | 显示全部楼层
1.板子上焊排针或者插座,给以后使用带来巨大的方便性;
2.一块232上有可以转两个串口,jp1上也确实把两个串口都引出了,不都用很可惜。
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2007-10-26 20:36 | 显示全部楼层

回复 #5 scutlxb 的帖子

焊排针或者插座吧,你这样焊接,又不酒精清洗,不出问题才怪。

看看我的:

[ 本帖最后由 lyy9801318 于 2007-10-29 21:36 编辑 ]

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

×
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2007-10-26 21:59 | 显示全部楼层
现在已经搞好了那条线了。
嗯,准备加排针。还有就是芯片加IC座。

现在已经有两条线了。 JTAG线和 ttl转rs232线。
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2007-10-26 22:05 | 显示全部楼层
不知什么原因,芯片给我搞坏了。可能焊接过于频繁,有静电。
建议加个IC座。这样就不用直接焊接芯片了。

6.附加一些硬件测试
由于各种的原因,譬如静电等,导致转接线无法使用。通过查看max232的datasheet,
可以看到,芯片如果接Vcc=5V输入时,V+(即第2脚)大概等于2倍Vcc,即10V。
而V-(第6脚)等于 -(V+)。这样可以测试芯片是否正常。

   还有一些对应关系 (max232有两组ttl转rs232),这里列一组,也就是上面采用的
那组。另外一组自己下载max232的datasheet看图。
   TTL       |             MAX232              |      RS232
  4 (发送)|   11(接收)  14(发送) |     2(接收)
6(接收) |   12 (发送) 13(接收) |     3(发送)

[ 本帖最后由 scutlxb 于 2007-10-26 22:10 编辑 ]

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

×
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2007-10-27 10:54 | 显示全部楼层
楼主华工的?
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2007-10-27 21:22 | 显示全部楼层
楼主SecurtCRT在那里下载
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2007-10-27 23:29 | 显示全部楼层
我按楼主的做法在SecurtCRT5.13里显示乱码是不是SecurtCRT5.13版本的问题
用恩山的TTL线就可以显示

CFE version 1.0.37 for BCM947XX (32bit,SP,LE)
Build Date: Thu Feb 26 21:11:19 CST 2004 (root@honor)
Copyright (C) 2000,2001,2002,2003 Broadcom Corporation.

Initializing Arena.
Initializing Devices.
et0: Broadcom BCM47xx 10/100 Mbps Ethernet Controller 2004.1.30.0
rndis0: Broadcom USB RNDIS Network Adapter (P-t-P)
CPU type 0x29007: 200MHz
Total memory: 0x2000000 bytes (32MB)

Total memory used by CFE:  0x80300000 - 0x8043E6F0 (1304304)
Initialized Data:          0x80339120 - 0x8033AF20 (7680)
BSS Area:                  0x8033AF20 - 0x8033C6F0 (6096)
Local Heap:                0x8033C6F0 - 0x8043C6F0 (1048576)
Stack Area:                0x8043C6F0 - 0x8043E6F0 (8192)
Text (code) segment:       0x80300000 - 0x80339120 (233760)
Boot area (physical):      0x0043F000 - 0x0047F000
Relocation Factor:         I:00000000 - D:00000000

Boot version: v3.1
The boot is CFE

mac_init(): Find mac [00:0F:66:57:96:EA] in location 1
Nothing...
Device eth0:  hwaddr 00-0F-66-57-96-EA, ipaddr 192.168.1.1, mask 255.255.255.0
        gateway not set, nameserver not set
Reading :: Failed.: Timeout occured
Loader:raw Filesys:raw Dev:flash0.os File: Optionsnull)
Loading: ...... 1548288 bytes read
Entry at 0x80001000
Closing network.
Starting program at 0x80001000
CPU revision is: 00029007
Primary instruction cache 8kb, linesize 16 bytes (2 ways)
Primary data cache 4kb, linesize 16 bytes (2 ways)
Linux version 2.4.20 (zxin10@linux) (gcc version 3.2.3 with Broadcom modifications) #5 一 10月 8 21:10:45 CST 2007
Setting the PFC value as 0x15
Determined physical RAM map:
memory: 02000000 @ 00000000 (usable)
On node 0 totalpages: 8192
zone(0): 8192 pages.
zone(1): 0 pages.
zone(2): 0 pages.
Kernel command line: root=/dev/mtdblock2 noinitrd console=ttyS0,115200
CPU: BCM4712 rev 1 at 200 MHz
Calibrating delay loop... 199.47 BogoMIPS
Memory: 30684k/32768k available (1321k kernel code, 2084k reserved, 108k data, 64k init, 0k highmem)
Dentry cache hash table entries: 4096 (order: 3, 32768 bytes)
Inode cache hash table entries: 2048 (order: 2, 16384 bytes)
Mount-cache hash table entries: 512 (order: 0, 4096 bytes)
Buffer-cache hash table entries: 1024 (order: 0, 4096 bytes)
Page-cache hash table entries: 8192 (order: 3, 32768 bytes)
Checking for 'wait' instruction...  unavailable.
POSIX conformance testing by UNIFIX
PCI: Disabled
PCI: Fixing up bus 0
Linux NET4.0 for Linux 2.4
Based upon Swansea University Computer Society NET3.039
Initializing RT netlink socket
Starting kswapd
devfs: v1.12c (20020818) Richard Gooch (rgooch@atnf.csiro.au)
devfs: boot_options: 0x1
Squashfs 2.2-r2 (released 2005/09/08) (C) 2002-2005 Phillip Lougher
pty: 256 Unix98 ptys configured
Serial driver version 5.05c (2001-07-08) with MANY_PORTS SHARE_IRQ SERIAL_PCI enabled
ttyS00 at 0xb8000300 (irq = 3) is a 16550A
ttyS01 at 0xb8000400 (irq = 0) is a 16550A
HDLC line discipline: version $Revision: 1.1.1.4 $, maxframe=4096
N_HDLC line discipline registered.
PPP generic driver version 2.4.2
Flash device: 0x800000 at 0x1c000000
Creating 5 MTD partitions on "hysically mapped flash":
0x00000000-0x00040000 : "pmon"
0x00040000-0x007f0000 : "linux"
0x000e1a38-0x002f0000 : "rootfs"
0x002f0000-0x007f0000 : "jffs2"
0x007f0000-0x00800000 : "nvram"
sflash: found no supported devices
NET4: Linux TCP/IP 1.0 for NET4.0
IP Protocols: ICMP, UDP, TCP, IGMP
IP: routing cache hash table of 512 buckets, 4Kbytes
TCP: Hash tables configured (established 2048 bind 4096)
Linux IP multicast router 0.06 plus PIM-SM
ip_conntrack version 2.1 (4099 buckets, 2048 max) - 368 bytes per conntrack
ip_tables: (C) 2000-2002 Netfilter core team
NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
NET4: Ethernet Bridge 008 for NET4.0
802.1Q VLAN Support v1.7 Ben Greear <greearb@candelatech.com>
All bugs added by David S. Miller <davem@redhat.com>
VFS: Mounted root (squashfs filesystem) readonly.
Mounted devfs on /dev
Freeing unused kernel memory: 64k freed


Hit ENTER for console...

Algorithmics/MIPS FPU Emulator v1.5
No change was necessary.
eth2: No such device
eth3: No such device
lo: File exists
Dec 31 16:00:05 udhcpc[70]: udhcpc (v1.2.2) started
Dec 31 16:00:05 udhcpc[70]: Sending discover...

[ 本帖最后由 xiong2209 于 2007-10-27 23:32 编辑 ]
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2007-10-27 23:55 | 显示全部楼层

回复 #10 rex-li 的帖子

呵呵,是啊。
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2007-10-29 09:35 | 显示全部楼层
不一定非要SecurtCRT,直接用windows里带的超级终端就行。位于“开始”-》“程序”-》“附件”-》“通讯”-》“超级终端”
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2007-10-29 11:20 | 显示全部楼层
用超级终端也是乱码
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

有疑问请添加管理员QQ86788181|手机版|小黑屋|Archiver|恩山无线论坛(常州市恩山计算机开发有限公司版权所有) ( 苏ICP备05084872号 )

GMT+8, 2024-4-20 06:19

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

| 江苏省互联网有害信息举报中心 举报信箱:js12377 | @jischina.com.cn 举报电话:025-88802724 本站不良内容举报信箱:68610888@qq.com 举报电话:0519-86695797

快速回复 返回顶部 返回列表