ComConnection issue BGS5 | Telit Cinterion IoT Developer Community
March 9, 2016 - 5:02pm, 2857 views
Hi all,
How Do I have to open the ComConnection for ASC0 ASC1 on BGS5 module?
javax.microedition.io.ConnectionNotFoundException
Using TC65i module i opened de connection with this:
(CommConnection) Connector.open("comm:com1;baudrate=".concat(String.valueOf(GPS_DEFAULT_BAUDRATE)));
What is the the CommConnection name for ASC0 and ASC1 in BGS5 module?
Regards.
Here is code with which can help you:
Regards,
Jure
COM0 (ASC0) is already connected, but COM1(ASC1) does not work
Thanks
Hello,
The port name is case sensitive and upper case should be used. In TC65i the lower case was accepted (or maybe even both).
You can also list the available COM ports with: System.getProperty("microedition.commports");
ASC0 is COM0 and ASC1 is COM1.
Regards,
Bartłomiej
Hi, thanks for the asnwer,
Using System.getProperty("microedition.commports");
The ports available are COM0,USB0,USB1
Why cant i open the COM1?
This is the current configuration of the module:
AT^SCFG?
^SCFG: "Call/ECC","0"
^SCFG: "GPRS/AutoAttach","enabled"
^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: "Ident/Manufacturer","Cinterion"
^SCFG: "Ident/Product","BGS5"
^SCFG: "MEShutdown/Fso","0"
^SCFG: "MEopMode/SoR","on"
^SCFG: "Radio/Band","15"
^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","0"
^SCFG: "URC/Ringline","local"
^SCFG: "URC/Ringline/ActiveTime","2"
^SCFG: "Userware/Autostart","1"
^SCFG: "Userware/Autostart/Delay","70"
^SCFG: "Userware/Passwd",
^SCFG: "Userware/Stdout","usb",,,,"off"
^SCFG: "Userware/Watchdog","1"
ASC1 is configured as "std", do I have to configure something more?
Thnaks in advanvce
Hi,
I can see the COM1
I needed configure this:
AT^SCFG="Serial/Interface/Allocation","1"
Thanks