Jump to content

CommMG UDF


mvw
 Share

Recommended Posts

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 ?

Link to comment
Share on other sites

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
Link to comment
Share on other sites

'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
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...