TP-LINK TL-WN727N v3.2 on Samsung UE40EH5450WXXH

This forum is for information related with E series hardware.
Post Reply

User avatar
triceraptor
Posts: 6
Joined: Tue Feb 19, 2013 3:50 am

TP-LINK TL-WN727N v3.2 on Samsung UE40EH5450WXXH

Post by triceraptor »

It gives the problem:TV "smart" Samsung UE40EH5450WXXH (which already has a cable RJ45 rear mounted router TP-LINK Wireless Gigabit Router WR1043ND) + Samsung WIS09ABGN wireless adapter.
Based on the desire to have (yet) a wireless adapter that does not give between 200 and 250 RON, I started to read diligently (first link being the best to learn about how they would do).
http://wiki.samygo.tv/index.php5/Using_ ... es_with_TV

Closest my desire was: http://akehayc.yvision.kz/post/312922
Keep in mind that the TP-LINK TL-WN727N v3.2 Ralink RT5370 chipset has a rather RT5572 (the linux driver being different and being different "CentOS 6.3 x32"), so I used this thread only for guidance that I do.
I guess he talking about D-Link DWA-125 Ver B1.

Software needed:
1.Driver use (Linux download section) = "RT8070 / RT3070 / RT3370 / RT5370 / RT5372 USB" (2.5.0.3 of 03/28/2012):
http://www.mediatek.com/_en/07_download ... php?sn=501
Enter an email address (any - ... @ yahoo.com, and user) and download the driver.
2.Download (for Windows) "UNetbootin-windows-583":
http://unetbootin.sourceforge.net/
3.Download "Ubuntu 10.04.4 LTS (Lucid Lynx)" to "PC (Intel x86) desktop CD" (694.5 MB)
http://releases.ubuntu.com/lucid/ 10.04.4
I chose that version because I found information that the last version 12 ... was not working.

Necessary hardware.
1.Stick USB 2GB or more.
2.TP-LINK TL-WN727N v3.2
Identification wireless adapter:
http://wikidevi.com/wiki/TP-LINK_TL-WN727N_v33.
3.Calculator a free partition.

I can not begin before i will say for me- Linux was just a logo with an penguin or a red hat .
What to do:
Install on a USB stick 2GB or more, Ubuntu.
Open UNetbootin
- Top left choose Ubuntu
- Top right choose 10.04 Live
- Bottom left chose the image wich is already downloaded on HDD (ubuntu-10.04.4-desktop-i386)
- Check if the USB stick corresponds to the letter displayed and if so, press Next.
-We will wait (the green bar is filled)
-Choose Finish not Reboot.
-Restart the computer and choose to boot after USB stick
-We see many variants including Live and HDD installation
-Personally, I did not go anything until I installed it directly on HDD (trying to "Live" could not do update later).
Installing the HDD choose the type of partition ext2.
Provide the required data and here we have an Ubuntu Linux computer (carefully during installation will require a password keep it mind or write it).
I used colors to easily follow what we do.

First we must update Ubuntu:
Open Terminal (Applications-> Accesories-> Terminal) and enter the following commands:

Code: Select all

sudo apt-get update
Enter
...........
sudo apt-get upgrade
Enter
...........
sudo apt-get install build-essential linux-headers-$ (uname-r) fakeroot dpkg-dev
Enter
I unzipped 2011_0719_RT3070_RT3370_RT5370_RT5372_Linux_STA_V2.5.0.3_DPO.bz2 (on the desktop)
I unzipped 2011_0719_RT3070_RT3370_RT5370_RT5372_Linux_STA_V2.5.0.3_DPO.tar (on the desktop)
I get 2011_0719_RT3070_RT3370_RT5370_RT5372_Linux_STA_V2.5.0.3_DPO folder (on the desktop)
I renamed what I got after unpacking in RT5370 (on the desktop)

I entered in the RT5370 folder in os in linux and then I modified config.mk as following:

Code: Select all

Support ATE function  
HAS_ATE = y (before it was n)  

Support wpa_supplicant 
HAS_WPA_SUPPLICANT = y (before it was n)  

Native Support for Network Maganger wpasupplicant    
HAS_NATIVE_WPA_SUPPLICANT_SUPPORT = y (before it was n)
I saved.

Also in RT5370 folder in os in linux in usb_main_dev.c, and then I changed only two signs (*) the other was already written:

Code: Select all

