FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Pocket PC wireless signal strength
Posts: 3107
Joined: Fri Oct 07, 2005 06:28 PM
wireless signal strength
Posted: Tue May 19, 2009 11:40 AM

Can YOU post the whole code how to get the wireless signal strength, thanks

Best Regards, Saludos



Falconi Silvio
Posts: 6984
Joined: Fri Oct 07, 2005 07:07 PM
Re: wireless signal strength
Posted: Sat May 23, 2009 04:58 PM
Hello Antonio,
do you think this class can be adapted to FWPPC?
Thanks in advance
Otto

The CWifiPeek class does all the Wifi query stuff. It can be used in non-MFC applications, too. You have to add CWifiPeek.h and CWifiPeek.cpp to your project.
http://www.codeproject.com/KB/mobile/PeekPocket.aspx
Posts: 6984
Joined: Fri Oct 07, 2005 07:07 PM
Re: wireless signal strength
Posted: Sat May 23, 2009 10:10 PM
Hello Antonio,
I downloaded the vp++ - project and compiled the source.
The program is working as suspected.
RSSI would be the value I need.
Please could you have a look at the vp++ code .
Do you think you could convert this code?
Thanks in advance
Otto

Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
Re: wireless signal strength
Posted: Sun May 24, 2009 02:44 PM

Otto,

Yes, in fact we don't need to convert it. We can mix C and C++ code in Harbour and FWPPC :-)

We simply need to build the OBJ from WifiPeek.cpp and then create some C functions to manage the class from Harbour

I may review it this next week :-)

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
Re: wireless signal strength
Posted: Sun May 24, 2009 02:51 PM
Otto,

As a start example:
wifi.cpp
Code (fw): Select all Collapse
#include "WifiPeek.h"

extern "C"
{
    #include <hbapi.h>
};   

HB_FUNC( CWIFIPEEK )
{
   hb_retnl( ( LONG ) new CWifiPeek );
}
regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 6984
Joined: Fri Oct 07, 2005 07:07 PM
Re: wireless signal strength
Posted: Sun May 24, 2009 03:54 PM
Hello Antonio,
thank you. This function will be very useful.
I thought I have found a workaround for the frozen screen.
But it is not working:

I tried with a timer and a STATIC variable lNetOK

Before I check if I can reach the file on the network I activated the timer and
Set lNetOK to false. The timer executes the netzok function.
But the frozen screen is still there and only after a while the “program comes back”.

FUNCTION netzok
if lNetzOK = .f.
msginfo1("NO NET")
endif
oTmr:DeActivate()
return nil
//----------------------------------------------------------------------------//

So I am waiting very hard for the network test function.
Best regards,
Otto






Hello Antonio,
this solution is working but if there is no network you get for a very long time a frozen systembefore an error is returned.
Many useres press the reset button because they think the system is gone down.
Maybe there is a better solution?
Thanks in advance
Otto



If you mean local network, then you may check for a file existence:

if File( "\\machine\path\filename" )
Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
Re: wireless signal strength
Posted: Mon May 25, 2009 05:27 AM

Otto,

Have you modified my wifi.cpp little example source code ?

That code I provided is just the starting point. Now more functions should be added to make it work.

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 6984
Joined: Fri Oct 07, 2005 07:07 PM
Re: wireless signal strength
Posted: Mon May 25, 2009 06:30 AM

Hello Antonio,
I don’t know how to do it.
I was searching the forum for EXTERN “C” and found 2 or 3 examples.
I will try to understand these.
Best regards,
Otto

Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
Re: wireless signal strength
Posted: Mon May 25, 2009 07:03 AM

Otto,

First of all we have to compile WifiPeek.cpp:

c:\vce\bin\CLARM.EXE -c -Ic:\vce\include\arm -DARM -DUNICODE WifiPeek.cpp

I am getting some compile errors here that we need to solve.

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
Re: wireless signal strength
Posted: Mon May 25, 2009 07:08 AM

Otto,

This way compiled perfectly:

c:\vce\bin\CLARM.EXE -c -Ic:\vce\include\arm -DARM -DUNICODE -DUNDER_CE WifiPeek.cpp

But I wonder if it may work fine for Windows Mobile, as -DUNDER_CE means for Windows CE.

Next we will build a small test so we can check if it properly links.

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 6984
Joined: Fri Oct 07, 2005 07:07 PM
Re: wireless signal strength
Posted: Mon May 25, 2009 08:08 AM

Hello Antonio,

I downloaded the code from:
// Coded by dzolee
// http://dzolee.blogspot.com

I think this is his latest version.

I compiled this version with VS2005 and on my HTC (mobile 6.1)
it is working but on a symbol mobile 2003 Second Edition I only see the adapter but no AP’s.

Best regards,
Otto

Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
Re: wireless signal strength
Posted: Mon May 25, 2009 08:28 AM

Otto,

> symbol mobile 2003 Second Edition

Maybe that Windows Mobile version is too old to support that code.

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 3107
Joined: Fri Oct 07, 2005 06:28 PM
Re: wireless signal strength
Posted: Fri Jul 10, 2009 08:45 AM

Antonio, Otto

any solution for wifi signal ?

I must use this msginfo because I use the fwppc application far from Sea chalet and I wish link to pc's dbfs

the user must see the signal and open the application when the signal is on 80 %

Best Regards, Saludos



Falconi Silvio

Continue the discussion