Thread: Nokia datacable using COM1

  1. #1
    Unregistered
    Guest

    Nokia datacable using COM1

    Hi, does anybody know how to access COM1 because i need to know how to access a phone using a nokia datacable.

    Thanks,
    Steve

  2. #2
    Skunkmeister Stoned_Coder's Avatar
    Join Date
    Aug 2001
    Posts
    2,572
    Totally operating system dependant.
    On windows you can use CreateFile(). Check out the docs at msdn.
    Free the weed!! Class B to class C is not good enough!!
    And the FAQ is here :- http://faq.cprogramming.com/cgi-bin/smartfaq.cgi

  3. #3
    Registered User
    Join Date
    Dec 2001
    Posts
    7
    THE cable you can connect computer with nokia is
    the simple F-bus or M-BUS .You can find it in internet
    or in Nokia site

  4. #4
    _B-L-U-E_ Betazep's Avatar
    Join Date
    Aug 2001
    Posts
    1,412
    If it accepts ascii values like a modem, then you can open the com port as a file, but the downside is that you only get simplex communications.

    Code:
    #include <iostream>
    #include <fstream>
    
    using namespace std ;
    
    int main()
    {
    
            char port[10] = "COM1:";
            char character;
    
            
            ofstream comport (port);  // open port as file
    
    
            if (comport.fail()) 
            {
                    cout << "ERROR-Unable to open " << port << '\n' ;
                    return 1 ;
            }
    
            comport << "ATD123,,4567,,";
    
            // any pause function... ie getchar()
    
    
            comport.close();
    
    return(0);
    
    }
    Blue

Popular pages Recent additions subscribe to a feed