Author Topic: Confirm doens't work  (Read 3570 times)

Roman Novgorodov

  • Engineer
  • Administrator
  • Hero Member
  • *****
  • Posts: 994
  • we will win
    • View Profile
    • Forums.nrCommLib.Com
Re: Confirm doens't work
« Reply #15 on: August 23, 2010, 06:17:51 pm »
Hello

Take a look the aMem argument of nrGsmSmsSent() event.

Roman Novgorodov
DeepSoftware.Com
DeepSoftware llc - The professional components for Delphi/CBuilder/.NET. The high quality custom software development.
Forums.nrCommLib.Com - DeepSoftware Tech Support Forum.

henry64

  • Jr. Member
  • **
  • Posts: 89
    • View Profile
Re: Confirm doens't work
« Reply #16 on: August 23, 2010, 06:40:24 pm »
Regarding the missing confirmation (report) - I have noticed that, when I stat my application, I have to close and reopen the device (comport) before the report is received correct. It works in the gsmdemo 1. time.

Do you have any clue whay that is? I have attached a log where I start the device and send a sms with confirm true - no report occurs (and neither any SMSreceived event )  - then I close and reopen the comport - wupti it works.


Roman Novgorodov

  • Engineer
  • Administrator
  • Hero Member
  • *****
  • Posts: 994
  • we will win
    • View Profile
    • Forums.nrCommLib.Com
Re: Confirm doens't work
« Reply #17 on: August 24, 2010, 09:49:50 am »
Hello

I don't understand what is AlarmDirector_3.log file. Is it port monitor or something like API/driver interceptor?

But it seems like nrGsm gets report notification but if it try to read it fails by timeout:

[23-08-2010 20:18:26] nrGsm: Sms Direct Notify:  24\0Dh\0Ah0006AF0A915402012200018032028102800180320281428000\0Dh
[23-08-2010 20:18:26] nrGsm: cmd: AT+CPMS=<q><SMSrmem><q><cr>
[23-08-2010 20:18:26] nrGsm: DoDataSend: 13 bytes
[23-08-2010 20:18:26] nrGsm: send:AT+CPMS="SR"\0Dh

[23-08-2010 20:18:36] nrGsm: Timeout!!! 10000 ms ""

Possible something wrong with serial port connection settings. Please play with baud rate, stream protocol (spHardware, spNone etc.)
You can set StreamProtocol into spNone and change control lines manually:

  nrComm1.SetStateDTR(bool);
  nrComm1.SetStateRTS(bool);

Possible your port monitor disturbs communication between serial port and GSMDemo.

Also you can to turn off Autodetect mode and choose Wavecom gsm driver manually for quick start. See last tab of GSMdemo.

Also you can try to increase timeout property of TnrGsm component.

Roman Novgorodov
DeepSoftware.Com

DeepSoftware llc - The professional components for Delphi/CBuilder/.NET. The high quality custom software development.
Forums.nrCommLib.Com - DeepSoftware Tech Support Forum.