Search the web
Sign In
New User? Sign Up
Lacrosse_weather_stations · Lacrosse weather stations
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Want your group to be featured on the Yahoo! Groups website? Add a group photo to Flickr.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Open8610 for Windows   Message List  
Reply | Forward Message #2061 of 3280 |
Re: Open8610 for Windows -compiled& almost done

Ok, had a go and it did compile something -there's some problems with
speed but it does work (sort of).

This may be due to my setup -I've really got little idea what I'm
doing when compiling this since the open3600 authors have disappeared,
and I've not done this before.
I'm using the FTDI usb-serial I mentioned before which adds another
potential issue c.f. a real serial port.

Installing mingw32 I've used: http://www.mingw.org/download.shtml
then I installed:
MSYS-1.0.10.exe and installed it
gcc-core-3.4.2-20040916-1.tar
mingw-utils-0.3.tar
w32api-3.6.tar
binutils-2.15.91-20040904-1.tar
mingw-runtime-3.9.tar
-extracting them into the mingw directory of the file structure.

That seemed to cure the missing file problems when doing a make.
I'm thinking about adding mingw32-make-3.80.0-3.tar -but no idea what
that does for the environment.

When doing a make I get:
gcc -Wall -O3 -DVERSION=0.10 -DWIN32=1 -c -o dump8610.o dump8610.c
gcc -Wall -O3 -DVERSION=0.10 -DWIN32=1 -c -o rw8610.o rw8610.c
gcc -Wall -O3 -DVERSION=0.10 -DWIN32=1 -c -o linux8610.o linux8610.c
gcc -Wall -O3 -DVERSION=0.10 -DWIN32=1 -c -o win8610.o win8610.c
win8610.c: In function `open_weatherstation':
win8610.c:63: warning: passing arg 7 of `DeviceIoControl' from
incompatible pointer type
win8610.c:92: warning: assignment makes integer from pointer without a
cast
win8610.c:93: warning: assignment makes integer from pointer without a
cast
win8610.c:94: warning: assignment makes integer from pointer without a
cast
win8610.c:95: warning: assignment makes integer from pointer without a
cast
win8610.c:96: warning: assignment makes integer from pointer without a
cast
win8610.c:35: warning: unused variable `status'
win8610.c:36: warning: unused variable `EventMask'
win8610.c:37: warning: unused variable `Events'
win8610.c: In function `set_DTR':
win8610.c:192: warning: passing arg 7 of `DeviceIoControl' from
incompatible pointer type
win8610.c:196: warning: passing arg 7 of `DeviceIoControl' from
incompatible pointer type
win8610.c: In function `set_RTS':
win8610.c:220: warning: passing arg 7 of `DeviceIoControl' from
incompatible pointer type
win8610.c:225: warning: passing arg 7 of `DeviceIoControl' from
incompatible pointer type
win8610.c: In function `get_DSR':
win8610.c:245: warning: passing arg 7 of `DeviceIoControl' from
incompatible pointer type
win8610.c: In function `get_CTS':
win8610.c:274: warning: passing arg 7 of `DeviceIoControl' from
incompatible pointer type
win8610.c: In function `citizen_weather_send':
win8610.c:542: warning: format argument is not a pointer (arg 4)
gcc -Wall -O3 -DVERSION=0.10 -DWIN32=1 -o dump8610 dump8610.o rw8610.o
linux8610.o win8610.o -lm -lwsock32 -static
gcc -Wall -O3 -DVERSION=0.10 -DWIN32=1 -c -o history8610.o history8610.c
gcc -Wall -O3 -DVERSION=0.10 -DWIN32=1 -o history8610 history8610.o
rw8610.o linux8610.o win8610.o -lm -lwsock32 -static
gcc -Wall -O3 -DVERSION=0.10 -DWIN32=1 -c -o log8610.o log8610.c
gcc -Wall -O3 -DVERSION=0.10 -DWIN32=1 -o log8610 log8610.o rw8610.o
linux8610.o win8610.o -lm -lwsock32 -static
gcc -Wall -O3 -DVERSION=0.10 -DWIN32=1 -c -o log8610echo.o log8610echo.c
gcc -Wall -O3 -DVERSION=0.10 -DWIN32=1 -o log8610echo log8610echo.o
rw8610.o linux8610.o win8610.o -lm -lwsock32 -static

