Hi, does anybody know how to access COM1 because i need to know how to access a phone using a nokia datacable.
Thanks,
Steve
Printable View
Hi, does anybody know how to access COM1 because i need to know how to access a phone using a nokia datacable.
Thanks,
Steve
Totally operating system dependant.
On windows you can use CreateFile(). Check out the docs at msdn.
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
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);
}