I'm trying to connect Nokia 6120c (s60 system) with a POS printer via USB cable.
comm = (CommConnection) Connector.open("comm:USB1");
But it throws the exception IOException SymbianOS error -21
As searched from the official specification, it means KErrAccessDenied.
I also tried Connector.open("comm:COM0") and Connector.open("comm:COM1"), and the error is ConnectionNotFound.
I think the port USB1 should be used, but why the error KErrAccessDenied happened?
Do you have any idea?
Thanks a lot for your kind help!