Ticket #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
Change History
Changed 5 years ago by chrysn@…
- Attachment ghone-minimal added
Note: See
TracTickets for help on using
tickets.

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