|
-
April 16th, 2003, 06:59 AM
#1
Accessing COM port
Hi there!
I am working on a service that sends/ receives SMS using GSM/GPRS modem which is attached to COM port.
I cannot get to connect with the PORT...
Does anyone has any idea how to work it out?
If you think you CAN, you can, If you think you CAN'T, you are probably right.
Have some nice Idea to share? Write an Article Online or Email to us and You may WIN a Technical Book from CG.
-
April 16th, 2003, 09:46 AM
#2
What is the GetLastError() returned code?
-
April 16th, 2003, 12:19 PM
#3
are you seting the baud rate and initialization parameters properly.
-Paresh
- Software Architect
-
April 17th, 2003, 03:24 AM
#4
here is what I am doing!
well, here it is not giving me any errors...
It simply writes port opened Successfully.
now, I am trying to catch any event so, I did DLL import of SetCommMask and WaitCommEvent...
and now it is not catching any event...
as it is a modem, I think I need to send a modem command like
"AT+CMGL=" and should see its result... that'swhat I am doing at the moment...
and when we talk about setting port parametrs, the winapi function needs a DCB structure... hola! I dont really get to know how to pass this structure through C#...
I think C++ was a better way out, but i opt for C#... hope wont have to go back to C++ for writing this service... :-)
thank you folkz for answers... if you have any idea, will be nice to hear...
Last edited by Andy Tacker; April 24th, 2003 at 08:55 AM.
If you think you CAN, you can, If you think you CAN'T, you are probably right.
Have some nice Idea to share? Write an Article Online or Email to us and You may WIN a Technical Book from CG.
-
April 24th, 2003, 08:53 AM
#5
Accessing COM Port solution
Here! I atlast, got to find the solution to this problem.
I hope some other person will be looking for answers to same question... so, here is the link to get some idea about how to do this....
AccessingCOMPorts.html
If you think you CAN, you can, If you think you CAN'T, you are probably right.
Have some nice Idea to share? Write an Article Online or Email to us and You may WIN a Technical Book from CG.
-
April 24th, 2003, 01:19 PM
#6
-
April 28th, 2003, 06:08 AM
#7
Yes Paresh!
I had been working in C++ for quite a long time. but lately, the people here in company started to think about using latst .NET Technology.
As far as my personal opinion, it would have been fun and quite an easy job to MOULD this pretty good project in C++.
Anyways, thanks for replies and the link.
If you think you CAN, you can, If you think you CAN'T, you are probably right.
Have some nice Idea to share? Write an Article Online or Email to us and You may WIN a Technical Book from CG.
-
April 30th, 2003, 06:24 PM
#8
yeah ! Everywhere I see is Just .NET nothing else.
- Software Architect
-
June 30th, 2003, 01:06 AM
#9
vc++ code for accesing COM port
Hi,
I will be greatful if I can get the VC++ code for communicating with GSM modem as soon as possible.It is urgent. Thanks in advance.
-
June 30th, 2003, 08:55 PM
#10
Re: vc++ code for accesing COM port
Originally posted by Anil Belankar
Hi,
I will be greatful if I can get the VC++ code for communicating with GSM modem as soon as possible.It is urgent. Thanks in advance.
-> What port(Com/USB etc) do you use?
-
January 18th, 2005, 11:56 PM
#11
Re: Accessing COM port
-> What port(Com/USB etc) do you use?
USB please ...
-
January 20th, 2005, 09:52 AM
#12
Re: Accessing COM port
Do you want fries with that ?
Darwen.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|