Wireless Communication Library Support Forum
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email
?
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News:
Wireless Communication Library 6.10.0.0 has been released. More details on
www.btframework.com
Home
Help
Search
Calendar
Login
Register
Wireless Communication Library Support Forum
»
Wireless Communication Library
»
Bluetooth Framework
»
Bluetooth Framework VCL
»
Sending sms from a windows service using SVCOM
« previous
next »
Print
Pages: [
1
]
Go Down
Author
Topic: Sending sms from a windows service using SVCOM (Read 3165 times)
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!
Logged
Mike Petrichenko
Bluetooth Framework Developer
Administrator
Hero Member
Posts: 2467
Karma: 1000
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.
Logged
WCL
- Wireless Communication Library
TextBlue
- Bluetooth Proximity Marketing Software
WCL Phone Explorer
- Free Phone Content Manager
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
Logged
Mike Petrichenko
Bluetooth Framework Developer
Administrator
Hero Member
Posts: 2467
Karma: 1000
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.
Logged
WCL
- Wireless Communication Library
TextBlue
- Bluetooth Proximity Marketing Software
WCL Phone Explorer
- Free Phone Content Manager
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
Logged
Mike Petrichenko
Bluetooth Framework Developer
Administrator
Hero Member
Posts: 2467
Karma: 1000
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?
Logged
WCL
- Wireless Communication Library
TextBlue
- Bluetooth Proximity Marketing Software
WCL Phone Explorer
- Free Phone Content Manager
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.
Logged
Mike Petrichenko
Bluetooth Framework Developer
Administrator
Hero Member
Posts: 2467
Karma: 1000
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.
Logged
WCL
- Wireless Communication Library
TextBlue
- Bluetooth Proximity Marketing Software
WCL Phone Explorer
- Free Phone Content Manager
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
Logged
Mike Petrichenko
Bluetooth Framework Developer
Administrator
Hero Member
Posts: 2467
Karma: 1000
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.
Logged
WCL
- Wireless Communication Library
TextBlue
- Bluetooth Proximity Marketing Software
WCL Phone Explorer
- Free Phone Content Manager
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
Logged
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
Logged
Mike Petrichenko
Bluetooth Framework Developer
Administrator
Hero Member
Posts: 2467
Karma: 1000
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
Logged
WCL
- Wireless Communication Library
TextBlue
- Bluetooth Proximity Marketing Software
WCL Phone Explorer
- Free Phone Content Manager
Print
Pages: [
1
]
Go Up
« previous
next »
Wireless Communication Library Support Forum
»
Wireless Communication Library
»
Bluetooth Framework
»
Bluetooth Framework VCL
»
Sending sms from a windows service using SVCOM