COM does not exist..

  • (2 Pages)
  • +
  • 1
  • 2

18 Replies - 1429 Views - Last Post: 19 August 2010 - 05:06 AM Rate Topic: -----

#1 T0mA  Icon User is offline

  • New D.I.C Head

Reputation: 1
  • View blog
  • Posts: 41
  • Joined: 07-December 09

COM does not exist..

Posted 06 August 2010 - 11:42 AM

So, im working on this sms send recieve thin via phone trough data cable thing, but i got a big big problem right at the start, with the USB connection, i downloaded a lot demo pograms from codeproject and from dreamincode that are detecting devices that are connected, but i always get the same error, something like the COM1...2..3..4 etc doesn't exist. Is there a problem with Windows 7 or with the USB drivers? help please.
Is This A Good Question/Topic? 0
  • +

Replies To: COM does not exist..

#2 modi123_1  Icon User is offline

  • Suitor #2
  • member icon



Reputation: 6467
  • View blog
  • Posts: 23,511
  • Joined: 12-June 08

Re: COM does not exist..

Posted 06 August 2010 - 12:21 PM

View PostT0mA, on 06 August 2010 - 12:42 PM, said:

So, im working on this sms send recieve thin via phone trough data cable thing, but i got a big big problem right at the start, with the USB connection, i downloaded a lot demo pograms from codeproject and from dreamincode that are detecting devices that are connected, but i always get the same error, something like the COM1...2..3..4 etc doesn't exist. Is there a problem with Windows 7 or with the USB drivers? help please.


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?! :blink:
- what's the actual error message? Any error ids?
- Have you looked at searching the sites you got the apps from for help?
Was This Post Helpful? 1
  • +
  • -

#3 yarok  Icon User is offline

  • New D.I.C Head

Reputation: 3
  • View blog
  • Posts: 12
  • Joined: 11-January 10

Re: COM does not exist..

Posted 08 August 2010 - 05:20 AM

View Postmodi123_1, on 06 August 2010 - 11:21 AM, said:

View PostT0mA, on 06 August 2010 - 12:42 PM, said:

So, im working on this sms send recieve thin via phone trough data cable thing, but i got a big big problem right at the start, with the USB connection, i downloaded a lot demo pograms from codeproject and from dreamincode that are detecting devices that are connected, but i always get the same error, something like the COM1...2..3..4 etc doesn't exist. Is there a problem with Windows 7 or with the USB drivers? help please.


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?! :blink:
- 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...
Was This Post Helpful? 1
  • +
  • -

#4 T0mA  Icon User is offline

  • New D.I.C Head

Reputation: 1
  • View blog
  • Posts: 41
  • Joined: 07-December 09

Re: COM does not exist..

Posted 10 August 2010 - 06:24 AM

i got further in the problem

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)

  • Attached Image

Was This Post Helpful? 0
  • +
  • -

#5 Rico Diesel  Icon User is offline

  • D.I.C Head

Reputation: 61
  • View blog
  • Posts: 122
  • Joined: 06-May 10

Re: COM does not exist..

Posted 10 August 2010 - 06:35 AM

You don't have any Serial Ports on your system, a serial port looks like this

Attached Image

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

Was This Post Helpful? 1
  • +
  • -

#6 T0mA  Icon User is offline

  • New D.I.C Head

Reputation: 1
  • View blog
  • Posts: 41
  • Joined: 07-December 09

Re: COM does not exist..

Posted 10 August 2010 - 06:41 AM

uhh um now im confused... i thought the serials are the USB ports cause when i google it like>> getting data from usb or connecting via usb to blabla i always get some serial port things.. so this isnt showing me the USB ports? aww.. im totally on the wrong way..
Was This Post Helpful? 0
  • +
  • -

#7 Rico Diesel  Icon User is offline

  • D.I.C Head

Reputation: 61
  • View blog
  • Posts: 122
  • Joined: 06-May 10

Re: COM does not exist..

Posted 10 August 2010 - 06:59 AM

