mvw 0 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 ? Share this post Link to post Share on other sites
PsaltyDS 42 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 Share this post Link to post Share on other sites
mvw 0 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 Share this post Link to post Share on other sites
PsaltyDS 42 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 Share this post Link to post Share on other sites