So, running 'log8610echo testwin.txt open8610.conf' with full debug I
get 'open_weatherstation' and the testwin.txt is made then about
2-3mins of almost nothing. It appears to wait a long time before doing
the Clear DTR. Then it slowly jumps through the Got DTS etc resulting in:
read_safe - two readings identical
0 additional sensor(s), record length is 10, max record count is 3266
Reading record 6 at 0xa0: 00 12 04 06 07 08 15 50 64 67
- I think there should be a line formatted as per the reading in the
file (which is the 'echo' part of this program - so there must be some
odd happening and its just working like log8610).

And a reading is dumped in the text file:
04/06 12:04:56 | Ti: 20.8 | Hi: 64 | To1: 20.1 | Ho1: 67 | To2: 52.5 |
Ho2: 7 | To3: -30.0 | Ho3: 0 | Mon Jun 04 12:00:00 2007
Which is correct and even adds new entries correctly on the next line.

Running in a DOS prompt (rather than mingW32 shell) it just seizes at
the Clear DTR, probably messing up the timing and corrupting the data
so that it says :
read_safe() error:Invalid argument. This is maybe from the compile errors.


Update: I tested it on a PC with a real COM1 serial port (no mingW32
install) and it works perfectly with no delays using the command
prompt and log8610echo reports correctly.

Checking the usb-serial issue on a fresh PC, using the FTDI usb-serial
it works fully again from DOS prompt -it does pause for a timed 2
minutes 10secs on the Clear DTR (when logging info at level 5).

I'll post my files up to the group and see if you or L can test and/or
make better sense of the compile errors/timings - but it works for me
and its even there for the USB serial too (but needs speed sorting)..

D



>
> --- In Lacrosse_weather_stations@yahoogroups.com, "phdunham2112"
> <phdunham@> wrote:
> >
> > I am using Open8610, trying to compile Log8610.exe for Windows and am
> > getting a lot of errors. I am on WinXP with Visual Studio v8. Does
> > anyone have a version that is already compiled? Or at the very least,
> > have some hints on how to compile this on WinXP?
> > Thx in advance,
> > Paul
> >
>





Mon Jun 4, 2007 12:54 pm

downlalaway
Offline Offline
Send Email Send Email

Forward
Message #2061 of 3280 |
Expand Messages Author Sort by Date

I am using Open8610, trying to compile Log8610.exe for Windows and am getting a lot of errors. I am on WinXP with Visual Studio v8. Does anyone have a version...
phdunham2112
Offline Send Email
May 30, 2007
2:27 am

Hi Paul, I've just been looking at having a go too. I've got a small project that could do with some remote temp/humidity sensors but would have to work on...
downlalaway
Offline Send Email
Jun 3, 2007
11:03 pm

Ok, had a go and it did compile something -there's some problems with speed but it does work (sort of). This may be due to my setup -I've really got little...
downlalaway
Offline Send Email
Jun 4, 2007
12:55 pm

Anybody tried this yet? Would be good to have some feedback to see if any changes needed.. ... history8610.c ... log8610echo.c ... errors. ... and am ... ...
downlalaway
Offline Send Email
Jun 9, 2007
9:55 pm

I download also your Win Version and it's works good on my TS8610 which is a WS8610 branded by "La Chaine Meteo" in France. It's connected to my Com 1 on my PC...
brainema
Offline Send Email
Jun 12, 2007
11:36 pm

Excellent -thanks Sylvain for trying it and reporting back. Sounds like open8610 works for windows! FTDI usb-serial didn't work with original software for me...
downlalaway
Offline Send Email
Jun 13, 2007
1:56 pm

Hi, I've just bought a WS-8610 and am trying the Windows version of Open8610. I have not recompiled it, but using the .EXE in open8610win.zip. I am getting...
stevendt99
Offline Send Email
Jun 14, 2007
3:13 am

Check the time and date of the measurement -sometimes it loses track. You may need to do a reset of the unit's memory -press Set and hold + for a few secs...
downlalaway
Offline Send Email
Jun 19, 2007
1:44 pm
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help