Author Topic: use of the method PINGetStatus ??  (Read 1487 times)

stef2pont

  • Newbie
  • *
  • Posts: 20
    • View Profile
use of the method PINGetStatus ??
« on: September 26, 2009, 05:32:27 am »
Hello Romans,

I use your library for coding my software, with great success for now. I coding with C++ Builder 2009.

So, where do i use the method PINGetStatus() ? Before, or After the activation of the TnrGSM ?

Finally, can i wrote my analysis in this order ?

PINGetStatus
if return 'SIM PIN' then
PIN = "1234"
PINApply
Activate = true
else
... it's all ok.... and continue.....

thank's man
C++ Builder 3, 5, 6 and now C++ Builder 2009, runing under Win2000, XP and now Vista

Roman Novgorodov

  • Engineer
  • Administrator
  • Hero Member
  • *****
  • Posts: 994
  • we will win
    • View Profile
    • Forums.nrCommLib.Com
Re: use of the method PINGetStatus ??
« Reply #1 on: September 27, 2009, 06:49:59 pm »
Hello

You can fill TnrGsm.PIN property before activation. And this string will be used for PIN.

Roman Novgorodov
DeepSoftware llc - The professional components for Delphi/CBuilder/.NET. The high quality custom software development.
Forums.nrCommLib.Com - DeepSoftware Tech Support Forum.

stef2pont

  • Newbie
  • *
  • Posts: 20
    • View Profile
Re: use of the method PINGetStatus ??
« Reply #2 on: September 28, 2009, 12:12:27 am »
understood !

The PINApply is used for modify the pin code, correct ?
C++ Builder 3, 5, 6 and now C++ Builder 2009, runing under Win2000, XP and now Vista

Roman Novgorodov

  • Engineer
  • Administrator
  • Hero Member
  • *****
  • Posts: 994
  • we will win
    • View Profile
    • Forums.nrCommLib.Com
Re: use of the method PINGetStatus ??
« Reply #3 on: September 30, 2009, 03:04:14 am »
Hello

All actions with GSM are possible after activation only.

The following is more correct :

Code: [Select]
if nrGsm1.PINGetStatus <> ' READY' then begin
  nrGsm1.PIN = "1234";
  nrGsm1.PINApply;
  Update;
else
... it's all ok.... and continue.....

Roman Novgorodov
DeepSoftware llc - The professional components for Delphi/CBuilder/.NET. The high quality custom software development.
Forums.nrCommLib.Com - DeepSoftware Tech Support Forum.

stef2pont

  • Newbie
  • *
  • Posts: 20
    • View Profile
Re: use of the method PINGetStatus ??
« Reply #4 on: September 30, 2009, 09:53:10 pm »
ok, thank's !
C++ Builder 3, 5, 6 and now C++ Builder 2009, runing under Win2000, XP and now Vista