PDA

Bekijk de volledige versie : Project WL-HDD and Weather Station (WS2300)



sjm
22-06-2004, 14:17
Hi.

Can anyone tell me if user-mode usb programs will work, using libusb?

I have a Linux project http://oww.sf.net, that can run a USB-connected weather station. I'm wondering how likely it would be that I could get this running on the Asus.

Thanks,

Simon

phobos2
11-10-2004, 02:03
I am tech lama/HW/ -It it possible, or exist USB thermometer compatibile with asus WL500g.
My idea is to integrate thermometer with webserver - to log temperature, maybe other parametres of weather .. humidity, ......
MAybe USB-COM convertor and COM thermometer + linux drivers .....
I dont know just idea.....

ICQ - 233853463
www.voslogin.net

Styno
11-10-2004, 08:20
I don't know about USB, but you can wire up an 8 channel A/D converter to the paralel port on the router. That gives you 8 analog measurements and several digital in- and outputs. You have to write your own I/O driver though...

WlanMan
11-10-2004, 14:37
Hi

There are varios temperature usb sensors around, what i have in mind is the frogbox, http://www.froggyhome.com which is a plastik frog imiatation with some weather sensors and usb inside :).
There are some others i had seen, but i have none in mind any more.

Greets

Muffe
25-05-2005, 22:07
Will it be possible to compile the 'remserial' software ( http://lpccomp.bc.ca/remserial/ ) to work on a WL-500g unit? Or does it exist other, similar programs taht already works?

I have an USB->RS-232 adapter, and want to connect a weather station to the router, and access the weather station fom my computer as if the weather station were connected directly to it, and thought this piece of software would do the trick.

I have never tried to compile anything on the WL-500g, and I see that it's a relatively simple program, si I want to give it a try, but somebody have to push me very hard in the right direction.

Thanks.

Styno
26-05-2005, 09:30
I guess you just have to give it a try.

For setting up a cross-compile environment see other topics on this forum and http://wl500g.dyndns.org

drasch
17-08-2005, 07:53
I connected my weatherstation (a wx200) to the wl500gx.
I used the latest firmware with the usbserial and pl2303 modules.
I compiled the weather software (http://wx200d.sf.net/).


See http://david.zope.nl/hardware/wl500g/wx200wl500g

eklem
06-03-2006, 15:55
Is it possible to somehow connect a serial port to the parallel port on a wl500g r.1.0 ?

I have a weather station (ws3600) and I'm checking if I can use my wl500g as the reciever/transmitter of the data.

MatB
09-03-2006, 08:53
Get a USB to serial adapter, they come cheap on ebay.

eklem
09-03-2006, 10:20
The weatherstation I want to connect is reported to not work with a usb2serial converter. They use the serial-port in a strange way (http://open3600.fast-mail.nl/tiki-view_forum_thread.php?comments_parentId=90&topics_threshold=0&topics_offset=1&topics_sort_mode=commentDate_desc&topics_find=&forumId=5)

But I guess your answer imply that it won't work (serial port emulation on parallel port). Anyway, thanks for the answer.

britnet
09-03-2006, 14:56
Is it possible to somehow connect a serial port to the parallel port on a wl500g r.1.0

I think the wl500g have one parallel port, so you can buy an parallel -> serial Adapter, they are very cheap and the smartest solution I think.

eklem
10-03-2006, 11:51
Ok, that's the hardware-part (something like this I guess: http://www.databutikken.com/no/default.php?artId=AD101004). How do I go about solving the software-part? Is it just pointing the software to the parallel port with a converter, or do I have to do some extra stuff?

once
24-01-2007, 01:21
here is my package.i added all the files in /tmp/local and a directory named sbin in the folder contains a file post-boot which startup the remserial when wl500b is booting up.

but unfortunatly i chaged my usb-serial adapter,then i can only send datas from serial to tcp,and cannot receive from serial.:mad:

i donnot know why.maybe the problem is the driver is not suit for my adapter..

wish the package will do some good for you.

mistraller
07-02-2007, 14:17
I run serial over tcp successfully with ser2net.

Look at this topic.
http://wl500g.info/showthread.php?t=4535

On my pc I have a virtual comport software.

look here:
http://www.hw-group.com/products/hw_vsp/index_en.html

This works for my Solar inverter readings.

But now I want to put this readings in a RRD graph, but I don't know how I can create a script to write commands and read the serial output. Some examples run on perl, but use a module which is not included in the microperl package installed on my asus. Any idea?

britnet
24-09-2007, 10:09
Hi at all,

i want to install open 2300 on my wl-500gP.

http://sourceforge.net/projects/open2300/

But I don't know, wether it has to be recompiled or not.

Should it be run just after copying the files?

Thanks

oleo
25-09-2007, 02:50
It should. Depending on your hardware for communication. Safe way is RS232 hardware mod.

britnet
25-09-2007, 14:51
Thanks for replying.

What is a RS232 hardware mod. ? :confused:

oleo
26-09-2007, 07:46
RS232 level converter using MAX3232 or similar chip that connects to internal header where RS232 serial signals are available along with power for level converter.

britnet
28-09-2007, 19:31
Thanks for your info.

Can somebody compile the program? (like described in the install-file)

Oleo, can you make an ipkg package?

britnet
01-10-2007, 10:40
Does anybody know, how to add a programm to ipkg??

oleo
05-10-2007, 13:30
http://trac.nslu2-linux.org/optware/browser/trunk/make/open2300.mk

britnet
05-10-2007, 15:07
Thank You SOOOO Much!!!

But,
how can i now add this to my wl500-gP?

Just "ipkg install open2300" ???

oleo
05-10-2007, 17:11
yes. I recommend oleg feed.

Thanks goes to Brian Zhou.

nebuka
09-12-2007, 11:35
Hello,

i've a prject to use my WL-HDD with my Weather Station LacrossTechnologi WS2300.
I need to know if that is possible with Oleg's firmware (or other) :
- use a USB-RS232 adapter
- use Perl for WS2300 linux script

Anyone can help me. Is my first experience with alternate firmware for WL-HDD.

I work on Windows XP on my computer.

Nebuka

nebuka
09-12-2007, 15:16
With some search on forum i've already to function my USB to serial adapter (PL2303)

But when i want to install the package open2300 (for the weather station) i've this message :
mkdir: Cannot create directory `//opt/tmp/': Read-only file system

I need to connect with root in console but what is the root password ?

Nebuka

Jeroen van Omme
10-12-2007, 08:12
mkdir: Cannot create directory `//opt/tmp/': Read-only file system
Nebuka
Nebuka,
this usually means you haven't mounted you file-system. see http://wl500g.info/showthread.php?t=10307

WLAN-Fan
10-12-2007, 15:38
Hello,

I run serial over tcp successfully with ser2net.

Look at this topic.
http://wl500g.info/showthread.php?t=4535

On my pc I have a virtual comport software.

look here:
http://www.hw-group.com/products/hw_vsp/index_en.html

This works for my Solar inverter readings.

But now I want to put this readings in a RRD graph, but I don't know how I can create a script to write commands and read the serial output. Some examples run on perl, but use a module which is not included in the microperl package installed on my asus. Any idea?
Does it work your system of Linux-Programm "ser2net" an the Windows-Programm for the "virtual-RS232"? Or is a hope?

Thanks.

nebuka
10-12-2007, 19:41
Nebuka,
this usually means you haven't mounted you file-system. see http://wl500g.info/showthread.php?t=10307


Thanks Jeroen van Omme, i've install corectly the oleg firmware with your link.
I've install the open2300 and correctly configure the USB to Serial adapter.

But fetch2300 dosen't work fine, i've some line :
pl2303.c: pl2303_read_int_callback - usb_submit_urb failed with result -22

with dmesg.

I've found on this site (NSLU2) (http://www.nslu2-linux.org/wiki/Peripherals/USB2Serial#pl2303)
the same probleme.

But when I want to install the new driver i can't replace the original pl2303.o file by the new pl2303.o file. On WL-HDD the file pl2303.o is in read-only.

How can replace the pl2303.o file ?

nebuka
23-12-2007, 16:22
Hello,

nobody have a idea for my problem ?
Anyone have been already use a WS2300 with a WL-HDD ?

Thanks

Nebuka

stribog
12-01-2009, 21:32
Hi there,

if anyone here is interested in weather forecast look at www.stribog.net (http://www.stribog.net).

Software is running from flashdisk and is able to present weather station data on internal ASUS web server.

Mac

tryme
23-03-2009, 11:31
Hello, is it possible connect (via USB hub) 2 or more USB convertors? Thx

dyonisos
23-03-2009, 23:24
yes, you can do that. works like a charm.

tryme
06-04-2009, 08:22
I have first convertor on 1st USB port. In 2nd USB port I have a USB HUB. If I plug 2nd RS232 convertor into USB HUB, WL don't detect this convertor. Any idea? Thx.

al37919
06-04-2009, 21:07
the problem is generally known. Its reason is poor usb support in old 2.4 kernel.

Possible solutions:
1) use usb1 hub
2) disable usb2 support ( rmmod ehci-hcd )
3) try firmware from here: http://code.google.com/p/wl500g/ It has last 2.4 kernel and improved usb support.

BTW, which device you have?

tryme
11-05-2009, 11:39
Thx, I have profilic chip convertors (one for temper DS, one for LCD).

dyonisos
13-05-2009, 22:20
Hello tryme

what is your LCD application and your HW setup? I guess you are using ipkg software. Right? Tnx

waveqam
19-06-2010, 03:13
Good day all,

I have a new WL-500gP V2 SN A4IAAC017945, PIN Code 58450550, MAC 485B394AC003, ASUS Firmware 3.0.44

I am trying to load WL500gpV2-1.9.2.7-10-USB-1.71.trx (attached) which is modified to allow me to connect my USB enabled weather station and serve weather data on the web.
:(
I first tried the web interface and it failed with an error

(see image)

I put the unit into recovery mode and tried tftp

darcypa@darcypa-laptop:~/Documents$ ping 192.168.1.1
PING 192.168.1.1 (192.168.1.1) 56(84) bytes of data.
64 bytes from 192.168.1.1: icmp_seq=1 ttl=100 time=4.18 ms
64 bytes from 192.168.1.1: icmp_seq=2 ttl=100 time=1.79 ms
64 bytes from 192.168.1.1: icmp_seq=3 ttl=100 time=2.27 ms
64 bytes from 192.168.1.1: icmp_seq=4 ttl=100 time=5.17 ms
^C
--- 192.168.1.1 ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time 3289ms
rtt min/avg/max/mdev = 1.796/3.356/5.172/1.378 ms
darcypa@darcypa-laptop:~/Documents$ tftp 192.168.1.1
tftp> binary
tftp> verbose
Verbose mode on.
tftp> get ASUSSPACELINKaaaa /dev/null
getting from 192.168.1.1:ASUSSPACELINKaaaa to /dev/null [octet]
Transfer timed out.

tftp> put WL500gpV2-1.9.2.7-10-USB-1.71.trx ASUSSPACELINK
putting WL500gpV2-1.9.2.7-10-USB-1.71.trx to 192.168.1.1:ASUSSPACELINK [octet]
Transfer timed out.

tftp> quit

I also tried the ASUS Firmware recovery mode which also failed.

(see image)

Can anyone think of anything else? Can this be done via the ZVMODELVZ page?

I suspect there must be some sort of name check or signature check in place?

Thanx

wpte
19-06-2010, 11:31
when you upload a firmware image via tftp (firmware restoration tool = tftp) the router won't check if the models are the same...

what exactly is changed in the firmware? if it's just a kernel module which need to load up?

waveqam
19-06-2010, 17:51
what exactly is changed in the firmware? if it's just a kernel module which need to load up?

I suspect that it is the USB funtions that were added. I go the file from here

http://www.stribog.net/router-asus

I have very basic understanding (insatll, add packages etc...) of Linux but don't know how to make my own kernal. This firmware is exacly what I am looking for thats why I wanted to try it.

I also found another site that uses OpenWRT that I might try next If I can't get this one working.

WaveQam

wpte
19-06-2010, 22:11
I suspect that it is the USB funtions that were added. I go the file from here

well, I've searched a bit, and found this weatherstation that is supported by the software on that site.
found this guy writing about it, and using linux: http://www.lemis.com/grog/programs/WH1080.php
all it needs is a library called "libusb" (as I suspected) which runs on pretty much any firmware:)

you can keep trying koppel, which is a modified version of oleg firmware ( http://code.google.com/p/wl500g/downloads/list ), it adds support for usb 3G modems or hsdpa, something like that:p
openwrt is also quite nice, in the end, they have all access to the same libraries.

anyway, the guy also writes about using free software:

initially spent some time getting the unit to work with wview, for which I received a patch for an old version. I had lots of trouble with wview, and when the power company damaged the unit in November, I started writing my own code.

The software is written in C (of course!), accesses the USB hardware with libusb, whatever that may be (there appear to be at least 3 different incompatible ones, and it's not the current version described on the libusb project home page). I store readings in a MySQL database, use gnuplot to generate the images, and display it on web pages using PHP and Apache. If it weren't for the fact that it runs on FreeBSD, it would be a typical LAMP application.
it requires a bit more work probably tho;)