Author Topic: Sending sms from a windows service using SVCOM  (Read 3165 times)

Offline OlaSamuelson

  • Newbie
  • *
  • Posts: 9
  • Karma: 0
Sending sms from a windows service using SVCOM
« on: November 04, 2008, 10:13:04 AM »
Hello!
I have made a thread which is self contained and runs perfectly if created from a form.

The thread runs fine, receives messages, starts, stops etc but it can not send sms
if i run it from within my windows service.
Exactly the same code, same machine fails on TBFGSMModemClient.sendsms when started from within the windows service.

It just stops on the first send. Nothing else happens, no exceptions, nothing.

Swithcing back to my gui app works instantly so ports/settings must be ok.

I am on D5Ent/5.2

Any ideas? Permissions??
Thanks!

Offline Mike Petrichenko

  • Bluetooth Framework Developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 2467
  • Karma: 1000
    • Wireless Communication Library
Re: Sending sms from a windows service using SVCOM
« Reply #1 on: November 04, 2008, 10:40:44 AM »
Good day!

Will check and try to find work around.
WCL - Wireless Communication Library
TextBlue - Bluetooth Proximity Marketing Software
WCL Phone Explorer - Free Phone Content Manager

Offline OlaSamuelson

  • Newbie
  • *
  • Posts: 9
  • Karma: 0
Re: Sending sms from a windows service using SVCOM
« Reply #2 on: November 07, 2008, 06:17:18 PM »
Ahhh...its a miracle. Turning off FIFO buffers for COM port makes the service work.
Doesn't affect the GUI app though.
Weird...


Sorry to bother you. It was not obvious though.

Thank you, have a nice week end.
//Ola

Offline Mike Petrichenko

  • Bluetooth Framework Developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 2467
  • Karma: 1000
    • Wireless Communication Library
Re: Sending sms from a windows service using SVCOM
« Reply #3 on: November 07, 2008, 06:39:54 PM »
Good day!

Thanks for report. It is interesting why it affects only for service app :)

Have a good weekend too.
WCL - Wireless Communication Library
TextBlue - Bluetooth Proximity Marketing Software
WCL Phone Explorer - Free Phone Content Manager

Offline OlaSamuelson

  • Newbie
  • *
  • Posts: 9
  • Karma: 0
Re: Sending sms from a windows service using SVCOM
« Reply #4 on: November 10, 2008, 04:24:08 PM »
Hello again!
I am afraid i spoke to soon....
Totally intermittent...
Any ideas?
Thanks

Offline Mike Petrichenko

  • Bluetooth Framework Developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 2467
  • Karma: 1000
    • Wireless Communication Library
Re: Sending sms from a windows service using SVCOM
« Reply #5 on: November 11, 2008, 11:00:04 AM »
Have you tryed WCL instead BTF?
WCL - Wireless Communication Library
TextBlue - Bluetooth Proximity Marketing Software
WCL Phone Explorer - Free Phone Content Manager

Offline OlaSamuelson

  • Newbie
  • *
  • Posts: 9
  • Karma: 0
Re: Sending sms from a windows service using SVCOM
« Reply #6 on: November 13, 2008, 04:09:29 PM »
Nope, haven't got it as i only have BTF.

Offline Mike Petrichenko

  • Bluetooth Framework Developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 2467
  • Karma: 1000
    • Wireless Communication Library
Re: Sending sms from a windows service using SVCOM
« Reply #7 on: November 13, 2008, 04:24:56 PM »
Try the demo and if it will work for you then I open access to registered.
WCL - Wireless Communication Library
TextBlue - Bluetooth Proximity Marketing Software
WCL Phone Explorer - Free Phone Content Manager

Offline svenj

  • Newbie
  • *
  • Posts: 7
  • Karma: 0
Re: Sending sms from a windows service using SVCOM
« Reply #8 on: January 12, 2009, 06:14:37 PM »
Hi,

I'm working with Ola, and this issue is on my desk now.
I've tried the demo app and another test app that I have done.
My test app uses the exact thread that the service does and it works every time.
But when I run it from the service it stops at sendsms as before.
I've also tried switching FIFO buffers on and off but still the same.

// Sven

Offline Mike Petrichenko

  • Bluetooth Framework Developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 2467
  • Karma: 1000
    • Wireless Communication Library
Re: Sending sms from a windows service using SVCOM
« Reply #9 on: January 13, 2009, 10:59:19 AM »
Hm, very strange, i'll try to find the solution.
WCL - Wireless Communication Library
TextBlue - Bluetooth Proximity Marketing Software
WCL Phone Explorer - Free Phone Content Manager

Offline svenj

  • Newbie
  • *
  • Posts: 7
  • Karma: 0
Re: Sending sms from a windows service using SVCOM
« Reply #10 on: January 14, 2009, 10:23:43 AM »
Hi,

I've done some research...
In the function TBFGSMModemClient.InternalMakeSMS it stops at the line:
PDU := ComposePDU(AServiceCenter, APhone, Tmp, AFlash, Long, ANeedReport, Cnt, Ndx, Ref, SCANumLength);

Hope that may help you.

// Sven

Offline svenj

  • Newbie
  • *
  • Posts: 7
  • Karma: 0
Re: Sending sms from a windows service using SVCOM
« Reply #11 on: January 14, 2009, 11:18:13 AM »
Hi again,

You can stop searching for the problem.
It was my fault.
Some how when we send sms from the service code the text is missing.
When I corrected that the function sendsms is working again.

Sorry to trouble you with this.

// Sven

Offline Mike Petrichenko

  • Bluetooth Framework Developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 2467
  • Karma: 1000
    • Wireless Communication Library
Re: Sending sms from a windows service using SVCOM
« Reply #12 on: January 14, 2009, 12:20:39 PM »
Good day!

Great that you have found the problem :)
WCL - Wireless Communication Library
TextBlue - Bluetooth Proximity Marketing Software
WCL Phone Explorer - Free Phone Content Manager