??? 02/06/09 11:39 Read: times |
#162133 - OT: one for any AsyncPro experts... |
Cross-posted at https://sourcefor...id=6356231
I'm trying to specify the "OK" at the end of a modem's AT Command responsed as the EndString for a DataPacket.
So I specified the EndString as "rnOKrn", but this failed to trigger - even though the trace shows that sequence was received: 0020.881 Packet Enable 00000000 Packet:ApdDataPacketGsmCmgr 0020.881 Packet StartStr 00000000 +CMGR:[20] 0020.881 Packet Waiting 00000000 Packet:ApdDataPacketGsmCmgr 0020.881 Packet EndStr 00000000 [0D][0A]OK[0D][0A] 0020.881 Trigger Status 00000035 0020.881 TrDatChg Timer 00000038 [01][00][00][00] : : 0021.053 Dispatch ReadCom 00000001 [0D] 0021.053 Trigger Avail 00000001 0021.054 Dispatch ReadCom 00000001 [0A] 0021.054 Trigger Avail 00000001 0021.055 Dispatch ReadCom 00000001 [0D] 0021.055 Trigger Avail 00000001 0021.056 Dispatch ReadCom 00000001 [0A] 0021.056 Trigger Avail 00000001 0021.057 Dispatch ReadCom 00000001 O 0021.057 Trigger Avail 00000001 0021.058 Dispatch ReadCom 00000001 K 0021.058 Trigger Avail 00000001 0021.059 Dispatch ReadCom 00000001 [0D] 0021.059 Trigger Avail 00000001 0021.060 Dispatch ReadCom 00000001 [0A] 0021.060 Trigger Avail 00000001 0021.060 TrDatChg Timer 00000008 Deactivated 0021.060 Packet Idle 00000000 Packet:ApdDataPacketGsmCmgr 0021.060 Packet Disable 00000000 Packet:ApdDataPacketGsmCmgr 0021.060 Packet StringPacket 00000000 Packet:ApdDataPacketGsmCmgr If I change the EndString to "rnrnOKrn", it does trigger! So why can't it "see" the original (sub-)string, and trigger on that? I think I've seen this before - there seems to be something about the CRLF end-of-line sequence... |
Topic | Author | Date |
OT: one for any AsyncPro experts... | 01/01/70 00:00 | |
Could this be it? | 01/01/70 00:00 | |
Looks like it | 01/01/70 00:00 | |
Do you know? | 01/01/70 00:00 | |
Just high probability | 01/01/70 00:00 | |
I use that | 01/01/70 00:00 | |
but... | 01/01/70 00:00 | |
Message ending | 01/01/70 00:00 | |
I think these are just workarounds | 01/01/70 00:00 | |
I recommend Boyer-Moore | 01/01/70 00:00 | |
Async | 01/01/70 00:00 | |
Delphi | 01/01/70 00:00 | |
Open source | 01/01/70 00:00 | |
Test Case | 01/01/70 00:00 | |
Away for a week | 01/01/70 00:00 |