By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,851 Members | 1,022 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,851 IT Pros & Developers. It's quick & easy.

Connecting to a GSM/GPRS usb modem using .NET?

P: 34
hi,
I am doing a project regarding SMS and i am doing it in ASP.NET. My project actually aims at sending message from my PC to mobile and then getting back the reply from the mobile to my pc. I am using a GSM/GPRS USB MODEM for doing this transaction. The doubt that arises in my mind is "whether i will be able to connect to that MODEM using ASP.NET or should i shift to VB.NET". But anyway i have to do it in .Net only.

Can anybody help me out by giving a valuable suggestion. Please.
Jan 17 '07 #1
Share this Question
Share on Google+
38 Replies


radcaesar
Expert 100+
P: 759
With the modem only u can't. There are many SMS web services available. Try to use that.

:)

hi,
I am doing a project regarding SMS and i am doing it in ASP.NET. My project actually aims at sending message from my PC to mobile and then getting back the reply from the mobile to my pc. I am using a GSM/GPRS USB MODEM for doing this transaction. The doubt that arises in my mind is "whether i will be able to connect to that MODEM using ASP.NET or should i shift to VB.NET". But anyway i have to do it in .Net only.

Can anybody help me out by giving a valuable suggestion. Please.
Jan 17 '07 #2

100+
P: 366
hello

Almost all i am also doing the same project but iam not using asp.net .i am

using c#.net .why u need asp.net if its an web application .for communicating

with gsm modem c# or vb is needed but i dont think that asp.net is required .

and also which version you are using .net1.1 or .net2.0 .

when you are using GSM modem for seneding and receiving sms no need for going to

servers (my opinion) you can store data in your pc itself .

can you give some detailed specification of your project so that i will be much

clearer.

regards

nmsreddi
Jan 18 '07 #3

P: 34
hello

Almost all i am also doing the same project but iam not using asp.net .i am

using c#.net .why u need asp.net if its an web application .for communicating

with gsm modem c# or vb is needed but i dont think that asp.net is required .

and also which version you are using .net1.1 or .net2.0 .

when you are using GSM modem for seneding and receiving sms no need for going to

servers (my opinion) you can store data in your pc itself .

can you give some detailed specification of your project so that i will be much

clearer.

regards

nmsreddi

Thanks for that suggestion. But sir, why i am using ASP.NET because, it's the part which i am familiar with and in ASP.NET i will be able to design my form in a good manner.
Telling about the project why i am using GSM modems because i am asked to do the project using that. Here i will be storing the details of my customers with their mailid and their hand phone no in my database. When i type a message and click send, the message should be passed to the customers cell no through this modem. To that particular message the customer will be sending an acknowledgement back. I should receive that particular ack to my pc through the modem. Then the further transactions should take place. I should also send mail's if i am asked to do so. so that's why i am using ASP.Net.

The question is whether i will be able to connect to that particular modem using ASP.Net or should i shift to VB.Net. If i can connect to that particular modem using ASP.Net means i will be really thankful.

The real problem is i am not able to proceed without knowing this detail.
Hope You will help me. If you don't know about this means please ask any of friends and get me a positive reply. Expecting your reply.
Jan 18 '07 #4

100+
P: 366
Hello karthik

Here you are confusing a lot, first thing is even you use asp.net or not you must

