# Q24Plus GPIO Service

**URL:** <https://forum.sierrawireless.com/t/q24plus-gpio-service/2237>\
**Category:** Legacy AirPrime modules\
**Created:** [June 11, 2008, 9:22pm UTC](https://forum.sierrawireless.com/t/q24plus-gpio-service/2237 "2008-06-11T21:22:06Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![gcoakley](https://avatars.discourse-cdn.com/v4/letter/g/d9b06d/32.png) [@gcoakley](https://forum.sierrawireless.com/u/gcoakley)\
**Post date:** [June 11, 2008, 9:22pm UTC](https://forum.sierrawireless.com/t/q24plus-gpio-service/2237/1 "2008-06-11T21:22:06Z")

</div>

Hi Everyone,

I have been trying to subscribe to the GPIO Service on my Q24Plus (Q24PL001). Unfortunately, I keep receiving parameter errors regardless of the GPIO mask. Here is my code snippet.

static s8 GPIO\_LED\_Handle;

GPIO\_LED\_Handle = adl\_ioSubscribe(ADL\_IO\_Q24PLUS\_GPO\_0, 0, 0, 0, (adl\_ioHdlr\_f)NULL);

As far as I can see there is nothing wrong with the direction, default value, or the polling parameters. Am I missing something? Thank you for your time.

-gcoakley

---

<div class="post-metadata">

**Author:** ![Theron](https://avatars.discourse-cdn.com/v4/letter/t/858c86/32.png) [@Theron](https://forum.sierrawireless.com/u/Theron)\
**Post date:** [June 12, 2008, 3:55am UTC](https://forum.sierrawireless.com/t/q24plus-gpio-service/2237/2 "2008-06-12T03:55:27Z")

</div>

Your culprit is GPO\_0. It is reserved for 1.8V SIM operation (requiring you to add the level shifter outside and attach it to GPO0). However, you can disable this feature. Had exactly this issue just yesterday.

[viewtopic.php?f=19&t=782&p=3269&hilit=GPO\_0#p3269](http://www.wavecom.com/modules/movie/scenes/forums/viewtopic.php?f=19&t=782&p=3269&hilit=GPO_0#p3269)

Solution: [viewtopic.php?f=3&t=1495&hilit=SIM3VONLY](http://www.wavecom.com/modules/movie/scenes/forums/viewtopic.php?f=3&t=1495&hilit=SIM3VONLY)

I then spent hours wondering why +WIOR=2 etc gives me errors. It was simply because they are outputs and on wavecom you cannot read an output.  
If you still have trouble, try enabling and disabling UART2 again:  
AT+WMFM=0,1,2  
AT+WMFM=0,0,2

All this should preferably be done when your OAT app is stopped.

---

<div class="post-metadata">

**Author:** ![gcoakley](https://avatars.discourse-cdn.com/v4/letter/g/d9b06d/32.png) [@gcoakley](https://forum.sierrawireless.com/u/gcoakley)\
**Post date:** [June 12, 2008, 8:47pm UTC](https://forum.sierrawireless.com/t/q24plus-gpio-service/2237/3 "2008-06-12T20:47:35Z")

</div>

Thanks Theron,

Disabling the feature worked. Unfortunately, I cannot do this on the production version of the code and will have to use another I/O pin (not used by the two UARTS, SPI, or this 1.8V feature).

-gcoakley

---

<div class="post-metadata">

**Author:** ![Theron](https://avatars.discourse-cdn.com/v4/letter/t/858c86/32.png) [@Theron](https://forum.sierrawireless.com/u/Theron)\
**Post date:** [June 13, 2008, 4:53am UTC](https://forum.sierrawireless.com/t/q24plus-gpio-service/2237/4 "2008-06-13T04:53:59Z")

</div>

You can try to call these AT commands from your OAT app, but if you do have a choice of IO, rather stay away from any muxed IO and simply use one that is all on its own.
