welly87 / gsmcomm Goto Github PK
View Code? Open in Web Editor NEWGSM SMS library for C#
GSM SMS library for C#
Sending ascii sms text like below (text length < 160)
SmsSubmitPdu pdu;
byte dcs = (byte)DataCodingScheme.NoClass_7Bit;
pdu = new SmsSubmitPdu(sms, phoneno, smsc, dcs);
comm.SendMessage(pdu);
but it gives error like "Text is too long. A maximum of 160 resulting septets is allowed. The current input result in 243 septets." How to avoid that error?
Hello Welly87,
I have 2 arrays PDU of String,
string[] stringPDUs = new string[] {
"059126181642440D91265868006036F8000051107061609382A0050003BB0201A6E17C1814BE87D92072181456CFC9EAB97A0E22ABC96AB29A0C22ABC96AB29A0C22ABC96AB29A0C22ABC96AB29A0C22ABC96AB29A0C22ABC96AB29A0C22ABC96AB29A6C0691D56435599E97E7E92E10514D5693D56490796D5697416E90596D56ABCD6AB3DA0C32ABCD6AB31964479BD166B4196D46A3CD6B33486D569BD566B559AD56ABD5",
"059126181642440D91265868006036F800005110706160348223050003BB0202D4EA3588AC06A5DD6990B82C0FCBE969D0BC3D0785D7E8B41C"
};
var expectedResult = SmartMessageDecoder.CombineConcatMessageText(parts);
my expected result is
"Saya awal da ajsdjsjs djdjdjd djdjdjd djdjdjd djdjdjd djdjdjd djdjdjd djdjdjdf djdjdryryt. Djdjdjd fkfje n fjfjjfjfjf fjfjff vhfhfhfhfhhfkf jfjfjfjfjjjjj jjk dj ini berarti sms akhir"
but the result is
"&CsCABoCYAHCABUgIUgUgAHUIUIUIAHUIUIUIAHUIUIUIAHUIUIUIAHUIUIUIAHUIUIUIAHUIUIUIMAHUIUIesesiÑ¡òUIUIUIALWMUKAÖALUMUUMUMUMALUMUMMAlQMQMQMQMQQMWMATMUMUMUMUUUUUTUWAHUARÑSADKeCeiSAfÄgABWQSe"
Why this happen ? Advice me please
Thank You
can this library to dial with a modem?
I have developed a console based app using gsmcomm.
The app is working fine.
But after some time it stops trigger for new message.
Below code is used
Comm.EnableMessageNotifications();
And a handler for the event.
I create a windows class to send sms trought your dll. run on normal .net works fine but when i run the same code on mono it retrieve allways that phone is not connected.
Log file:
6/19/2013 1:46:44 AM Info -> 01:46:44.285 [gsmphone] Log thread started.
6/19/2013 1:46:44 AM Info -> 01:46:44.286 [gsmphone] Initializing serial connection...
6/19/2013 1:46:44 AM Info -> 01:46:44.286 [gsmphone] Port = COM2
6/19/2013 1:46:44 AM Info -> 01:46:44.286 [gsmphone] Baud rate = 19200
6/19/2013 1:46:44 AM Info -> 01:46:44.286 [gsmphone] Timeout = 300
6/19/2013 1:46:44 AM Info -> 01:46:44.405 [gsmphone] Port COM2 now open.
6/19/2013 1:46:44 AM Error -> 01:46:44.708 [gsmphone] Failed. Receiving error.
6/19/2013 1:46:44 AM Info -> 01:46:44.713 [gsmphone] Communication thread started.
6/19/2013 1:46:44 AM Info -> 01:46:44.714 [gsmphone] Connection to phone will be checked every 10000 ms.
6/19/2013 1:46:55 AM Error -> 01:46:55.015 [gsmphone] Failed. Receiving error.
6/19/2013 1:47:05 AM Error -> 01:47:05.315 [gsmphone] Failed. Receiving error.
6/19/2013 1:47:15 AM Error -> 01:47:15.615 [gsmphone] Failed. Receiving error.
6/19/2013 1:47:25 AM Error -> 01:47:25.915 [gsmphone] Failed. Receiving error.
6/19/2013 1:47:36 AM Error -> 01:47:36.215 [gsmphone] Failed. Receiving error.
6/19/2013 1:47:46 AM Error -> 01:47:46.515 [gsmphone] Failed. Receiving error.
Hey,
I have tried both source and library that provided by http://www.scampers.org/steve/sms/libraries.htm
this source is not working properly, is there any different between them?
Thanks,
Junaidi
What type of license your project? Can I use it freely and modify for their own purposes?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.