maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   [Announce] SIM-Switcher, automated switching with a double ( dual ) SIM adapter (https://talk.maemo.org/showthread.php?t=85722)

peterleinchen 2012-07-26 22:50

[Announce] SIM-Switcher, automated switching with a double ( dual ) SIM adapter
 
5 Attachment(s)
Having participated in the 2012 Coding Competition (wiki).
It seems you really use/like this little tool or thought it is worth a vote, as it got enough votes to make it second place in both categories
Others, result
and
Beginners, result.


Update:
SIM-Switcher is now in Extras repository,
thank you all for using/testing/feedbacking/voting! :)

Download statistics.

So, here is my very first own thread with a nice tool for everybody running a two SIM adapter in his/her N900.
I do call them Double-SIM, as Dual-SIM naming pretends to have both SIM online, which is not possible with these adapters.

As already stated in this thread there is the possibility to switch the SIM online without rebooting.

Some time went by since this approach and I made some improvements to my solution.

Functionality:
- switch the SIM with one "app" icon click
- 'refresh' hildon-home (to update the operator name)
- choose the cell mode (2G/3G/Dual)
- choose the connection policy, i.e. always ask, any connection, only WLAN, default GPRS connection
- connect to a specific InternetAccessPoint (created via fAPN)
and (badly desired by me and took me ages to find out) you may
- set/unset call forwarding for current SIM and for the SIM you will switch to

All done with one-click (from menu).
--edit You may also add a shortcut to your desktop via the the desktop menu. Or use it with DCEW (same as command line usage, see) or use it with QBW (see here). edit--

Your adapter will need to support the so called 007 mode, i.e. the switching needs to be executed by calling a number (like 001, **1, 11*, 1#, ...).
I have a GDI3SG (fully UMTS compatible) without any effects on battery.
Mine has some characteristic/flaw to activate always the second SIM, when the same number is called (is handled in script).


After installation, use vi nano txpad leafpad or any other editor of your choice and edit
(/home/user/).config/sim_switcher/SIM1
and
(/home/user/).config/sim_switcher/SIM2
to your liking.
At least you need to give the switching code.


So, that's it for now.

Here is the deb package. It is also my very first package, so be gentle with me ;) I made it manually. Installed/removed/installed it on my device and everything fine. (will leave it attached, although in repo is newer/latest version)
Ah, one more: of course this package depends on starhash-enabler, so please install if you do not have already. (repo package has dependency)

I do not expect many users out there with a Double SIM adapter in N900. That is the reason I do attach the DEB directly here and not in the repos (and I do not know how to do that ;)).
But if I get some response here, I will do so ....

Nevertheless here is the package page. So if you like to vote for it (do not forget to log into maemo.org or you will not see the thumb up, as I always do ;)).


Happy switching.



-- edit 1
Giveaway functionality:
- saving and restoring plugins/widgets/desktop
sometimes necessary after crash/kill of hildon-home (seldom hildon-desktop). In x-term call
Code:

sim-switcher savehome
to save your layout (automatically done on installation) and
Code:

sim-switcher restorehome
to restore your layout after sth has gone wrong badly.
--

--edit 2
Upgrade from Pre-Announce to Announce (put into repos).
--

--edit 3
Now in extras-testing with updated version,
possible to set the operator name on desktop icon.
Vote
--

--edit 4
New version with online check before starting the switch.
This is needed to not run the full tasks if not connected, could lead to bad call forwarding settings (esp. if SIMs are from same network. This infinite loop may be canceled via command-line 'sim-switcher break'.
Automatic call of editor on first start.
Vote
--

--edit 5
Important Notice
Please use only version >=0.5.10 for installation!
Otherwise you may experience strange/odd behaviour, see here for more details.
Sorry!
Vote.
--

--edit 6
New stable version 0.5.12 in testing.
Please vote for this version.
--

--edit 7
Version 0.5.12 is now in Extras repository.
--

-- edit 8
New stable version 0.6.5 in Extras-Testing.
Please vote for this version again.
--


This is it's icon:
http://talk.maemo.org/attachment.php...1&d=1346449525
And here are some screenshots (mainly popup messages, as it has no GUI):

sifo 2012-07-26 23:09

Re: [Pre-Announce] SIM-Switcher (automated switching with a double ( dual ) SIM adapter)
 
Thank you :)
and nice start ;)

nkirk 2012-07-27 07:53

Re: [Pre-Announce] SIM-Switcher (automated switching with a double ( dual ) SIM adapter)
 
I appriciate your effort. though i wanted this feature a couple of years ago when i realized phone was missing sim toolkit support. Good work..

/nkirk

seanmcken 2012-07-27 09:08

Re: [Pre-Announce] SIM-Switcher (automated switching with a double ( dual ) SIM adapter)
 
for the people who cant buy please give some advice.
thanks in advance

reinob 2012-07-27 09:13

Re: [Pre-Announce] SIM-Switcher (automated switching with a double ( dual ) SIM adapter)
 
Quote:

Originally Posted by seanmcken (Post 1243671)
for the people who cant buy please give some advice.
thanks in advance

buy what? a double-SIM adapter?
if you can't buy that, then the advice would be to ignore this thread?!

seanmcken 2012-07-27 09:28

Re: [Pre-Announce] SIM-Switcher (automated switching with a double ( dual ) SIM adapter)
 
alright im sorry?

seanmcken 2012-07-27 09:29

Re: [Pre-Announce] SIM-Switcher (automated switching with a double ( dual ) SIM adapter)
 
i meant give some advice to build that adapter for people who cant buy this adapter

Hurrian 2012-07-27 10:31

Re: [Pre-Announce] SIM-Switcher (automated switching with a double ( dual ) SIM adapter)
 
Quote:

Originally Posted by seanmcken (Post 1243681)
i meant give some advice to build that adapter for people who cant buy this adapter

You probably can't. If you could, you'd be welcome at a robotic assembly facility.

IIRC these things simply have a SIM electrical pad, with a microcontroller hooked up to two SIMs at the same time, and simply switches signal lines between them.

Sounds simple enough, until you see how much space you can't work with.

peterleinchen 2012-07-27 11:32

Re: [Pre-Announce] SIM-Switcher (automated switching with a double ( dual ) SIM adapter)
 
Quote:

Originally Posted by nkirk (Post 1243649)
though i wanted this feature a couple of years ago

Sorry for being late (but simple solution was available since last year, see above linked thread).

Quote:

Originally Posted by nkirk (Post 1243649)
phone was missing sim toolkit support. .

Yes, there is no STK in N900, so your adapter needs to support "007" mode for this tool (just for clarification).

nkirk 2012-07-27 18:56

Re: [Pre-Announce] SIM-Switcher (automated switching with a double ( dual ) SIM adapter)
 
No need for apologies "peterleinchen" i just typed what i felt when i saw the title and how simple & easy this app was. I was using 2 lines on a single sim before switching to N900, I missed that feature badly and I had to settle for a single primary connection because of the absence of stk.

/nkirk


All times are GMT. The time now is 20:54.

vBulletin® Version 3.8.8