Cinterion BGS2T(RS485)- socket listener | Telit Cinterion IoT Developer Community
February 7, 2019 - 8:25am, 1627 views
I need help with Cinterion BGS2T. I would like to use it as transparent server and communicate with remote electric meter. I have simcard with static ip address.
I use these settings:
at^sics=0,conType,GPRS0
OK
AT^SICS=0,"inactTO", "20"
OK
AT^SICS=0,apn,"statip"
OK
AT+CGATT=1
OK
AT+CGDCONT=2,"IP","statip"
OK
at^siss=4,srvType,socket
OK
at^siss=4,conId,0
OK
at^siss=4,address,"socktcp://listener:2001"
OK
at^siso=4
OK
at^siso?
^SISO: 0, ""
^SISO: 1, ""
^SISO: 2, ""
^SISO: 3, ""
^SISO: 4, "Socket","3","3","0","0","77.52.224.16:2001","0.0.0.0:0"
^SISO: 5, ""
^SISO: 6, ""
^SISO: 7, ""
^SISO: 8, ""
^SISO: 9, ""
OK
Remote host is open. I can see PING packets and i can connect to remote ip and port, but the electric meter does not respond. The electric meter is connected to the modem via the RS-485 interface.
Hello,
As I understand the meter is connected to RS-485 port of BGS2T and uou want to connect to it from some remote host.
Your connection is not configured as transparent. Please check ATI1 reply. Not all BGS2 versions support transparent listener.
How is this connection configuration done - is the meter sending these commands? Are you sure that the connection between the meter and module is working fine?
Regards,
Bartłomiej
"As I understand the meter is connected to RS-485 port of BGS2T and uou want to connect to it from some remote host."
Yes, it is.
"Your connection is not configured as transparent".
I didn't find how to configure transparent socket listener in the manual. I use this manual: https://www.seapraha.cz/wp-content/uploads/2017/08/GSM-BGS2T-232_command...
"Please check ATI1 reply."
>> ATI1
<< Cinterion
BGS2-W
REVISION 01.301
A-REVISION 01.000.03
OK
"How is this connection configuration done - is the meter sending these commands?"
The meter can't send AT commands. I want use it as transparent gateway (GPRS to RS-485).
Hello,
You are using BGS2 revision 1 module which cannot setup a transparent listener. And the document also doesn't show this possibility.
I think that in your final solution there should aslo be some controller to control BGS2 module, to do configuration and react in case of any problems.
Regards,
Bartłomiej