usb-serial adapter

Report problems and success stories with Gargoyle on various hardware platforms.

Moderator: Moderators

manski
Posts: 13
Joined: Wed Feb 10, 2016 1:02 pm
Location: near Warsaw / Poland
Contact:

usb-serial adapter

Post by manski »

Hi , I have no big experience in linux ( my domain is build electronics devices) then i have problem can't to solve myself . I have device with serial port ( standard RS-232 with DB-9 plug ) this device generate report every 5 minutes , i need to send this report to external server . When i open two PUTTY session on my PC ( with win7 OS ) one session is to serial port , another one to external server , and retype report from serial session to server session all works OK , report is stored on external server . Than i need to automate this process using my router tplink 1043 ( this one is still power on ) with gargoyle 1.8.0, and USBto serial converter named HL340 . I nstalled ser2net package , but i can't to install ubs to serial driver . When i try to install kmod-usb-serial-ch341 i have error :
"opkg install kmod-usb-serial-ch341
ERROR: Dependency kernel (= 3.10.49-1-0114c71ed85677c9c1e4911437af4743) of package kmod-usb-serial-ch341 is installed, but has incompatible version 3.10.49-1-e3712c4fe14d26d5acf89d959de871aa and is marked as 'hold' "
i found also other solution to unpack ch341_drv.tar.bz2 file , comment some lines in two files and run sh script , but also i have error :
"root@Gargoyle:/tmp/usb_mount/E872-2C48/pliki# sh ins.sh
make -C /lib/modules/3.10.49/build SUBDIRS=/tmp/usb_mount/E872-2C48/pliki modules
make: *** /lib/modules/3.10.49/build: No such file or directory. Stop.
make: *** [default] Error 2
kmod: usbserial is already loaded
Failed to find tty_ioctl. Maybe it is a built in module ?
Failed to find ch341. Maybe it is a built in module ?"
Is it possible to use this converterwith gargoyle ? how to install driver in my system ? :( ( in windows7 this converter working properly ) .
p.s. sorry for my english .
TL WR 1043 with 64MB RAM , and internal USB 4 port hub

Lantis
Moderator
Posts: 7063
Joined: Mon Jan 05, 2015 5:33 am
Location: Australia

Re: usb-serial adapter

Post by Lantis »

The package you are trying to install is to old and therefore not compatible. You could build the firmware yourself and include this file.
https://lantisproject.com/downloads/gargoylebuilds for the latest releases
Please be respectful when posting. I do this in my free time on a volunteer basis.

manski
Posts: 13
Joined: Wed Feb 10, 2016 1:02 pm
Location: near Warsaw / Poland
Contact:

Re: usb-serial adapter

Post by manski »

Thanks for answer , but i wrote i am not linux specialist , and i totally don't know how to do it . For this time i always download to PC file with gargoyle , wite to the router and so on . somtime i unbrick router by serial port .But build the firmware is for me as "black magic" :?
TL WR 1043 with 64MB RAM , and internal USB 4 port hub

nworbnhoj
Posts: 916
Joined: Mon Jul 21, 2014 10:08 am
Location: Australia
Contact:

Re: usb-serial adapter

Post by nworbnhoj »

manski wrote:But build the firmware is for me as "black magic" :?
And @Lantis is the Wizard ;-)
Can you help someone else get Gargoyle up and running?
TL-WDR3600 : Gargoyle 1.9.0 : NBN FixedWireless
TL-WR1043ND-V2 : Gargoyle 1.8.0 : 3G Huawei E160E

manski
Posts: 13
Joined: Wed Feb 10, 2016 1:02 pm
Location: near Warsaw / Poland
Contact:

Re: usb-serial adapter

Post by manski »

I did the next step , create subdirectory with all permision but still is something wrong , now when i do sh ins.sh i have error :

