找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
广告投放联系QQ68610888
查看: 74852|回复: 75

TP-Link TL-WR840N添加串口(TTL)详细过程

 火.. [复制链接]
发表于 2010-10-28 13:14 | 显示全部楼层 |阅读模式
本帖最后由 sunoldman 于 2010-10-31 18:41 编辑

我已经把这台机拆开了,详见
https://www.right.com.cn/forum/thread-41697-1-1.html
openwrt上有人放出841 v7的固件,因为配置一样所以试了试,结果提示版本不对不能直接刷
只有试试加装串口了,可是这台机没有像841那样给出明显的串口位置,但应该还是能加的。
我在板子上找到两个可疑的测试点TP1、TP2,如下图

TP2直接连在AR7241的86脚,
TP1通过一个未焊的元件连在87脚
看板子上的标志这似乎本来要焊个电容C496,它旁边两个空位应该是R613、R614
大家看这两个引脚是不是串口的Tx、Rx?

本帖子中包含更多资源

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

×
我的恩山、我的无线 The best wifi forum is right here.
发表于 2010-10-28 15:30 | 显示全部楼层
一般的串口应该是 tx rx gnd vcc 从来没见过只有t和r的串口
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2010-10-28 18:19 | 显示全部楼层
2# wzywzy74

地到处都有随便引,电源不需要
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2010-10-28 18:23 | 显示全部楼层
AR7241或AR7240的tx和rx的引脚号是多少?
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2010-10-28 21:38 | 显示全部楼层
7240的86脚是RX,87脚是TX,参考
https://www.right.com.cn/forum/viewthread.php?tid=40805
回来准备引出串口试试
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2010-10-28 22:48 | 显示全部楼层
我买的水星300R V2版有TTL口,不过只能读,不能写,不知什么问题,不能输入命令。

点评

hbc
你看看电路,是不是少电阻  详情 回复 发表于 2016-11-12 19:54
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2010-10-28 23:09 | 显示全部楼层
本帖最后由 sunoldman 于 2010-10-28 23:12 编辑
我买的水星300R V2版有TTL口,不过只能读,不能写,不知什么问题,不能输入命令。
gztaobao 发表于 2010-10-28 22:48


你把包括TTL口和ar7241的清晰照片传一下,有可能中间要加电阻
我邮箱sunoldman@foxmail.com
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2010-10-29 21:24 | 显示全部楼层
用电阻短接篮筐标记
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2010-10-29 21:43 | 显示全部楼层
用电阻短接篮筐标记
qwea 发表于 2010-10-29 21:24

我量了下篮筐处,是2.4V,可以当高电平吗?
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2010-10-30 08:09 | 显示全部楼层
7# sunoldman


拍了也没用,都是隐蔽线,看不到去哪里。
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2010-10-30 13:16 | 显示全部楼层
11# gztaobao
这是双面板,底面基本铺地很少走线,配合万用表应该可以确定走线
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2010-10-31 15:12 | 显示全部楼层
本帖最后由 sunoldman 于 2010-10-31 15:15 编辑

已经成功添加串口了,看图

工具:很尖的镊子(能夹起0402封装的),烙铁,焊锡丝
1. 蓝色框处的空位要短接,有0欧的电阻最好,我手边暂没有0402的0欧电阻,所以找了一小截导线代替。
2. 黄框处的电阻要去掉。我一开始没去,连上rs232以后发现电脑接受正常,但是无法输入。这个黄框的接地电阻一定是元凶了,所以去掉了。(原以为一个10k的接地电阻应该没影响的,为什么?有高人解释下吗?)
3. 在TP1、TP2处焊上排针
4. 在背面找一个接地的针脚引出来。不要搞错,用万用表测下,几个电解电容、电源插座的针脚中都有一端是接地的,找个好焊的引出来。
然后用万用表验证下,路由器上电后,TP1应该是2.6V。
引出来的就是这三根线,TP1是TX,TP2是RX,另一根是GND
我用的电平转换芯片是MAX3232,正确连接后(连接方法网上很容易找),
下载putty:http://the.earth.li/~sgtatham/putty/latest/x86/putty.exe
打开putty,设置界面如下


