Hi,
I develop the midlet that connect with my PC. The midlet upload my
nokia 6260 and use J2ME with package javax.bluetooth. When I tried
connected with the specific bt address server and number channel of
service it send the error :frown:
"SymbianOS error -6354 General"
The error mean is KErrRfcommFrameResponseTimeout.
I typed below the code side client(mobile phone)
public void run(){
TextField TextLogin = (TextField)this.get(0);
TextField TextPass = (TextField)this.get(1);
String connString = getConnectionString();
this.append("Conexi�n al servidor\n"😉;
if (connectToServer (connString)){
this.append("Hecho"😉;
}
}
private String getConnectionString(){
StringBuffer temp = new StringBuffer("btspp://000A3A570270:1"😉;
return temp.toString();
}
private boolean connectToServer (String connString){
this.append(connString+"\n"😉;
try{
conn = (StreamConnection) Connector.open(connString);
input = conn.openInputStream();
output = conn.openOutputStream();
return true;
}catch (IOException ioe){
this.append("Conexi�n falla (IOException: "😉;
this.append (ioe.getMessage());
this.append("😉\n"😉;
return false;
}
}
Now, Somebody tell me what's the problem with my source code? why the
midlet can connect to PC?.
The side PC I use programing language J2SE to platform Linux, stack
protocolo BlueZ is runing with daemons rfcomm, too I get up the
service serial port with daemon sdptool of BlueZ.
The side server only call system (stack protocol BlueZ) for execute
the instruction from terminal and the result return the application.
I hope help me, please!!!
Thanks 😊