Detect signal wireless

Post Reply
User avatar
Maurizio
Posts: 826
Joined: Mon Oct 10, 2005 1:29 pm
Contact:

Detect signal wireless

Post by Maurizio »

It is possible detect the level of wireless signal ?

Regards Maurizio
ramirezosvaldo
Posts: 101
Joined: Mon Oct 10, 2005 6:48 pm
Location: Cd. Juarez Chihuahua
Contact:

Post by ramirezosvaldo »

Maurizio

Today I recive a DVD from Intel, inside of this, there is a examples of how to determine the Signal of the LAN and battery status.

I dont know if this is compatible with VCE, because it is Intel C++.

If Antonio say yes, I can put the example that come with the DVD.

Regards
Osvaldo Ramirez
User avatar
Biel EA6DD
Posts: 682
Joined: Tue Feb 14, 2006 9:48 am
Location: Mallorca
Contact:

Post by Biel EA6DD »

:o Will be nice. I'm interested with the battery status, I hope will be compatible.
Saludos desde Mallorca
Biel Maimó
http://bielsys.blogspot.com/
User avatar
Antonio Linares
Site Admin
Posts: 42511
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Has thanked: 31 times
Been thanked: 73 times
Contact:

Post by Antonio Linares »

Osvaldo,

Yes, please upload it to www.hyperupload.com and copy here the provided download link. Thanks
regards, saludos

Antonio Linares
www.fivetechsoft.com
pawelu
Posts: 126
Joined: Thu Oct 06, 2005 10:18 pm
Location: Poland
Contact:

Post by pawelu »

Biel,

this is sample to check bettery status, I use function BatteryLife eg. If BatteryLife () < 10; MsgInfo (''); Endif

Regards
Pawel

Code: Select all | Expand

HB_FUNC (BATTERYLIFE)
{
   BOOL iRet;
   SYSTEM_POWER_STATUS_EX status;
   iRet = GetSystemPowerStatusEx (&status, TRUE);

   hb_retnl ((INT) status.BatteryLifePercent);
}
HB_FUNC (BATTERYINFO)
{
   BOOL iRet;
   SYSTEM_POWER_STATUS_EX status;
   iRet = GetSystemPowerStatusEx (&status, TRUE);

   hb_reta (9);
   hb_stornl ((INT) status.ACLineStatus, -1, 1);
   hb_stornl ((INT) status.BatteryFlag, -1, 2);
   hb_stornl ((INT) status.BatteryLifePercent, -1, 3);
   hb_stornl ((ULONG) status.BatteryLifeTime, -1, 4);
   hb_stornl ((ULONG) status.BatteryFullLifeTime, -1, 5);
   hb_stornl ((INT) status.BackupBatteryFlag, -1, 6);
   hb_stornl ((INT) status.BackupBatteryLifePercent, -1, 7);
   hb_stornl ((ULONG) status.BackupBatteryLifeTime, -1, 8);
   hb_stornl ((ULONG) status.BackupBatteryFullLifeTime, -1, 9);
}
User avatar
Biel EA6DD
Posts: 682
Joined: Tue Feb 14, 2006 9:48 am
Location: Mallorca
Contact:

Post by Biel EA6DD »

Hi Pawel,
Fine Busines, just what I'm looking for. Many thanks it's running 100 %.
Many thanks.
Best Regards
Saludos desde Mallorca
Biel Maimó
http://bielsys.blogspot.com/
User avatar
Maurizio
Posts: 826
Joined: Mon Oct 10, 2005 1:29 pm
Contact:

Post by Maurizio »

Hello Ramirez

it is possible have this example ?

regards Maurizio
ramirezosvaldo
Posts: 101
Joined: Mon Oct 10, 2005 6:48 pm
Location: Cd. Juarez Chihuahua
Contact:

Post by ramirezosvaldo »

Sorry Friends

The samples that Intel show, are in C#, but If anyway it help
here is the links

http://www.intel.com/cd/ids/developer/a ... 213226.htm

http://www.intel.com/cd/ids/developer/a ... 221959.htm

Best Regards to all
Osvaldo Ramirez
Post Reply