BGS5 throws an exception "COM1 port not found!" | Telit Cinterion IoT Developer Community
November 9, 2017 - 12:34pm, 1921 views
Hi everybody,
During the development of the firmware, at the Connector.open() of COM1 port, I get an error : "COM1 port not found!", I used the connector class as you can see in the following line:
cc = (CommConnection) Connector.open("comm:" + "COM1" + ";baudrate=" + "300" + ";bitsperchar=8;parity=none;stopbits=1;autorts=off;autocts=off;blocking=off");
The module version and its configuration are as follows:
ati1
Cinterion
BGS5
REVISION 01.100
A-REVISION 00.000.18
at^scfg?
^SCFG: "Call/ECC","0"
^SCFG: "Gpio/mode/ASC1","std"
^SCFG: "Gpio/mode/DAI","gpio"
^SCFG: "Gpio/mode/DCD0","gpio"
^SCFG: "Gpio/mode/DSR0","gpio"
^SCFG: "Gpio/mode/DTR0","gpio"
^SCFG: "Gpio/mode/FSR","gpio"
^SCFG: "Gpio/mode/PULSE","gpio"
^SCFG: "Gpio/mode/PWM","gpio"
^SCFG: "Gpio/mode/RING0","gpio"
^SCFG: "Gpio/mode/SPI","rsv"
^SCFG: "Gpio/mode/SYNC","std"
^SCFG: "GPRS/AutoAttach","enabled"
^SCFG: "Ident/Manufacturer","Cinterion"
^SCFG: "Ident/Product","BGS5"
^SCFG: "MEopMode/SoR","on"
^SCFG: "MEShutdown/Fso","0"
^SCFG: "Radio/OutputPowerReduction","4"
^SCFG: "Serial/Interface/Allocation","2","2"
^SCFG: "Serial/USB/DDD","0","0","0409","1E2D","0059","Cinterion Wireless Modules","Cinterion BGx USB Com Port",""
^SCFG: "Tcp/IRT","3"
^SCFG: "Tcp/MR","10"
^SCFG: "Tcp/OT","6000"
^SCFG: "Tcp/WithURCs","on"
^SCFG: "Trace/Syslog/Otap","1","asc0",,,,"off"
^SCFG: "Userware/Autostart","1"
^SCFG: "Userware/Autostart/Delay","50"
^SCFG: "Userware/Passwd",
^SCFG: "Userware/Stdout","usb1",,,,"off"
^SCFG: "Userware/Watchdog","0"
^SCFG: "Radio/Band","15"
I could not find out what is the problem. Can you told me what is the meaning of this exception?
Hello,
Please see this setting in the AT Commands Specification document:
^SCFG: "Serial/Interface/Allocation","2","2"
Currently the COM1 port is not available for your application. COM1 in Java is ASC1 interface, COM0 is ASC0 interface.
You can also check the available ports in the MIDlet with System.getProperty("microedition.commports");
Best regards,
Bartłomiej
Hello BARTŁOMIEJ,
Thanks for your comment, it was helpful.
Best regards,
Ahmad