and should use some code behind language(vb.net or c#.net) only by using asp.net

you never do a .net application with out code behind language.

asp.net is a web technology but not a language .

for your application you must have to use either vb.net or c#.net or any other .net

compatable language like vc++,c++ ect..

using only asp.net your problem is not solved..

hope this may make you clear idea ...
Jan 18 '07 #5

Jimmy611
P: 52
Hi !

If you want to do it in ASP.Net then you should go for web services and you can also send SMS through other protocols rather then using Modem. However, if you want to use MODEM in your application.. i would suggest you to do it in VB.Net or C#.Net.
Jan 18 '07 #6

P: 34
Hello karthik

Here you are confusing a lot, first thing is even you use asp.net or not you must

and should use some code behind language(vb.net or c#.net) only by using asp.net

you never do a .net application with out code behind language.

asp.net is a web technology but not a language .

for your application you must have to use either vb.net or c#.net or any other .net

compatable language like vc++,c++ ect..

using only asp.net your problem is not solved..

hope this may make you clear idea ...
hai nmsreddi,

Ok. i got a idea that i can't do a project in ASP.NET alone. Ok. but if i am writing coding in VB.net or c#.net , whether i will be able to link that coding with my ASP.NET page.

The second case is, if i am not able to connect with the Modem using ASP.NET ?, can i write coding in VB.NET or C#.Net and then bring that code to my ASP.NET page and run my application.

And one more question, please get me a reply for this question. "whether i will be able to connect to the modem (which i already described above) using any of the application in .NET. Without knowing this i can't continue my project. It's an academic one. If "No" is the reply means my project is going to be a failure one. Please don't say "No". If you can't get the answer means , please enquire your friends and get me a positive reply. Please. As soon as possible.

regards karthik
Jan 19 '07 #7

P: 34
Hi !

If you want to do it in ASP.Net then you should go for web services and you can also send SMS through other protocols rather then using Modem. However, if you want to use MODEM in your application.. i would suggest you to do it in VB.Net or C#.Net.
thanks jimmy,

Let me be clear, here i am building an application where i will be able to send mails, send messages(SMS) etc... Mails in the sense if my pc have a net connection means i will be able to send mails. That's why i choose ASP.Net for doing this project. I am little familiar with ASP.Net than c#.Net.

And in the case of message(SMS), i use a GSM/GPRS USB MODEM, which have an place to insert SIM card. So i will be connecting this USB with my pc. This MODEM looks like our Flash Drive(or) Pen Drive. Which have an option of inserting SIM card. So i will be connecting this device with my pc and i have to write coding in such a way that the message i send from my pc should pass through this sim card to other mobile no's(like sending SMS from our mobile). When i get a reply back to the SIM that i am using , it should be send to my pc.

So the problem that i am facing is" I want to know whether i can establish a connection between my Pc and this MODEM and send message through the SIM card. If "yes" means how can i make a connection. Please help me in solving this problem. Because i am not able to move further with my project. It's an academic project. Please help me. If you don't know means please enquire your friends and get me a positive reply. Please
Jan 19 '07 #8

100+
P: 366
Hi Karthik

I dint get how you can do project using ASP.net alone ok let it be..

you can do that in c# or vb.net and you can use this code in asp.net also


let me no one thing what is editer you are using is it visual studio. if it is visual

studio how can you select your project type as ASP.net alone .with out any code

behind language.

any how you can do this in c# or vb.net .i am doing it in c#2003 and also in

c#2005 i can help you in this domain .

regards

nmsreddi
Jan 20 '07 #9

Jimmy611
P: 52
Ofcourse you can communicate with the USB GSM Modem.
Jan 22 '07 #10

P: 34
Hi Karthik

I dint get how you can do project using ASP.net alone ok let it be..

you can do that in c# or vb.net and you can use this code in asp.net also


let me no one thing what is editer you are using is it visual studio. if it is visual

studio how can you select your project type as ASP.net alone .with out any code

behind language.

any how you can do this in c# or vb.net .i am doing it in c#2003 and also in

c#2005 i can help you in this domain .

regards

nmsreddi

thanks nmsreddi,

yeh sure i got an idea, i now know that i can't do a project using ASP.Net alone. I have to also use other .net applications like C# or VB.Net.
Ok can you help me in doing a c# application in which i will be able to connect with my USB Modem and then link this page with my ASP.Net page. Can you send me some sample coding how to connect and all. Because i am zero in C# and have no idea how to start and all. If you can provide some sample coding means i will try to learn the working and all. Hoping that you will help me. Expecting your reply soon.
Jan 23 '07 #11

P: 34
Ofcourse you can communicate with the USB GSM Modem.
thanks for that satisfactory reply jimmy. Ok can you provide me some sample coding which will help me know how to connect with my USB Modem. You can get the sample in either VB.Net or C#. If VB.Net means, i think it will be comfortable. Because i have some basic idea in VB.

In C# also no problem, i have to start learning that stuff too. I am new to that.

Any way jimmy thanks once again.Hoping your reply soon. Bye
Jan 23 '07 #12

100+
P: 366
hello karthik

i will defnately help you regarding c# code for connecting modem using serial

communication .you asked for USB iot also works but presently i am used only

RS-232 for communication with modem.

first try to go through this tutorial you will get a good idea regarding serial

communication using c#

http://www.devhood.com/tutorials/tutorial_details.aspx?tutorial_id=320&printer=t

hope may help you

back with your good response

regards
Jan 24 '07 #13

P: 13
Hi ,

I am also facing a similar situation as in i am looking for a code which does the process of sending sms using GSM modem I want to develop the application in Asp.net 2003 and code in vb .
I did go throught the link mentioned still i couldnt devlop the code.
Could anybody help me to develop a code to send sms via GSM modem in asp.net 2003 code behind is vb .

Thank You
Anju
Jan 28 '07 #14

100+
P: 366
hello

The link which is given contains how to add the axmscomm control that present

in vb6.0 and all the code for initializing the comport and for reading data from

comport(rs 232) .

what is the actual problem you are facing from the given code.Atleast are you able

to communicate with your modem first .try to find out the setting of your modem

you are using .
Jan 29 '07 #15

Jimmy611
P: 52
Hi ! Sorry for the laet reply. Please do tell me your email address so i can send you a code snippet.
Jan 29 '07 #16

100+
P: 366
hi jimmy


my id

msreddyn@gmail.com
Jan 29 '07 #17

P: 13
Hi Jimmy ,

In the post u mentioned u will mail the code snippet, is that the code for sending sms in Asp.net using Vb code or C# if so It would be nice if you could mail me also the code snippet.

My mail Id is anju@glob2.com

Thank You

Anju
Jan 30 '07 #18

P: 34
hello karthik

i will defnately help you regarding c# code for connecting modem using serial

communication .you asked for USB iot also works but presently i am used only

RS-232 for communication with modem.

first try to go through this tutorial you will get a good idea regarding serial

communication using c#

http://www.devhood.com/tutorials/tutorial_details.aspx?tutorial_id=320&printer=t

hope may help you

back with your good response

regards

hai reddy,

Hey couldn't get back on time. I am yet to buy that USB modem. I will get back to you as soon as i get that device. The modem which i am planning to use looks like a pen drive. In that device i have a small slot in which i will be inserting my sim card. The doubt that still exists in my mind is

1. How do we connect to this particular device from our .Net
2. If we are able to establish the connection then, how do we interact with the SIM card that is inserted in that device. Is that possible?
3.How do i send messages from my pc to this device and then let that message pass through my SIM card to other users

Is this possible?
please get me a reply
Feb 2 '07 #19

P: 34
Hi ,

I am also facing a similar situation as in i am looking for a code which does the process of sending sms using GSM modem I want to develop the application in Asp.net 2003 and code in vb .
I did go throught the link mentioned still i couldnt devlop the code.
Could anybody help me to develop a code to send sms via GSM modem in asp.net 2003 code behind is vb .

Thank You
Anju
hai anju,
Can you get me a detailed description about your project, how it looks like and what all are the main modules or transaction that you do in your project. If your project looks similiar to mine means we can share and clear lots of doubts regarding the project. Can you please get me the name of the device that you are using for the connection. Expecting your reply
Feb 2 '07 #20

100+
P: 366
Hello karthik

As of now i am using rs 232 (serial communication) that is 9 pin connector which comes default for your pc .when modem is considerd i am using wavecom modem
there may be a possibility for connecting through USB also but i have never worked on that .

if you are going to use 9 pin i will some links regarding connections an when coming to .net communiocation with modem use can use io ports name space

its not a big problem for just sending and receiving messages .but some constraints you hav to maintain almost every goes fine if you follow the link wat i hav posted earlier
Feb 2 '07 #21

P: 34
Hello karthik

As of now i am using rs 232 (serial communication) that is 9 pin connector which comes default for your pc .when modem is considerd i am using wavecom modem
there may be a possibility for connecting through USB also but i have never worked on that .

if you are going to use 9 pin i will some links regarding connections an when coming to .net communiocation with modem use can use io ports name space

its not a big problem for just sending and receiving messages .but some constraints you hav to maintain almost every goes fine if you follow the link wat i hav posted earlier
hi reddi,

I am new to this field. I couldn't get what you where saying like what you mentioned above""rs 232 (serial communication) that is 9 pin connector "". I am absolutely new to this field. You just search for this stuff " Falcom SAMBA Modem" this is the device that i am planning to use. You just search for this in google and then tell me whether i will be able to connect with device using .Net. Hoping that you will help me complete my project. This is the main part of my project. If i am not able to connect means my project is going to be a failure.

Or can you suggest some other device through which i will be able to send SMS mainly bulk SMS without any delay. Please help me solve this. Expecting your reply
Feb 2 '07 #22

P: 23
With the modem only u can't. There are many SMS web services available. Try to use that.

:)
Hey, I just happened to pay a visit to this thread. I have a similar need; but, I have no modems etc. And I use ASP.NET... is there any web service as you say that helps me send sms for free (worldwide)? if you do know please post a reply or PM me. Thanks in advance.
Feb 2 '07 #23

Jimmy611
P: 52
Ok karthik i will email you the code snippet and you can refer to it. Its not for ASP.net application. Its done for windows application. But i am sure you can change it as per your need.
Feb 3 '07 #24

Jimmy611
P: 52
Hi Reddy please check your email and do pass it on to others. :)
Feb 3 '07 #25

