18 Replies - 1429 Views - Last Post: 19 August 2010 - 05:06 AM
#1
COM does not exist..
Posted 06 August 2010 - 11:42 AM
Replies To: COM does not exist..
#2
Re: COM does not exist..
Posted 06 August 2010 - 12:21 PM
T0mA, on 06 August 2010 - 12:42 PM, said:
Wow.. there's so much missing information:
- what type of phone?
- software and version number?
- what demo programs
-- -- sub point: are you asking us to "tech support" your demo programs you found off the internet?!
- what's the actual error message? Any error ids?
- Have you looked at searching the sites you got the apps from for help?
#3
Re: COM does not exist..
Posted 08 August 2010 - 05:20 AM
modi123_1, on 06 August 2010 - 11:21 AM, said:
T0mA, on 06 August 2010 - 12:42 PM, said:
Wow.. there's so much missing information:
- what type of phone?
- software and version number?
- what demo programs
-- -- sub point: are you asking us to "tech support" your demo programs you found off the internet?!
- what's the actual error message? Any error ids?
- Have you looked at searching the sites you got the apps from for help?
After all that being said, if all you want is to find what COM ports are open, go to the device manager, and look under "serial communication COM" or something like that... you should find there what COM ports are open, and you should be able to open some others...
#4
Re: COM does not exist..
Posted 10 August 2010 - 06:24 AM
i use this code:
http://msdn.microsof...tportnames.aspx
to actually get the port names, its a simple code nothing special.
i run the code, but it wont show the port names.
It only says : "The following serial ports were found:"
i attached a screeny from my device manager , hmm dont know much about this port thing but i think 3 and 5 are open, no idea, i think there is some other problem then the code, but this is slowing me down with my work and gettin realy frustrated.
Attached image(s)
#5
Re: COM does not exist..
Posted 10 August 2010 - 06:35 AM

Are you using a USB to Serial converter? Check your driver for it, because those should also pop up as a COMx port...
Maybe this is useful, it's a small serial port tool for windows which allows you to easily send and receive data with serial ports, it also shows your available ports on your system. As soon as you have your driver up and running it should be available in this application, then you can also use it in your own app.
Hope this helps,
Rico
EDIT: Maybe this wiki article and this article are an interesting read
This post has been edited by Rico Diesel: 10 August 2010 - 06:40 AM
#6
Re: COM does not exist..
Posted 10 August 2010 - 06:41 AM
#7
Re: COM does not exist..
Posted 10 August 2010 - 06:59 AM
T0mA, on 10 August 2010 - 01:24 PM, said:
i use this code:
http://msdn.microsof...tportnames.aspx
to actually get the port names, its a simple code nothing special.
i run the code, but it wont show the port names.
It only says : "The following serial ports were found:"
As far as I know the link you provided is for working with COM ports, which is old and in some fields very useful (In the AV integrating business it is method number one), it seems that you try to do things with USB, which is something different than COM stuff.
For working with USB I would suggest a library to do the communication part for you, cos USB can be very heavy.
I did some experimenting with this library: LibUsbDotNet After a bit of playing around (10 to 15 minutes) I could find my pen drive. I didn't have more time to experiment with it, but it seems to do the job.
This article talks about USB in C#, maybe it is useful.
This post has been edited by Rico Diesel: 10 August 2010 - 07:01 AM
#8
Re: COM does not exist..
Posted 10 August 2010 - 07:02 AM
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.IO.Ports;
namespace diploma2
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
string[] ports = SerialPort.GetPortNames();
foreach (string port in ports)
{
this.comboBox1.Items.Add(port);
}
}
}
}
now when i push the button, 2 ports are added to the combo box COM5 and COM6 but i still dont know on which one my phone is connected.
I used your program, he can detect my Nokia 5800 XpressMusic USB Modem , COM5 and COM6, but the code sniper abowe cant detect the phone, any idea?
#9
Re: COM does not exist..
Posted 10 August 2010 - 07:15 AM
I found this example on the web, it shows how you can send a textmessage with C# through your cellphone.
Here you can find the SDK which can be easily integrated into your .NET application: Nokia Forum
And the wiki with info: Nokia Wiki
No need to invent the wheel yourself
Rico
#10
Re: COM does not exist..
Posted 10 August 2010 - 07:50 AM
T0mA, on 10 August 2010 - 04:41 AM, said:
COM and USB ports are ways of communicating with devices attached to your computer. They are both serial ports (in that they send data one bit at a time), but that doesn't make them the same thing. Dogs and Cats are both Mammals, but you don't interact with them the same way
#11
Re: COM does not exist..
Posted 10 August 2010 - 09:18 AM
Attached image(s)
#12
Re: COM does not exist..
Posted 11 August 2010 - 01:25 AM
#13
Re: COM does not exist..
Posted 11 August 2010 - 01:32 AM
i found this thread the guy got the same problem as me and he got the same answer as my friend gave me com5 is a virtual port, but how do i get it no COM1 now so its working?
#14
Re: COM does not exist..
Posted 11 August 2010 - 02:57 AM
Like I stated before, I think you should switch to the SDK for connectivity
SDK Link
This provides you with the necessary .NET assemblies to connect easily to your phone.
Quote
Application developers can now add application connectivity capabilities, not just to Series 40 applications but also to applications for S60 devices based on S60 2nd Edition Feature Packs 1, devices, where they are supported by the Nokia PC Suite
I found this link on the Nokia Forum, the OP here seems to have similar problems as you.
Last, but not least: AT Commands and it's settings. The Nokia forums are quite helpful...
Hope this helps,
Rico
#15
Re: COM does not exist..
Posted 11 August 2010 - 07:32 AM
|
|

New Topic/Question
Reply




MultiQuote







|