Opened 6 years ago

Closed 6 years ago

#223 closed defect (fixed)

SetAntennaPower needs to be called twice

Reported by: chrysn@… Owned by: mickey
Priority: minor Milestone:
Component: framework/ogsmd Version:
Keywords: Cc:

Description

when starting the GSM resource, two calls SetAntennaPower?(True) need to be done on the org.freesmartphone.GSM.Device interface, one before and one after pin entry.

if the first call is not done, the second (after successful pin submission) raises "org.freesmartphone.GSM.SIM.AuthFailed?: SIM PIN required".

the attached program demonstrates the problem. comment out the try/except/else block and the program will die with said exception.

this was tested on a gta02 running milestone4 with an austrian "a1" sim card (in case this matters).

if the behavior is by design, it should be documented.

Attachments (1)

ghone-minimal (833 bytes) - added by chrysn@… 6 years ago.
example program turning on the antenna. set PIN appropriately. comment out try/except/else to see exception.

Download all attachments as: .zip

Change History (2)

Changed 6 years ago by chrysn@…

example program turning on the antenna. set PIN appropriately. comment out try/except/else to see exception.

comment:1 Changed 6 years ago by mickey

  • Resolution set to fixed
  • Status changed from new to closed

This is by design. It's now documented in the reference docs, thanks!

Note: See TracTickets for help on using tickets.