![]() |
Re: [Announce] SIM-Switcher (automated switching with a double ( dual ) SIM adapter)
One more problem found: from time to time I get the message for the SIM I switched to as "empty string operator name, MNC: 0 and MCC: 0". The message is displayed about one second before having the GSM signal icon in place, thus I assume you are checking these parameters to early for the second SIM.
And finally I think I found the reason sim-switcher script is not always working as scheduled job, despite what I thought earlier that this was solved by increasing the delay between down and up. When running in this way (e.g. through Alarmed), the calls for switching the SIMs might be performed with the phone in some sleep or idle state and thus first switch succeed and switching back fails (due to "Calls not allowed" error). This highly depends on how many hours the phone was in idle state, so that is the explanation sometimes the script succeeded and sometimes fails and then I had to run killall csd to be able to switch back. In this situation, reactivate is not working. Wondering if you have some idea how to wake up the phone in some state similar with the one when using the script through application icon and put that code in the script? I hope this makes sense. |
Re: [Announce] SIM-Switcher (automated switching with a double ( dual ) SIM adapter)
@yrannadx
This message needs a huge sleep (for getiing the network code reliable). So I added a 30 s wait. Seems not to be enough in all situations. Especially not using param iap and forw_aft. So I added a infinite loop (no messages/popups) just before that to assure SIM is online before getting/printing network codes. For your special problem I tried to switch forth and back with an sleepy/idle device and I could not reproduce. So I have no chance to support you here. The only way to get device into "app icon state" would be to unlock, which is not a good idea. At first I thought it could be some lagging or swapping problem, but I tried with no delay between call and call release and no prob. So I am running out of ideas. Maybe try to do some research with longer sleeping time between call and call release, or add sleep time between call release and phonet down or add a second call/call release or or ... Or it just may be a flaw of your adapter (like mine has when giving code2 on SIM2 it switches to SIM1). I am sorry to be not more helpful here. But please keep me informed or ask for more support. -- just queued 0.5.8 to devel and 0.5.9 (still learning about packaging ;) on device) |
Re: [Announce] SIM-Switcher (automated switching with a double ( dual ) SIM adapter)
@peterleinchen
Thanks, I will check your improved version of the application next week. However, I still believe there is something wrong with saving data for both files: /home/user/.config/sim-switcher/.tmp/currentSIM /home/user/.config/sim-switcher/.tmp/home.plugins Today I had a situation where home.plugins file was not saved (.tmp directory was empty) and then I didn't got home plugins restored. This would have been very bad if I would not use yesterday savehome command. Maybe you could do a check that the file home.plugins was really saved before killing hildon-home? Regarding the other problem, I already tried with unlock and the following code is working for me although is not nice. I made it generic so that other users could use it if they will replace WLAN1,2,3 on line 22 with own wlans and then opcode (operator code) for SIM1 on line 58 and 90 from 1 to whatever operator code is in particular case, but this works only if operator code for SIM1 differ from SIM2. Of course if this is useful, the script could be made more generic and add these data that needs to be changed at the beginning of the script. Code:
#!/bin/sh |
Re: [Announce] SIM-Switcher (automated switching with a double ( dual ) SIM adapter)
IMPORTANT NOTICE:
Quote:
PLEASE everybody watch out ! I put version 0.5.10 into devel and this one resolves the /home/user problem with root/user rights. There was some strange behaviour (at least I did not know about) with conffiles and root owner. Do not ask more ;) it took me a few versions ... For everybody having already installed an older version of sim-switcher: please check owner and rights for /home/user/.config/sim-switcher directory and files. It needs to belong to user, not root. Make a copy of (or have in mind) your config. And then purge sim-switcher (apt-get purge sim-switcher), enable devel (or wait a few day until I push to testing), and do a install again (sudo apt-get install sim-switcher). I needed do to it twice to have apt set up sim-switcher correctly. So Code:
sudo apt-get purge sim-switcher If you are asked to keep old or new config files (SIM1 / SIM2), then it is correctly set up. Please answer with yes ('y') to these questions at first install. For everybody starting with >=0.5.10, you just need to say yes to config files overwriting at first install. Please excuse this inconvenience, it was due to lack of deb packaging knowledge of mine. |
Re: [Announce] SIM-Switcher (automated switching with a double ( dual ) SIM adapter)
Package 0.5.10 promoted to testing.
|
Re: [Announce] SIM-Switcher (automated switching with a double ( dual ) SIM adapter)
Thanks for program SIM-Switcher!
I am sorry for bad English. I adapter MagicSIM28 also have two SIM one operator (with different tariffs). At switching with SIM1 on SIM2 (and on the contrary) I receive the following message on a screenshot: http://imageplay.net/img/tya22282718...906_010923.png Thus any SIM does not work (only I can call with SIM1). Question: For correct job SIM should be different operators??? |
Re: [Announce] SIM-Switcher (automated switching with a double ( dual ) SIM adapter)
Quote:
Thanks for the answer! |
Re: [Announce] SIM-Switcher (automated switching with a double ( dual ) SIM adapter)
Quote:
|
Re: [Announce] SIM-Switcher (automated switching with a double ( dual ) SIM adapter)
Quote:
Quote:
|
Re: [Announce] SIM-Switcher (automated switching with a double ( dual ) SIM adapter)
IIRC the MagicSIM needs to be put in 007 mode first by using "any" GSM phone supporting STK. I.e. you will find in the phone menu anywhere (depending on phone model) an entry where to configure the SIM adpter. May it be under STK or Extras or SIM menu or or or.
If you put here your model (not the N900 of course) you should find lots of helpful hints. As the N900 does not support the STK, SIM-Switcher relies to have the adapter set up to use 007 mode. Then you need to set these switching codes in the config files. |
All times are GMT. The time now is 23:04. |
vBulletin® Version 3.8.8