100+
P: 366
Hi jimmy

thanks for your mail

I have downloaded the zip file

i will go through.



Regards

NMsreddy
Feb 3 '07 #26

P: 13
hai anju,
Can you get me a detailed description about your project, how it looks like and what all are the main modules or transaction that you do in your project. If your project looks similiar to mine means we can share and clear lots of doubts regarding the project. Can you please get me the name of the device that you are using for the connection. Expecting your reply
Hi Hkarthik,

The project i am doing is an IVR project which inculdes many modules and each of these modules are developed using different platforms as well .
Now i think the common module we have here is the problem of sending SMS.

I have a device named GPRS modem in which there is a slot to insert sim from which we can send sms .
Now next we need to use this modem within our application to send sms .

From the company from where i got the modem, gave a demo application in VB and also 2 ocx which does the function of connecting the modem ,opening the port and then send msg .So with the help of demo application i used the ocx in asp.net to send sms .

Anju
Feb 4 '07 #27

P: 13
Hi jimmy

thanks for your mail

I have downloaded the zip file

i will go through.



Regards

NMsreddy
Hi Reddy ,

May i also have the code forwarded to u by Jimmy .my mailid is anju@glob2.com

Thank You
Anju
Feb 4 '07 #28

100+
P: 366
HI Anju