设置好后,点save保存设置(以后直接双击设置名即可),然后open
这时候给路由器上电,会输出一大串引导信息
可以等它最后停下来,再输入,
用户名:root
密码:5up(密码输入的时候不显示,只管敲即可)
这样就可以取得控制权了,命令行出来了

本帖子中包含更多资源

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

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

使用道具 举报

 楼主| 发表于 2010-10-31 15:14 | 显示全部楼层
再贴上U-Boot引导信息
  1. U-Boot 1.1.4 (May 28 2010 - 11:12:30)

  2. AP99 (ar7241 - Virian) U-boot
  3. DRAM:
  4. sri
  5. ar7240_ddr_initial_config(133): virian ddr1 init
  6. #### TAP VALUE 1 = 0xf, 2 = 0x10 [0x0: 0x1f]
  7. 32 MB
  8. id read 0x100000ff
  9. sector count = 64
  10. Flash:  4 MB
  11. Using default environment

  12. In:    serial
  13. Out:   serial
  14. Err:   serial
  15. Net:   ag7240_enet_initialize...
  16. No valid address in Flash. Using fixed address
  17. No valid address in Flash. Using fixed address
  18. Virian MDC CFG Value ==> 4
  19. : cfg1 0xf cfg2 0x7014
  20. eth0: 00:03:7f:09:0b:ad
  21. eth0 up
  22. Virian MDC CFG Value ==> 4
  23. : cfg1 0xf cfg2 0x7214
  24. eth1: 00:03:7f:09:0b:ad
  25. ATHRS26: resetting s26
  26. ATHRS26: s26 reset done
  27. eth1 up
  28. eth0, eth1
  29. Autobooting in 1 seconds
  30. ## Booting image at 9f020000 ...
  31.    Uncompressing Kernel Image ... OK

  32. Starting kernel ...

  33. Booting AR7240(Python)...
  34. Linux version 2.6.15--LSDK-7.3.1.41 (zhongjin@rd3linux.tplink) (gcc version 3.4.4) #2 Mon May 31 19:04:36 CST 2010
  35. flash_size passed from bootloader = 4
  36. CPU revision is: 00019374
  37. Determined physical RAM map:
  38. memory: 02000000 @ 00000000 (usable)
  39. User-defined physical RAM map:
  40. memory: 02000000 @ 00000000 (usable)
  41. Built 1 zonelists
  42. Kernel command line: console=ttyS0,115200 root=31:2 rootfstype=squashfs init=/sbin/init mtdparts=ar7240-nor0:128k(u

  43. -boot),1024k(kernel),2816k(rootfs),64k(config),64k(art) mem=32M
  44. Primary instruction cache 64kB, physically tagged, 4-way, linesize 32 bytes.
  45. Primary data cache 32kB, 4-way, linesize 32 bytes.
  46. Synthesized TLB refill handler (20 instructions).
  47. Synthesized TLB load handler fastpath (32 instructions).
  48. Synthesized TLB store handler fastpath (32 instructions).
  49. Synthesized TLB modify handler fastpath (31 instructions).
  50. Cache parity protection disabled
  51. PID hash table entries: 256 (order: 8, 4096 bytes)
  52. Using 200.000 MHz high precision timer.
  53. Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
  54. Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
  55. Memory: 30456k/32768k available (1461k kernel code, 2296k reserved, 306k data, 112k init, 0k highmem)
  56. Mount-cache hash table entries: 512
  57. Checking for 'wait' instruction...  available.
  58. NET: Registered protocol family 16
  59. PCI init:ar7240_pcibios_init
  60. usbcore: registered new driver usbfs
  61. Reset button pressed.
  62. usbcore: registered new driver hub
  63. Returning IRQ 48
  64. AR7240 GPIOC major 0
  65. squashfs: version 3.3 (2007/10/31) Phillip Lougher
  66. squashfs: LZMA suppport for slax.org by jro
  67. Initializing Cryptographic API
  68. io scheduler noop registered
  69. io scheduler deadline registered
  70. HDLC line discipline: version $Revision: #1 $, maxframe=4096
  71. N_HDLC line discipline registered.
  72. Serial: 8250/16550 driver $Revision: #2 $ 1 ports, IRQ sharing disabled
  73. serial8250.0: ttyS0 at MMIO 0x0 (irq = 19) is a 16550A
  74. RAMDISK driver initialized: 1 RAM disks of 8192K size 1024 blocksize
  75. PPP generic driver version 2.4.2
  76. NET: Registered protocol family 24
  77. cmdlinepart partition parsing not available
  78. Searching for RedBoot partition table
  79. 5 RedBoot partitions found on MTD device ar7240-nor0
  80. Creating 5 MTD partitions on "ar7240-nor0":
  81. 0x00000000-0x00020000 : "boot"
  82. 0x00020000-0x00120000 : "kernel"
  83. 0x00120000-0x003e0000 : "rootfs"
  84. 0x003e0000-0x003f0000 : "config"
  85. 0x003f0000-0x00400000 : "art"
  86. ->Oops: flash id 0x10215 .
  87. Port Status c000004
  88. ar7240-ehci ar7240-ehci.0: ATH EHCI
  89. ar7240-ehci ar7240-ehci.0: new USB bus registered, assigned bus number 1
  90. ar7240-ehci ar7240-ehci.0: irq 3, io mem 0x1b000000
  91. hcc_params addr 0xbb000108 val 0x6 hcs_params addr 0xbb000104 val 0x10011
  92. ar7240-ehci ar7240-ehci.0: USB 2.0 started, EHCI 1.00, driver 10 Dec 2004
  93. hub 1-0:1.0: USB hub found
  94. hub 1-0:1.0: 1 port detected
  95. NET: Registered protocol family 2
  96. IP route cache hash table entries: 512 (order: -1, 2048 bytes)
  97. TCP established hash table entries: 2048 (order: 1, 8192 bytes)
  98. TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
  99. TCP: Hash tables configured (established 2048 bind 2048)
  100. TCP reno registered
  101. TCP bic registered
  102. NET: Registered protocol family 1
  103. NET: Registered protocol family 17
  104. 802.1Q VLAN Support v1.8 Ben Greear <greearb@candelatech.com>
  105. All bugs added by David S. Miller <davem@redhat.com>
  106. ar7240wdt_init: Registering WDT success
  107. VFS: Mounted root (squashfs filesystem) readonly.
  108. Freeing unused kernel memory: 112k freed
  109. init started:  BusyBox v1.01 (2010.05.27-08:19+0000) multi-call binary
  110. Algorithmics/MIPS FPU Emulator v1.5
  111. ip_tables: (C) 2000-2002 Netfilter core team
  112. ip_conntrack version 2.4 (256 buckets, 5120 max) - 244 bytes per conntrack
  113. ip_conntrack_pptp version 3.1 loaded
  114. insmod: cannot open module `/lib/modules/2.6.15/kernel/flashid.ko': No such file or directory
  115. insmod: cannot open module `/lib/modules/2.6.15/kernel/harmony.ko': No such file or directory
  116. Now flash open!
  117. Now flash open!
  118. AG7240: Length per segment 1536
  119. AG7240: Max segments per packet 1
  120. AG7240: Max tx descriptor count    80
  121. AG7240: Max rx descriptor count    252
  122. AG7240: fifo cfg 3 01f00140
  123. sys_mode=0 mac:81060000 ag7240_macs[0]:0 ag7240_macs[1]:81060000
  124. 2
  125. sys_mode=0 mac:81c4c000 ag7240_macs[0]:81c4c000 ag7240_macs[1]:81060000
  126. 1
  127. ag7240_ring_alloc Allocated 1280 at 0x81345000
  128. ag7240_ring_alloc Allocated 4032 at 0x803ef000
  129. Virian MDC CFG Value ==> 4
  130. Setting PHY...

  131. (none) mips #2 Mon May 31 19:04:36 CST 2010 (none)
  132. (none) login: ag7240_ring_alloc Allocated 1280 at 0x803e9800
  133. ag7240_ring_alloc Allocated 4032 at 0x81cd5000
  134. Virian MDC CFG Value ==> 4
  135. ATHRS26: resetting s26
  136. ATHRS26: s26 reset done
  137. Setting PHY...
  138. device eth0 entered promiscuous mode
  139. ag7240_ring_free Freeing at 0x803e9800
  140. ag7240_ring_free Freeing at 0x81cd5000
  141. ag7240_ring_alloc Allocated 1280 at 0x81d63800
  142. ag7240_ring_alloc Allocated 4032 at 0x81cd5000
  143. Virian MDC CFG Value ==> 4
  144. Setting PHY...
  145. ip_nat_pptp version 3.0 loaded
  146. ath_hal: module license 'Proprietary' taints kernel.
  147. ath_hal: 0.9.17.1 (AR5416, DEBUG, REGOPS_FUNC, WRITE_EEPROM, 11D)
  148. wlan: 0.8.4.2 (Atheros/multi-bss)
  149. ath_rate_atheros: Copyright (c) 2001-2005 Atheros Communications, Inc, All Rights Reserved
  150. ath_dfs: Version 2.0.0
  151. Copyright (c) 2005-2006 Atheros Communications, Inc. All Rights Reserved
  152. ath_dev: Copyright (c) 2001-2007 Atheros Communications, Inc, All Rights Reserved
  153. ath_pci: 0.9.4.5 (Atheros/multi-bss)
  154. DFS min filter rssiThresh = 18
  155. DFS max pulse dur = 131 ticks
  156. wifi0: Atheros 9287: mem=0x10000000, irq=48 hw_base=0xb0000000
  157. wlan_me: Version 0.1
  158. Copyright (c) 2008 Atheros Communications, Inc. All Rights Reserved
  159. wlan: mac acl policy registered
  160. dfs_init_radar_filters: Unknown dfs domain 0

  161. TP_Flags:6****
  162. The selected channel is 4
  163. Country ie is CN
  164. Country ie is CN
  165. maxrate = 300000
  166. Country ie is CN
  167. ag7240_ring_free Freeing at 0x81d63800
  168. ag7240_ring_free Freeing at 0x81cd5000
  169. br0: port 1(eth0) entering disabled state
  170. ag7240_ring_alloc Allocated 1280 at 0x81cf0000
  171. ag7240_ring_alloc Allocated 4032 at 0x81cd5000
  172. Virian MDC CFG Value ==> 4
  173. Setting PHY...
  174. device ath0 entered promiscuous mode
  175. br0: port 2(ath0) entering learning state
  176. br0: topology change detected, propagating
  177. br0: port 2(ath0) entering forwarding state
  178. br0: port 2(ath0) entering disabled state
  179. Country ie is CN
  180. br0: port 2(ath0) entering learning state
  181. br0: topology change detected, propagating
  182. br0: port 2(ath0) entering forwarding state
  183. br0: port 2(ath0) entering disabled state

  184. TP_Flags:6****

  185. TP_Flags:0****
  186. Country ie is CN
  187. br0: port 2(ath0) entering learning state
  188. br0: topology change detected, propagating
  189. br0: port 2(ath0) entering forwarding state
  190. +++ GE0 RX DMA ENABLE
  191. Inteference detected
  192. rx_clear=100, rx_frame=0, tx_frame=0
  193. root
  194. Password:
  195. Jan  1 00:01:07 login[144]: root login  on `ttyS0'



  196. BusyBox v1.01 (2010.05.27-08:19+0000) Built-in shell (msh)
  197. Enter 'help' for a list of built-in commands.

  198. #
复制代码
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2010-10-31 15:31 | 显示全部楼层
恭喜LZ了
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2010-11-1 21:36 | 显示全部楼层
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-4-25 08:36

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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

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