Jump to content
Sign in to follow this  
mvw

CommMG UDF

Recommended Posts

mvw

I use the CommMG UDF to check respectively input the SIM PIN of an UMTS Notebook Card.

I use the following code :

...

$ret = CommSendString( "AT+CPIN?" , 1 )

$RetString = CommGetString()

In the $RetString-variable I expect "+CPIN: READY" if I dont need to input the PIN or "+CPIN: SIM PIN" if an input in required.

However the answer I get is the input-String "AT+CPIN?" .

What is the error ?

Share this post


Link to post
Share on other sites
PsaltyDS

I use the CommMG UDF to check respectively input the SIM PIN of an UMTS Notebook Card.

I use the following code :

...

$ret = CommSendString( "AT+CPIN?" , 1 )

$RetString = CommGetString()

In the $RetString-variable I expect "+CPIN: READY" if I dont need to input the PIN or "+CPIN: SIM PIN" if an input in required.

However the answer I get is the input-String "AT+CPIN?" .

What is the error ?

I don't know anything about your hardware or UDF, but it looks like it just echoed your command, perhaps another CommGetString(), perhaps after a sleep() delay, will return the results of the command?

:)


Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law

Share this post


Link to post
Share on other sites
mvw

'martin' as the developer of this UDF had the answer to my question : I had too add a 'CR' and then it works .

Markus

Share this post


Link to post
Share on other sites
PsaltyDS

'martin' as the developer of this UDF had the answer to my question : I had too add a 'CR' and then it works .

Markus

Thanks for posting the resolution back to the topic.

:)


Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×