Dual SIm switching using GPIO6 pin

hi everyone,
Iam trying dual sim switching in my WP76XX module , by using GPIO6 pin to switch to external SIM_2
by using AT Commands , but iam unable to configure my gpio pin to switch to external SIM_2
the gpio configuration which i want is +WIOCFG=6,3,1,1,3 to switch to SIM_2 in my Modem using wp76xx , iam attaching the snap shots of the commands which ive used and the response which ive got iam unable to configure my GIO6 pin to switch to external sim_2 as there are two external sims External sim_1 and external sim_2 currently iam in external SIM_1 mode i want to switch to external SIM_2 MODE , by using at commands or linux commnds please if someone could help me with this .

Any help would be aprreciated!!

This is my sim slot 1
root@swi-mdm9x28-wp:~# cm sim info
Type: EXTERNAL_SLOT_1
ICCID: 89910273304002383735
Home Network Operator: IDEA
EID:
IMSI: 404446903447071
Phone Number:
root@swi-mdm9x28-wp:~# cm info
root@swi-mdm9x28-wp:~# cm sim info
Type: EXTERNAL_SLOT_1
ICCID: 89910273304002383735
Home Network Operator: IDEA
EID:
IMSI: 404446903447071

at+wiocfg?
+WIOCFG: 2,16,0,0,1,0,0
+WIOCFG: 6,8,0,0,1,0,0
+WIOCFG: 7,16,0,0,1,0,0
+WIOCFG: 8,16,0,0,1,0,0
+WIOCFG: 13,16,0,0,1,0,0
+WIOCFG: 21,16,0,0,1,0,0
+WIOCFG: 22,16,0,0,1,0,0
+WIOCFG: 23,16,0,0,1,0,0
+WIOCFG: 24,16,0,0,1,0,0
+WIOCFG: 25,16,0,0,1,0,0
+WIOCFG: 28,16,0,0,1,0,0
+WIOCFG: 29,16,0,0,1,0,0
+WIOCFG: 30,16,0,0,1,0,0
+WIOCFG: 31,16,0,0,1,0,0
+WIOCFG: 32,16,0,0,1,0,0
+WIOCFG: 33,16,0,0,1,0,0
+WIOCFG: 35,16,0,0,1,0,0
+WIOCFG: 42,16,0,0,1,0,0

OK

i wanted to configure gpio6 to switch to external sim slot 2
but unable to configure it is throwing error

AT+WIOCFG=6,3,1,1,3
ERROR

root@swi-mdm9x28-wp:~# echo 6 > /sys/class/gpio/export
sh: write error: Operation not permitted
even iam unable to export gpi6

Please if someone can guide me how can i do external dual sim switching using at commnds it would be a great help !!




I tried on WP7608 FW R13, I can use AT+KSIMSEL to switch SIM:



at!custom?
!CUSTOM:
             GPSENABLE          0x01
             GPSLPM             0x01
             IPV6ENABLE         0x01
             SIMHOTSWAPDIS      0x02
             UIM2ENABLE         0x01
             SIMLPM             0x01
             USBSERIALENABLE    0x01
             SINGLEAPNSWITCH    0x01
             TXONINDICATION     0x01
             HSICENABLE         0x01
             SCRUBEN            0x01
             EXTUIMSWITCHEN     0x01
             EXTGPSLNAEN                0x01

OK
at+wiocfg?
+WIOCFG: 2,16,0,0,1,0,0
+WIOCFG: 4,3,0,0,1,0,0
+WIOCFG: 6,8,0,0,1,0,0
+WIOCFG: 7,16,0,0,1,0,0
+WIOCFG: 8,16,0,0,1,0,0
+WIOCFG: 13,16,0,0,1,0,0
+WIOCFG: 21,16,0,0,1,0,0
+WIOCFG: 22,16,0,0,1,0,0
+WIOCFG: 23,16,0,0,1,0,0
+WIOCFG: 24,16,0,0,1,0,0
+WIOCFG: 25,16,0,0,1,0,0
+WIOCFG: 28,16,0,0,1,0,0
+WIOCFG: 29,16,0,0,1,0,0
+WIOCFG: 30,16,0,0,1,0,0
+WIOCFG: 31,16,0,0,1,0,0
+WIOCFG: 32,16,0,0,1,0,0
+WIOCFG: 33,16,0,0,1,0,0
+WIOCFG: 35,16,0,0,1,0,0
+WIOCFG: 42,16,0,0,1,0,0

OK
at+cpin?
+CPIN: READY

OK
at+cimi
454065215193898

OK
at+ksimsel?
+KSIMSEL: 1

OK
at
OK
at+ksimsel=2
OK
at+cpin?
+CME ERROR: SIM not inserted
at+cimi
ERROR
at+ksimsel=1
OK
at+ksimsel?
+KSIMSEL: 1

OK
at+cpin?
+CPIN: READY

OK
at+cimi
454065215193898

OK
ati3
Manufacturer: Sierra Wireless, Incorporated
Model: WP7608
Revision: SWI9X07Y_02.28.03.03 000000 jenkins 2019/05/21 03:33:04
IMEI: 352913090501261
IMEI SV:  6
FSN: XG207430060310
+GCAP: +CGSM,+DS

OK

if I used the following, I can also control the state of GPIO6:


at!entercnd="A710"
OK
at!custom="EXTUIMSWITCHEN",1
OK
at!reset
OK


//GPIO6 low state
at+ksimsel?
+KSIMSEL: 1

OK
//GPIO6 high state
at+ksimsel=2
OK
at+wiocfg?
+WIOCFG: 2,16,0,0,1,0,0
+WIOCFG: 4,3,0,0,1,0,0
+WIOCFG: 6,8,0,0,1,0,0
+WIOCFG: 7,16,0,0,1,0,0
+WIOCFG: 8,16,0,0,1,0,0
+WIOCFG: 13,16,0,0,1,0,0
+WIOCFG: 21,16,0,0,1,0,0
+WIOCFG: 22,16,0,0,1,0,0
+WIOCFG: 23,16,0,0,1,0,0
+WIOCFG: 24,16,0,0,1,0,0
+WIOCFG: 25,16,0,0,1,0,0
+WIOCFG: 28,16,0,0,1,0,0
+WIOCFG: 29,16,0,0,1,0,0
+WIOCFG: 30,16,0,0,1,0,0
+WIOCFG: 31,16,0,0,1,0,0
+WIOCFG: 32,16,0,0,1,0,0
+WIOCFG: 33,16,0,0,1,0,0
+WIOCFG: 35,16,0,0,1,0,0
+WIOCFG: 42,16,0,0,1,0,0

OK