mvw Posted September 14, 2007 Share Posted September 14, 2007 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 More sharing options...
PsaltyDS Posted September 14, 2007 Share Posted September 14, 2007 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 More sharing options...
mvw Posted September 17, 2007 Author Share Posted September 17, 2007 'martin' as the developer of this UDF had the answer to my question : I had too add a 'CR' and then it works . Markus Link to comment Share on other sites More sharing options...
PsaltyDS Posted September 17, 2007 Share Posted September 17, 2007 'martin' as the developer of this UDF had the answer to my question : I had too add a 'CR' and then it works .MarkusThanks 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now