MODULE_AUTHOR (" Paul Lin <paul_lin@ralinktech.com> ");  
MODULE_DESCRIPTION ("RT2870 Wireless Lan Linux Driver");  
MODULE_LICENSE ("GPL"); 
# ifdef CONFIG_STA_SUPPORT  
# ifdef MODULE_VERSION  MODULE_VERSION (STA_DRIVER_VERSION); 
# endif  # endif / / CONFIG_STA_SUPPORT / / (before was # endif / * CONFIG_STA_SUPPORT * /)
I saved.
Compile the driver:
In Ubuntu-> Applications-> Accesories-> TerminalI open terminal:
I gave the command "cd" and then I pulled (drag and drop) RT5370 foder over terminal

Code: Select all

sebi @ sebi-desktop: ~ $ cd '/ home/sebi/Desktop/RT5370'
Enter
The result was: 
sebi @ sebi-desktop: ~ / Desktop/RT5370 $) 
Then I entered the command "make"
sebi @ sebi-desktop: ~ / Desktop/RT5370 $ make
Enter
Let him do his job ......
Few lines:

Code: Select all

make -C tools
make[1]: Entering directory `/home/sebi/Desktop/RT5370/tools'
gcc -g bin2h.c -o bin2h
make[1]: Leaving directory `/home/sebi/Desktop/RT5370/tools'
/home/sebi/Desktop/RT5370/tools/bin2h
cp -f os/linux/Makefile.6 /home/sebi/Desktop/RT5370/os/linux/Makefile
make -C /lib/modules/2.6.32-38-generic/build SUBDIRS=/home/sebi/Desktop/RT5370/os/linux modules
make[1]: Entering directory `/usr/src/linux-headers-2.6.32-38-generic'
  CC [M]  /home/sebi/Desktop/RT5370/os/linux/../../common/crypt_md5.o
  CC [M]  /home/sebi/Desktop/RT5370/os/linux/../../common/crypt_sha2.o
  CC [M]  /home/sebi/Desktop/RT5370/os/linux/../../common/crypt_hmac.o
  CC [M]  /home/sebi/Desktop/RT5370/os/linux/../../common/crypt_aes.o
  CC [M]  /home/sebi/Desktop/RT5370/os/linux/../../common/crypt_arc4.o
  CC [M]  /home/sebi/Desktop/RT5370/os/linux/../../common/mlme.o
  CC [M]  /home/sebi/Desktop/RT5370/os/linux/../../common/cmm_wep.o
1028 bytes is larger than 1024 bytes
??????????????????????????????????????????????????????.

Real numbers of lines returned was on 3 pages of word
?????????????????????????????????????????????????????..
/home/sebi/Desktop/RT5370/os/linux/../../common/rt_ate.c: In function ?DO_RACFG_CMD_E2PROM_WRITE_ALL?:
/home/sebi/Desktop/RT5370/os/linux/../../common/rt_ate.c:3061: warning: the frame size of 1032 bytes is larger than 1024 bytes
/home/sebi/Desktop/RT5370/os/linux/../../common/rt_ate.c: In function ?Set_ATE_Load_E2P_Proc?:
/home/sebi/Desktop/RT5370/os/linux/../../common/rt_ate.c:8563: warning: the frame size of 1036 bytes is larger than 1024 bytes
  LD [M]  /home/sebi/Desktop/RT5370/os/linux/rt5370sta.o
  Building modules, stage 2.
  MODPOST 1 modules
  CC      /home/sebi/Desktop/RT5370/os/linux/rt5370sta.mod.o
  LD [M]  /home/sebi/Desktop/RT5370/os/linux/rt5370sta.ko
make[1]: Leaving directory `/usr/src/linux-headers-2.6.32-38-generic'
cp -f /home/sebi/Desktop/RT5370/os/linux/rt5370sta.ko /tftpboot
cp: cannot create regular file `/tftpboot': Permission denied
make: *** [LINUX] Error 1
Ready and made up
As It was wrote i had numerous errors
It?s ok don?t worry
Then i gave the command "make install"
sebi @ sebi-desktop: ~ / Desktop/RT5370 $ make install
Enter
Let him do his job
Response back:

Code: Select all

make -C /home/sebi/Desktop/RT5370/os/linux -f Makefile.6 install
mkdir: cannot create directory `/etc/Wireless': File exists
make[1]: Entering directory `/home/sebi/Desktop/RT5370/os/linux'
rm -rf /etc/Wireless/RT2870STA
rm: cannot remove `/etc/Wireless/RT2870STA/RT2870STA.dat': Permission denied
make[1]: *** [install] Error 1
make[1]: Leaving directory `/home/sebi/Desktop/RT5370/os/linux'
make: *** [install] Error 2
sebi@sebi-desktop:~/Desktop/RT5370$ 
The terminal opened check, and observe that in RT5370 folder (on the desktop) into the os in linux (RT5370/os/linux) appeared and rt5370sta.ko
Close terminal
Enter your stick TP-LINK TL-WN727N v3.2 in USB.
Restart the computer.
Get into Ubuntu-> Applications-> Accesories-> Terminal
Open terminal
To see what modules I have loaded the command "lsmod"

Code: Select all

sebi @ sebi-desktop: ~ $ lsmod
Enter
Response back:
Module                  Size  Used by
nls_iso8859_1           3249  1 
nls_cp437               4919  1 
vfat                    8933  1 
fat                    47767  1 vfat
usb_storage            40033  1 
rt5572sta             723773  0 
binfmt_misc             6587  1 
ppdev                   5259  0 
usbhid                 36110  0 
hid                    67288  1 usbhid
snd_hda_codec_realtek   203440  0 
???????????????????????????????????????????????????
Real numbers of lines returned was on 1 page of word
???????????????????????????????????????????????????
shpchp                 28835  0 
xhci                   37160  0 
snd_page_alloc          7076  2 snd_hda_intel,snd_pcm
lp                      7028  0 
parport                32635  2 ppdev,lp
r8169                  34140  0 
mii                     4381  1 r8169
floppy                 53016  0 
I noticed that Linux has remained busy with driver 5572 [(modules) rt5572sta (size) 723 773 (used by) 0]
But we get out (driver loaded) with the command "rmmod"

Code: Select all

sebi@sebi-desktop:~$ sudo rmmod rt5572sta
Enter


Check what I did
Reenter the command "lsmod"
sebi@sebi-desktop:~$ lsmod 
Enter
Module                  Size  Used by
nls_iso8859_1           3249  1 
nls_cp437               4919  1 
vfat                    8933  1 
fat                    47767  1 vfat
usb_storage            40033  1 
binfmt_misc             6587  1 
ppdev                   5259  0 
usbhid                 36110  0 
hid                    67288  1 usbhid
snd_hda_codec_realtek   203440  0 
snd_hda_intel          22069  2 
?????????????????????????????????????????????????????????
Real numbers of lines returned was on 1 page of word
?????????????????????????????????????????????????????????..
shpchp                 28835  0 
xhci                   37160  0 
snd_page_alloc          7076  2 snd_hda_intel,snd_pcm
lp                      7028  0 
parport                32635  2 ppdev,lp
r8169                  34140  0 
mii                     4381  1 r8169
floppy                 53016  0 
I noticed that the module (driver) of 5572 has disappeared.
Enter the command "sudo su"

Code: Select all

sebi@sebi-desktop:~$ sudo su
Enter
Enter the command ?cd os?
root@sebi-desktop:/home/sebi/Desktop/RT5370# cd os
Enter
Enter the command ?cd linux?
root@sebi-desktop:/home/sebi/Desktop/RT5370/os# cd linux
Enter
Load "custom driver" with command "insmod rt5370sta.ko"

Code: Select all

root@sebi-desktop:/home/sebi/Desktop/RT5370/os/linux# insmod rt5370sta.ko
This prompted me for password (used during installation Ubuntu)
Insert password and OK
Now the LED of TP-LinkWN727N starts to flash.
Now check the VID and PID of this USB stick:
root@sebi-desktop:/home/sebi/Desktop/RT5370/os/linux#
Enter the command?iwpriv ra0 e2p 208?

Code: Select all

root@sebi-desktop:/home/sebi/Desktop/RT5370/os/linux# iwpriv ra0 e2p 208
Enter
Response:
ra0       e2p:
[0x0208]:0x148F 
Enter the command ?iwpriv ra0 e2p 20a?
root@sebi-desktop:/home/sebi/Desktop/RT5370/os/linux# iwpriv ra0 e2p 20a
Enter
Response:
ra0       e2p:
[0x020A]:0x5370  
Ok
Final response:148F:5370
Now try to change the VID and PID to stick with your Samsung TV to fool "smart TV"
Enter the command "iwpriv ra0 e2p 208=04E8"
root@sebi-desktop:/home/sebi/Desktop/RT5370/os/linux# iwpriv ra0 e2p 208=04E8
Enter
Rsponse:
ra0 e2p:
[0x208]:4E8
Enter the command "iwpriv ra0 e2p 20A=2018"
root@sebi-desktop:/home/sebi/Desktop/RT5370/os/linux# iwpriv ra0 e2p 20A=2018
Enter
Response:
ra0 e2p:
[0x20A]:2018
root@sebi-desktop:/home/sebi/Desktop/RT5370/os/linux#
Remove the stick from USB
Reintroduce stick in USB and check if the new settings remain active by entering the command again "lsusb"
root@sebi-desktop:/home/sebi/Desktop/RT5370/os/linux# lsusb
Enter
Response:

Code: Select all

Bus 003 Device 002: ID 046d:c05a Logitech, Inc. 
 Bus 003 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
 Bus 002 Device 005: ID 04e8:2018 Samsung Electronics Co., Ltd 
 Bus 002 Device 002: ID 8087:0024  
 Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
 Bus 001 Device 003: ID 0951:1642 Kingston Technology 
 Bus 001 Device 002: ID 8087:0024  
 Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

IT?S DONE


P.S. Sorry for my english is not my native language
Long live the GOOGLE TRANSLATOR
User avatar
triceraptor
Posts: 6
Joined: Tue Feb 19, 2013 3:50 am

Re: TP-LINK TL-WN727N v3.2 on Samsung UE40EH5450WXXH

Post by triceraptor »

Varianta in Romana + tastatura wireless

http://www.share-byte.net/nk1nOa


Same method is working on (thanks @ciprishor):
TP-LINK TL-WN727N v3.1 on Samsung UE46ES5700SXZG
User avatar
triceraptor
Posts: 6
Joined: Tue Feb 19, 2013 3:50 am

Re: TP-LINK TL-WN727N v3.2 on Samsung UE40EH5450WXXH

Post by triceraptor »

Attention!
This adapter does not work on smart TV Series D!

Atentie!
Acest tip de adaptor nu functioneaza pe TV destepte seria D!
globula
Posts: 3
Joined: Sat Apr 27, 2013 6:38 pm

Re: TP-LINK TL-WN727N v3.2 on Samsung UE40EH5450WXXH

Post by globula »

Salut, metoda asta ar merge cu orice placa de retea ?


Hello, this method will work with any network card?


Nvm: Am luat Tp-link-ul, 7 lire, sa vedem ce iese :)
User avatar
triceraptor
Posts: 6
Joined: Tue Feb 19, 2013 3:50 am

Re: TP-LINK TL-WN727N v3.2 on Samsung UE40EH5450WXXH

Post by triceraptor »

Not to all wireless adapters.
Nu la toate adaptoarele wireless.
Not all smart tv series recognize.
Nu toate seriile de tv destepte le recunosc.

I just got came from mini holiday
Deabia am venit din minivacanta
Last edited by triceraptor on Fri May 03, 2013 11:02 am, edited 1 time in total.
User avatar
juusso
SamyGO Moderator
Posts: 10129
Joined: Sun Mar 07, 2010 6:20 pm

Re: TP-LINK TL-WN727N v3.2 on Samsung UE40EH5450WXXH

Post by juusso »

English please
LE40B653T5W,UE40D6750,UE65Q8C
Have questions? Read SamyGO Wiki, Search on forum first!
FFB (v0.8), FFB for CI+ . Get root on: C series, D series, E series, F series, H series. rooting K series, exeDSP/exeTV patches[C/D/E/F/H]

DO NOT EVER INSTALL FIRMWARE UPGRADE
User avatar
triceraptor
Posts: 6
Joined: Tue Feb 19, 2013 3:50 am

Re: TP-LINK TL-WN727N v3.2 on Samsung UE40EH5450WXXH

Post by triceraptor »

Sorry
You have right
I forgot.
Sorry again
globula
Posts: 3
Joined: Sat Apr 27, 2013 6:38 pm

Re: TP-LINK TL-WN727N v3.2 on Samsung UE40EH5450WXXH

Post by globula »

I did the network card 2 days ago

This method will work only on ubuntu 10.04, i did tried on 12.04 but I got no results, well it did compile well the drivers, but I was not able to use the iwpriv command, nothing was showing up

Also this part "sebi@sebi-desktop:~$ sudo rmmod rt5572sta" does not apply to everyone, I did not had this issue, and I suspect that this was the module of the network card that he was using at that moment, therefore if you don`t see it, don`t be scared.

What issues i had when i first plugged in the adapter
- i connected the adapter to the wifi router, when i went to samsung apps i got the "error model bind", anyway after while (1 hour) finally the apps started to work
-i still have an issue with the apps, they are constantly requesting to update even if i give the command to update
- i can only stream HD Blu Ray only when i am using the network card from the TV as AP, otherwise i get a constant from 10 to 15 seconds a buffer freeze screen which is very annoying

Post Reply

Return to “[E] Hardware”