i willforward you the code as soon as possible.

first let me have a glance at that
Feb 5 '07 #29

P: 34
HI Anju

i willforward you the code as soon as possible.

first let me have a glance at that
hi reddi,

Please do forward the mail to my account also. My mail id is sweetkarthik14@gmail.com. Ok.
Feb 5 '07 #30

P: 34
Hi Hkarthik,

The project i am doing is an IVR project which inculdes many modules and each of these modules are developed using different platforms as well .
Now i think the common module we have here is the problem of sending SMS.

I have a device named GPRS modem in which there is a slot to insert sim from which we can send sms .
Now next we need to use this modem within our application to send sms .

From the company from where i got the modem, gave a demo application in VB and also 2 ocx which does the function of connecting the modem ,opening the port and then send msg .So with the help of demo application i used the ocx in asp.net to send sms .

Anju

hi anju,

So you where successful in sending sms using that GPRS Modem. How do you interact with this device from your .Net. What type of code you use for that in .Net. Can you also tell me what's your transfer rate(ie.. how fast you are able to send SMS through that modem). I am planning to use a Modem named Falcom Samba USB GSM. I heard that While sending SMS through the GPRS modem the transfer rate is very low when we send bulk SMS. So i am planning to use this modem which i have already mentioned. Can you help me in this.
Feb 5 '07 #31

P: 34
Hello karthik

As of now i am using rs 232 (serial communication) that is 9 pin connector which comes default for your pc .when modem is considerd i am using wavecom modem
there may be a possibility for connecting through USB also but i have never worked on that .

if you are going to use 9 pin i will some links regarding connections an when coming to .net communiocation with modem use can use io ports name space

its not a big problem for just sending and receiving messages .but some constraints you hav to maintain almost every goes fine if you follow the link wat i hav posted earlier

hi reddi,

Did you had a glance of the modem which i already specified. Do you have any idea how to connect to that modem with the .Net. Please help me in this.
Feb 5 '07 #32

P: 34
Ok karthik i will email you the code snippet and you can refer to it. Its not for ASP.net application. Its done for windows application. But i am sure you can change it as per your need.
hi jimmy,

