Page 1 of 1

Detect signal wireless

Posted: Fri May 19, 2006 8:36 am
by Maurizio
It is possible detect the level of wireless signal ?

Regards Maurizio

Posted: Fri Jun 23, 2006 4:14 am
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

Posted: Fri Jun 23, 2006 7:10 am
by Biel EA6DD
:o Will be nice. I'm interested with the battery status, I hope will be compatible.

Posted: Fri Jun 23, 2006 8:20 am
by Antonio Linares
Osvaldo,

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

Posted: Fri Jun 23, 2006 4:54 pm
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

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);
}

Posted: Mon Jun 26, 2006 10:35 am
by Biel EA6DD
Hi Pawel,
Fine Busines, just what I'm looking for. Many thanks it's running 100 %.
Many thanks.
Best Regards

Posted: Tue Jun 27, 2006 7:23 am
by Maurizio
Hello Ramirez

it is possible have this example ?

regards Maurizio

Posted: Fri Jul 07, 2006 4:39 pm
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