Serial not Working BGS5T | Thales IoT Developer Community
December 21, 2016 - 3:17pm, 4382 views
Hello.
I have a project running on a BGS5T, with some settings and now I bought another BGS5T and the serial communication is not working with the same configuration.
Maybe I'm forgetting to configure something, but the connection string is:
String strCOM = "comm:COM0;blocking=off;baudrate=115200;autocts=off;autorts=off";
AT^SCFG?AT^SCFG?
^SCFG: "Call/ECC","0"
^SCFG: "GPRS/AutoAttach","enabled"
^SCFG: "Gpio/****/ASC1","std"
^SCFG: "Gpio/****/DAI","gpio"
^SCFG: "Gpio/****/DCD0","std"
^SCFG: "Gpio/****/DSR0","std"
^SCFG: "Gpio/****/DTR0","std"
^SCFG: "Gpio/****/FSR","gpio"
^SCFG: "Gpio/****/PULSE","gpio"
^SCFG: "Gpio/****/PWM","gpio"
^SCFG: "Gpio/****/RING0","std"
^SCFG: "Gpio/****/SPI","rsv"
^SCFG: "Gpio/****/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","1","1"
^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","0"
^SCFG: "Userware/Passwd",
^SCFG: "Userware/Stdout","null",,,,"off"
^SCFG: "Userware/Watchdog","0"
^SPOW: 1,0,0
OK
AT&V From the Working one:
AT&VAT&V
ACTIVE PROFILE:
E1 Q0 V1 X0 &C1 &D2 &S0 \Q3
S0:000 S3:013 S4:010 S5:008 S6:000 S7:060 S8:000 S10:002
+CBST: 71,0,1
+CRLP: 61,61,78,6
+CR: 0
+CRC: 0
+CMGF: 0
+CNMI: 1,0,0,0,0
+CMEE: 0
+CSMS: 0,1,1,1
+CREG: 0,1
+CLIP: 0,2
+COPS: 0,0,"vodafone P",0
+CGSMS: 1
OK
and they have the same firmware:
AT+CGMR
REVISION 01.100
OK
AT^SCFG? from the working one:
AT^SCFG?AT^SCFG?
^SCFG: "Call/ECC","0"
^SCFG: "GPRS/AutoAttach","enabled"
^SCFG: "Gpio/****/ASC1","std"
^SCFG: "Gpio/****/DAI","gpio"
^SCFG: "Gpio/****/DCD0","std"
^SCFG: "Gpio/****/DSR0","std"
^SCFG: "Gpio/****/DTR0","std"
^SCFG: "Gpio/****/FSR","gpio"
^SCFG: "Gpio/****/PULSE","gpio"
^SCFG: "Gpio/****/PWM","gpio"
^SCFG: "Gpio/****/RING0","std"
^SCFG: "Gpio/****/SPI","rsv"
^SCFG: "Gpio/****/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","0","0"
^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","0"
^SCFG: "Userware/Passwd",
^SCFG: "Userware/Stdout","usb1",,,,"off"
^SCFG: "Userware/Watchdog","1"
OK
The old configuration (working fine) is the same on these AT registers. Am I forgetting anything? Do I need a sim card inserted to make this work?
Thanks
Hello,
It is recommended to use the hardware flow control on serial interface for terminal. Please try to set autocts=on;autorts=on;.
If the connected device does not support hardware flow control please additionally connect RTS with CTS.
Regards,
Bartłomiej
Hello,
if both settings are the same, I don't know what could be the problem. What is the device that you are trying to communicate with? Do you use same cable? And have you tried communicating with it trough computer terminal? Do you use same equpitment as with first module or did you just unplug first module and connected the second one?
And no, you don't need SIM card to use serial port. Of course if program doesn't need to connect to cellular network.
Regards,
Jure
Hello to you both and thank you for your answers.
@Bartlomiej the thing is that it works properly with the same devices, cables and ****m and in this new one it doesn't. Shouldn't all the BGS5T ****ms work the same?

@Jure Yes, I use the same cable. Yes I have tried via terminal. I will demonstrate what happens in the RS232Demo:
As you can see, I have to send a lot of commands, i sent "aaa" an then it starts working. This is very strange. Also, if I chose asc0 as stdout, it presents the output of the program perfectly.
Once again I mention that all of this works on the first BGS5T I got, but it doesn't on the other ones I bought.
Tried to connect CTS with RTS. Doesn't work either.
Thank you
Hello,
please provide response of ATI1 from both modules.
Regards,
Adam
Hello.
I don't have acess to the working one anymore.
But from the one I want to work:
ATI1ATI1
Cinterion
BGS5
REVISION 01.100
A-REVISION 00.000.18
OK
Also,
AT^SJAM=4AT^SJAM=4
^SJAM: "http://192.168.244.2:57546/RS232Demo.jad","RS232Demo MIDlet Suite","Gemalto M2M GmbH","1.0.0",0
^SJAM: "a:/JRC-1.50.3.jad","Java Remote Control MIDlet Suite","Cinterion","1.50.3","1"
OK
In a third BGS5T.
Same behaviour...
Solved the issue.
Had to link RTS and CTS, leave serial with no flow control and the connection string with flow control
Hello,
please remove autocts=off;autorts=off from Java strCOM String:
String strCOM = "comm:COM0;blocking=on;baudrate=9600";
and set RTS/CTS Handshake in Hercules terminal. We have no connection problems with that settings.
Regards,
Adam
Which type of RS232 cable? A regular one?
What if my device has no flow control? What should I use and what settings should I use?
Yes, regular 9pin RS232 cable with all pins connected.
If your device has no flow control, you should connect RTS and CTS together. Please be aware that without flow control there is no buffer overflow protection. You can use settings like in post above.
Regards,
Adam