OpenWrt Forum Archive

Topic: Hacking TP-Link MR-3040 for live tethering images wirelessly to a PC

The content of this topic has been archived on 30 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Hello everybody,

I am really new to OpenWRT, I have found it reading this article, about how to transform a mini router to enable wireless tethering to a PC: http://www.instructables.com/id/Wireles … /?ALLSTEPS

I have followed all the steps described in this article, and I managed to make it work connecting my laptop directly to the mini router, using its own wireless network (wifi photo in step 4), but I didn't managed to to join an existing network. The existing network is provided by another TP-Link router, WR941ND v2, and the mini router appears connected in the DHCP List section under Unknown name, with 192.168.100 IP assigned, but it doesn't appears under the IP List.

I have tried changing the htmode setting, just like the author of the article suggested, but without success.

Could you guys, please help me make this to work?

Thank you,

Zolti

So you copied a custom wirelessJN file to an USB drive and switched over to 3G and after some reboots ended up in WISP position? There might be some adjustments to /etc/config/network necessary. Please post the content of /etc/config/network and /etc/config/wireless. Further information on configurable options can be found in the wiki: http://wiki.openwrt.org/doc/faq/faq.wireless

Yes, I did that for the first time, and after that I've been editing the wirelessJN file using vi /usr/bin/wirelessJN command in AP position on the mini router. The reboots are necessary so that the mini router would switch to the WISP module, but only after the button on the router are switched from the AP position to the WISP position.

The problem is, that I can only access those file in AP position, when "wifi photo" network is available, and not the desired bridge mode with the big router. I don't know what that wirelessJN file should do when it is active, but in AP position the files are configured for "wifi photo".

I will post screenshots immediately with the content of wirelessJN, network and wireless.

Ok, I just remembered that I can simply copy it from putty, so here they are:

WirelessJN:

root@OpenWrt:~# vi /usr/bin/wirelessJN

config wifi-device 'radio0'
        option type 'mac80211'
        option hwmode '11g'
        option path 'platform/ar933x_wmac'
        option htmode 'HT40'
        option txpower '30'
        option country 'RO'
        option disabled '0'
        option channel '1'
        option log_level '1'

config wifi-iface
        option network 'wwan'
        option ssid 'HBP'
        option encryption 'psk2'
        option device 'radio0'
        option mode 'sta'
        option key 'hocheibv2017'

I changed the country to RO from Romania, because the big router is set to Romania too, and I added logging, but I couldn't figure it out so far how to check the logs... The password used it only used for this purposes , so I don't mind sharing.

Network:

root@OpenWrt:~# vi /etc/config/network

config interface 'loopback'
        option ifname 'lo'
        option proto 'static'
        option ipaddr '127.0.0.1'
        option netmask '255.0.0.0'

config globals 'globals'
        option ula_prefix 'fd1e:3406:26d3::/48'

config interface 'lan'
        option ifname 'eth0'
        option force_link '1'
        option proto 'static'
        option netmask '255.255.255.0'
        option ip6assign '60'
        option ipaddr '192.168.0.200'

config interface 'wwan'
        option _orig_ifname 'wlan0'
        option _orig_bridge 'false'
        option proto 'static'
        option ipaddr '192.168.5.1'
        option netmask '255.255.255.0'

Wireless:

root@OpenWrt:~# vi /etc/config/wireless

config wifi-device 'radio0'
        option type 'mac80211'
        option channel '11'
        option hwmode '11g'
        option path 'platform/ar933x_wmac'
        option htmode 'HT40-'
        option txpower '30'
        option country 'US'

config wifi-iface
        option device 'radio0'
        option mode 'ap'
        option ssid 'wifi photo'
        option network 'lan wwan'
        option encryption 'psk-mixed'
        option key 'password'

Here are the logs from the big router, at the moment when I try to connect the mini router being in WISP mode (from the bottom to the top):

12 1st day 00:07:21 DHCP  INFO  DHCPC DHCP Service unavailable, recv no OFFER
11 1st day 00:07:19 DHCP  INFO  DHCPC Send DISCOVER with request ip 0 and unicast flag 1
10 1st day 00:07:17 DHCP  INFO  DHCPC Send DISCOVER with request ip 0 and unicast flag 1
9 1st day 00:07:13 DHCP  INFO  DHCPC Send DISCOVER with request ip 0 and unicast flag 0
8 1st day 00:07:11 DHCP  INFO  DHCPC Send DISCOVER with request ip 0 and unicast flag 0
7 1st day 00:07:09 DHCP  INFO  DHCPC Send DISCOVER with request ip 0 and unicast flag 0


LONG PAUSE HERE

6 1st day 00:06:13 DHCP  INFO  DHCPS:Send ACK to 192.168.0.101
5 1st day 00:06:13 DHCP  INFO  DHCPS:Recv REQUEST from C4:E9:84:5F:11:A6-> the MAC address of the mini router
4 1st day 00:06:12 DHCP  INFO  DHCPS:Send OFFER with ip 192.168.0.101
3 1st day 00:06:12 DHCP  WARNING DHCPS:lease host name not found
2 1st day 00:06:11 DHCP  INFO  DHCPS:Recv DISCOVER from C4:E9:84:5F:11:A6
1 1st day 00:05:22 OTHER  INFO  User clear system log.

Here is an image from the big router showing the DHCP Client List, where the MAC address of the mini router appears, but as Unkown: https://onedrive.live.com/redir?resid=8 … hoto%2cjpg

Other image from the big router showing the  Wireless statistics, the mini router is present here too: https://onedrive.live.com/redir?resid=8 … hoto%2cjpg

Were the mini router IS NOT present is the connected IP list: https://onedrive.live.com/redir?resid=8 … hoto%2cjpg

And the last image, with the settings of the Wireless in the big router: https://onedrive.live.com/redir?resid=8 … hoto%2cjpg

If it helps, I can take more screenshots or check other files from the mini router, just say about what.

According to your screenshots, the mr3040 got connected. But you can't ping it or log into it? How about connecting via ethernet, while the mr3040 is in WISP mode?

The discussion might have continued from here.