View PostT0mA, on 10 August 2010 - 01:24 PM, said:

i got further in the problem

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

Was This Post Helpful? 1
  • +
  • -

#8 T0mA  Icon User is offline

  • New D.I.C Head

Reputation: 1
  • View blog
  • Posts: 41
  • Joined: 07-December 09

Re: COM does not exist..

Posted 10 August 2010 - 07:02 AM

oh a litle succes:

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?
Was This Post Helpful? 0
  • +
  • -

#9 Rico Diesel  Icon User is offline

  • D.I.C Head

Reputation: 61
  • View blog
  • Posts: 122
  • Joined: 06-May 10

Re: COM does not exist..

Posted 10 August 2010 - 07:15 AM

I think you should switch to the SDK of Nokia for this sort of stuff

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
Was This Post Helpful? 1
  • +
  • -

#10 Momerath  Icon User is offline

  • D.I.C Lover
  • member icon

Reputation: 809
  • View blog
  • Posts: 1,950
  • Joined: 04-October 09

Re: COM does not exist..

Posted 10 August 2010 - 07:50 AM

View PostT0mA, on 10 August 2010 - 04:41 AM, said:

uhh um now im confused... i thought the serials are the USB ports cause when i google it like>> getting data from usb or connecting via usb to blabla i always get some serial port things.. so this isnt showing me the USB ports? aww.. im totally on the wrong way..

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 :)
Was This Post Helpful? 1
  • +
  • -

#11 T0mA  Icon User is offline

  • New D.I.C Head

Reputation: 1
  • View blog
  • Posts: 41
  • Joined: 07-December 09

Re: COM does not exist..

Posted 10 August 2010 - 09:18 AM

K my phone is on the COM5 i asked a friend on msn he said its some kinde of virtual com port, i got no problem with that, but some how i need to open it now, I tryd with putty but i cant open the port, i donwloaded some custom hyper terminal like it was on xp but doesnt working well somehow i cant write in the consol... i could need some kinde of program for that, maybe its time to jump in the water and try it over C# code with some AT commands or somehing. oh and +1 for everyones help for now. Keep the good ideas coming :D

Attached image(s)

  • Attached Image

Was This Post Helpful? 0
  • +
  • -

#12 T0mA  Icon User is offline

  • New D.I.C Head

Reputation: 1
  • View blog
  • Posts: 41
  • Joined: 07-December 09

Re: COM does not exist..

Posted 11 August 2010 - 01:25 AM

still cant open the COM5 im not getting further , putty cant open it, and i cant write in the free HyperTerminals consol... help me please.
Was This Post Helpful? 0
  • +
  • -

#13 T0mA  Icon User is offline

  • New D.I.C Head

Reputation: 1
  • View blog
  • Posts: 41
  • Joined: 07-December 09

Re: COM does not exist..

Posted 11 August 2010 - 01:32 AM

http://www.sysopt.co...ead.php?t=24669

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?
Was This Post Helpful? 0
  • +
  • -

#14 Rico Diesel  Icon User is offline

  • D.I.C Head

Reputation: 61
  • View blog
  • Posts: 122
  • Joined: 06-May 10

Re: COM does not exist..

Posted 11 August 2010 - 02:57 AM

Hehehe, that was probably the oldest link ever you could find about this subject... :P

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

The Nokia PC Suite Connectivity API (PCSAPI) is a successor of the existing Nokia PC Connectivity SDKs.

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
Was This Post Helpful? 0
  • +
  • -

#15 T0mA  Icon User is offline

  • New D.I.C Head

Reputation: 1
  • View blog
  • Posts: 41
  • Joined: 07-December 09

Re: COM does not exist..

Posted 11 August 2010 - 07:32 AM

heh my nokia 5800 doesnt suports AT commands wow im f***d... and i dont know any other way to read my sms fomr the phone , and i dont know how to use librarys.
Was This Post Helpful? 0
  • +
  • -

  • (2 Pages)
  • +
  • 1
  • 2