Thanks for that. Hey jimmy in my project i use three modules,
1. one module aims at creating the user's and updating their information
2. the second module aims at connecting to the modem which i am going to use
3. the third module is sending SMS to user's through that modem.

As i am doing my Final year project, i need some more modules to be added to my project. So Can you help me or can you give me some suggestions like what all extra modules i can add to my project. Please
Feb 5 '07 #33

P: 13
hi anju,

So you where successful in sending sms using that GPRS Modem. How do you interact with this device from your .Net. What type of code you use for that in .Net. Can you also tell me what's your transfer rate(ie.. how fast you are able to send SMS through that modem). I am planning to use a Modem named Falcom Samba USB GSM. I heard that While sending SMS through the GPRS modem the transfer rate is very low when we send bulk SMS. So i am planning to use this modem which i have already mentioned. Can you help me in this.
Hi,
Yes i guess transfer rate is slow as in i have also heard the same but i dont know it for real as i havent tried bulk SMS and havent tried with any other modem so I wont be the right person to suggest on which modem to be used .
The code i used in .Net is vb .Connection with the device is set through the ocx and code .
I added the ocx into the reference and wrote vb code .
If u plan to use Modem named Falcom Samba USB GSM i would suggest why dont you contact the company if they are providing any COM which supports SMS sending process.

Regards
Anju
Feb 5 '07 #34

Jimmy611
P: 52
hi jimmy,

Thanks for that. Hey jimmy in my project i use three modules,
1. one module aims at creating the user's and updating their information
2. the second module aims at connecting to the modem which i am going to use
3. the third module is sending SMS to user's through that modem.

As i am doing my Final year project, i need some more modules to be added to my project. So Can you help me or can you give me some suggestions like what all extra modules i can add to my project. Please
Hi Karthik

You can also do the following

# create a module to maintain the log of SMS(s) sent.
# create a addressbook of the users.
# create categories.
# create a module to setup the price of sending Local SMS(s), National SMS(s) and also Internation SMS(s)
# create a module that can maintain the accounts of SMS(s).

I think all this will make it very user friendly and hasle free.

Get goin

Adios

P.S; If any further help is needed do contact me
Feb 5 '07 #35

P: 34
Hi Karthik

You can also do the following

# create a module to maintain the log of SMS(s) sent.
# create a addressbook of the users.
# create categories.
# create a module to setup the price of sending Local SMS(s), National SMS(s) and also Internation SMS(s)
# create a module that can maintain the accounts of SMS(s).

I think all this will make it very user friendly and hasle free.

Get goin

Adios

P.S; If any further help is needed do contact me

hi jimmy,

Thanks a lot for that. I will certainly try to do all the modules which you mentioned. Thank you once again
Feb 5 '07 #36

P: 34
Hi,
Yes i guess transfer rate is slow as in i have also heard the same but i dont know it for real as i havent tried bulk SMS and havent tried with any other modem so I wont be the right person to suggest on which modem to be used .
The code i used in .Net is vb .Connection with the device is set through the ocx and code .
I added the ocx into the reference and wrote vb code .
If u plan to use Modem named Falcom Samba USB GSM i would suggest why dont you contact the company if they are providing any COM which supports SMS sending process.

Regards
Anju
hi anju,

Can you please send me the code which you used for connecting your GPRS modem with the .Net. And how did you add the ocx into the reference. Why i am asking you this because i am new to this part and .Net. Hope you will get me the code.
Feb 5 '07 #37

kenobewan
Expert 2.5K+
P: 4,871
Hi hkarthik,

I believe that we are ready to close the thread. Please let me know if this is not the case...
Feb 5 '07 #38

P: 34
Hi Karthik

You can also do the following

# create a module to maintain the log of SMS(s) sent.
# create a addressbook of the users.
# create categories.
# create a module to setup the price of sending Local SMS(s), National SMS(s) and also Internation SMS(s)
# create a module that can maintain the accounts of SMS(s).

I think all this will make it very user friendly and hasle free.

Get goin

Adios

P.S; If any further help is needed do contact me

hi jimmy,

can you get me your mailid so that i can keep in touch with you regarding my project and other queries
Feb 6 '07 #39

This discussion thread is closed

Replies have been disabled for this discussion.