I am trying to write a code to make a flasher using GPIOs. But I couldn’t run it. According to code it must work but when I measure related I/O pin I can’t see any difference.
because adl_ioWrite() can be used to write to several ports at the same time. So you should set a mask and not just a bool value to toggle the port. (I hope that’s right )
Hi Jiten9,
Following reasons can be attributed to the behavior described by you:
You have enabled UART2 (using AT+WMFM command) and are now trying to subscribe to GPIO5. However, from section 2.5 ADL user guide, you can see that after enabling UART2, GPIO5 becomes unavailable for Open-AT application usage. This can be the reason for the stated behavior.
You are using a module other than Q2501 (like Q2406B etc). In this case, the first parameter becomes invalid and is causing the problem.
Could you please check the above mentioned point.
Regards,
Open AT Fan.
Hi jiten9,
Please check if you are using compatible versions of Open-AT and AT software. You should execute AT+WOPEN=2 command and check out which version of Open-AT your AT software supports (by checking the second parameter of the response). Usually, this kind of error is seen when you execute an Open-AT applicaiton compiled using Open-AT version 3.02 using 650a version of AT software.
If so, please use 651 version of AT software with OAT 3.02 as both are compatible. You can use AT+WOPEN=2 command to check which version of Open-AT you should use with your core AT software.
I think this should solve your problem.
Best Regards,
Open AT Fan.
I shifted to v3.02 and confirmed it by sending AT+WOPEN=2 which returned me
+WOPEN: 2,“AT v03.02”,“AT v03.02”
Now I saw a strange behaviour; when I reflash the Wismo module (using DWLWin software) and my application for the first start I got success in subscribing from adl_ioSubscribe() function which returned me 2.
Then I rebooted the Wismo and again I got the Failiur message -2( Parameter error).
This looks very strange to me !!
I tried this on the Development kit from Wavecom (for 2501 v1.1)
Hi Jiten,
Could you please check the output of AT+WMFM? command?
This would tell you if your UART2 is enabled when you execute AT+WOPEN=1 command.
If you get a response +WMFM: 0,2,2,1 from AT+WMFM? command it means that UART2 is activated.
This is the only case in which I got a -2 (as a return value of adl_ioSubscribe () API).
If so, then please execute the following commands:
AT+WOPEN=0 (to stop the OAT application).
Execute AT+WMFM=0,0,2 command.
Execute AT&W command.
Execute AT+WOPEN=1 command and see if the GPIO subscription is successful.
On my side, I did not face the problem as mentioned by you when I executed the code to subscribe to GPIO5.