gdah
2008-08-14 01:40:05 UTC
Hi.
I need some help here..I have a program that use to read all the inbox message in the GSM simcard. GSM modem is connected to the pc serial com port. I used AT command AT+CMGL="REC UNREAD" to read the unread messages in the inbox. Between VISA write and VISA read, I put some delay which is 450ms. So far this is the suitable delay to get a complete data from the serial. Before this is used less that 450ms, and the number of incomplete data that I read from the serial port is high. But even though I used 450ms, sometimes I still cannot read a complete data. When i try read the serial port using the hyperterminal, I never get incomplete data. All the data are completed data. I wondering, is there any delay used in the hyperterminal? Why when I access the serial port using VISA write/read and hyperterminal I will get a different result?How can I make my program read the complete data as a hyperterminal? Is it about the delay? Please assist me..I may need an advice from you...thanks
I need some help here..I have a program that use to read all the inbox message in the GSM simcard. GSM modem is connected to the pc serial com port. I used AT command AT+CMGL="REC UNREAD" to read the unread messages in the inbox. Between VISA write and VISA read, I put some delay which is 450ms. So far this is the suitable delay to get a complete data from the serial. Before this is used less that 450ms, and the number of incomplete data that I read from the serial port is high. But even though I used 450ms, sometimes I still cannot read a complete data. When i try read the serial port using the hyperterminal, I never get incomplete data. All the data are completed data. I wondering, is there any delay used in the hyperterminal? Why when I access the serial port using VISA write/read and hyperterminal I will get a different result?How can I make my program read the complete data as a hyperterminal? Is it about the delay? Please assist me..I may need an advice from you...thanks