When be exported gpioRI?

I wonder the timing of gpioRI exported.

I entered “AT!RIOWNER=1” and power off on WP7605.
Then, I checked gpioRI exported or not, using “ls /sys/class/gpio”.
Unfortunately, sometimes it does not exist gpioRI.
However, it returned “1”, when I entered “AT!RIOWNER?”.

Is it too fast power off after entering “AT!RIOWNER=1” to change controll core?
How long seconds must I wait for being changed it?

Maybe the safest way is to see if the path is generated after the commad before going to sleep mode

Hi, jyijyi
Thank you for replying every time.

Do you mean the path is generated without reset?

Sorry, i check again the AT command user guide, it says: “Reset required to apply changes: Yes (Changes take effect immediately, but a controlled reset
is required to make the change persistent.”

So i think you should do a power cycle to reset the wp76 module after entering the commnd.

After that, you can do the following:

echo RI > /sys/class/gpio/export
echo out > /sys/class/gpio/gpioRI/direction

Hi, jyijyi

Thank you for the telling reliable information.

After entering the commnd and resetting the wp76 module, “/sys/class/gpio/gpioRI” is exported automatically.
I think that it does’t need enter “echo RI > /sys/class/gpio/export”

Let’s go back to my question.

Unfortunately, sometimes it does not exist gpioRI.

Sholuld I enter “echo RI > /sys/class/gpio/export”?
Do you have any resolution to solve my problem certainly.

Do you see gpioRI after entering this

"echo RI > /sys/class/gpio/export”

Yes, I do and check it.
Are there any differences between gpioRI with a power cycle or one without it?
I will use gpioRI after reset.

I prefer using it after power cycle of module

I understand gpioRI is exported after AT!RIOWNER=1 and "echo RI > /sys/class/gpio/export”.
In my experience, gpioRI is also exported after AT!RIOWNER=1 and resetting.

After resetting(power cycle), is it need to enter "echo RI > /sys/class/gpio/export”?

sometimes it does not exist gpioRI

Which documents or know‐how, the timing of gpioRI exported is written?

normally i will enter that command

Okey, I will do it.

Please, let me check my goal.
I would like to use gpioRI certainly.

Therefore, I’ll do the followings.

①Enter “AT!RIOWNER=1”
②Check “1” returned, when I entered “AT!RIOWNER?”
③Do a power cycle. (AT!RESET or AT!POWERDOWN)
④After power-on, enter “echo RI > /sys/class/gpio/export”
⑤Check “gpioRI” existed, when I entered “ls /sys/class/gpio/”

Is it enough ways to controll gpioRI?

it is working on my side

Sorry, I modify that a little.
Please, check again.

①Enter “AT!RIOWNER=1”
②Check “1” returned, when I entered “AT!RIOWNER?”
③Enter “echo RI > /sys/class/gpio/export”
④Check “gpioRI” existed, when I entered “ls /sys/class/gpio/”
⑤Do a power cycle. (AT!RESET or AT!POWERDOWN)

⑥After power-on, enter “echo RI > /sys/class/gpio/export”
⑦Check “gpioRI” existed, when I entered “ls /sys/class/gpio/”

I think the previous one is better

Thank you for your opinion.

In this topic, the following ways sholud be needed.

Do a power cycle. (AT!RESET or AT!POWERDOWN)
After power-on, enter “echo RI > /sys/class/gpio/export”
Check “gpioRI” existed, when I entered “ls /sys/class/gpio/”
these are included in both ways.

The timing of gpioRI exported is not clear, so I will do the following ways before a power cycle to check it.

Enter “echo RI > /sys/class/gpio/export”
Check “gpioRI” existed, when I entered “ls /sys/class/gpio/”

In my side, I think the the letter one is better.

Hi, jyijyi
Sorry for interrupt.
tanoue-san would like to know the specification of gpioRI exactly, because there is any behaviors either gpioRI was created automatically or not(need to execute “export”).

Q1;
I think they don’t need to execute “export” every power-on, because I guess the setting of gpioRI was saved in NV memory.
Is my understanding correct?

Q2:
Is gpioRI activated after power cycle?
Because of same as Q1.

Best Regards,

— Hiroki

how is your testing on that?
you can check whether there is gpioRI there after reboot.
But I remember there is no need to export actually, you can double check.

In my opinion, there is no harm to type such command even though that is already exported.