root@Gargoyle:/bin/bash# sh ins.sh
make -C /lib/modules/3.10.49/build SUBDIRS=/bin/bash modules
make[1]: Entering directory `/lib/modules/3.10.49/build'
make[1]: *** No rule to make target `modules'. Stop.
make[1]: Leaving directory `/lib/modules/3.10.49/build'
make: *** [default] Error 2
kmod: usbserial is already loaded
Failed to find tty_ioctl. Maybe it is a built in module ?
Failed to find ch341. Maybe it is a built in module ?

then i have no rules , when can i find this rules ? and where to copy this rules ?
TL WR 1043 with 64MB RAM , and internal USB 4 port hub

manski
Posts: 13
Joined: Wed Feb 10, 2016 1:02 pm
Location: near Warsaw / Poland
Contact:

Re: usb-serial adapter

Post by manski »

Hi last time i tried many possibilities and :
I installed old polish gargoyle wersion 1.6.2.2 by OBSY .With this version was possible to install driver for ch-341 USB to serial adapter . I did it , installed remserial aplication , and ..... not working .data flow to serial port was incorrect independent of serial port settings . The reason was problem with this adapter or his driver , when i changed USB to serial adapter on another one ( with PL2303 chip ) ewerythink works properly . Remserial send correct data to external serwer , but gargoyle version 1.6.2.2 has a problem with external root memory , and wan't to install programs in external memory . Then i install OpenWrt software Chaos Calmer , it also work with my USB adapter ( on PL2303 , i forgott about CH341 - it was some mistakes ) but OpenWRT is to me hard to configure ( also with Luci ) and has no bandwith management as Gargoyle .Then I install Gargoyle Chaos Calmer , working properly expect driver to Usb-serial adapter , i can't to install , incorrect kernel version . Do i have build all firmware from start to end for one driver , do i compile only kmod-usb-serial-PL2303 for my version of Gargoyle . Where is tutorial how can I do it ?
TL WR 1043 with 64MB RAM , and internal USB 4 port hub

Lantis
Moderator
Posts: 7063
Joined: Mon Jan 05, 2015 5:33 am
Location: Australia

Re: usb-serial adapter

Post by Lantis »

https://lantisproject.com/downloads/gargoylebuilds for the latest releases
Please be respectful when posting. I do this in my free time on a volunteer basis.

manski
Posts: 13
Joined: Wed Feb 10, 2016 1:02 pm
Location: near Warsaw / Poland
Contact:

Re: usb-serial adapter

Post by manski »

i try step by step acording to manual but i have error :
svn: E000110: Unable to connect to a repository at URL 'svn://svn.openwrt.org/openwrt/branches/chaos_calmer'
svn: E000110: Nieudane połączenie z hostem 'svn.openwrt.org': Przekroczony czas oczekiwania na połączenie
ERROR: could not download source, exiting
is it my problem or svn server , what next
TL WR 1043 with 64MB RAM , and internal USB 4 port hub

Lantis
Moderator
Posts: 7063
Joined: Mon Jan 05, 2015 5:33 am
Location: Australia

Re: usb-serial adapter

Post by Lantis »

The server was down, not a problem with you.

The openwrt server has been experiencing issues and is being moved to a new server.
https://lantisproject.com/downloads/gargoylebuilds for the latest releases
Please be respectful when posting. I do this in my free time on a volunteer basis.

manski
Posts: 13
Joined: Wed Feb 10, 2016 1:02 pm
Location: near Warsaw / Poland
Contact:

Re: usb-serial adapter

Post by manski »

Hi , i did all according manual , compile spend many time ( i have eight cores , but compiler using only one or two , cpu usage 14% ), but no result ( i choose make custom , sign needed options ) , summary is :

compilation terminated.
make[5]: *** [main.o] Error 1
make[5]: Leaving directory `/home/piotr/gargoyle/custom-src/build_dir/target-mips_34kc_uClibc-0.9.33.2/gkrellm-2.3.1/server'
make[4]: *** [/home/piotr/gargoyle/custom-src/build_dir/target-mips_34kc_uClibc-0.9.33.2/gkrellm-2.3.1/.built] Error 2
make[4]: Leaving directory `/home/piotr/gargoyle/custom-src/package/admin/gkrellmd'
make[3]: *** [package/admin/gkrellmd/compile] Error 2
make[3]: Leaving directory `/home/piotr/gargoyle/custom-src'
make[2]: *** [/home/piotr/gargoyle/custom-src/staging_dir/target-mips_34kc_uClibc-0.9.33.2/stamp/.package_compile] Error 2
make[2]: Leaving directory `/home/piotr/gargoyle/custom-src'
make[1]: *** [world] Błąd 2
make[1]: Opuszczenie katalogu `/home/piotr/gargoyle/custom-src'
piotr@xw6400-ubuntu:~/gargoyle$ ^C
piotr@xw6400-ubuntu:~/gargoyle$

what is wrong ?
TL WR 1043 with 64MB RAM , and internal USB 4 port hub

Post Reply