BGS5T number of sockets and ATCommand instances | Telit Cinterion IoT Developer Community
May 28, 2019 - 1:47pm, 1241 views
Hello,
I have a memory that BGS5T is limited by, 3 socket connections and 3 ATCommand instances. I tried checking documentation :
-bgs5_atc_ext.pdf
-bgs5_java_user_guide.pdf
-ehsxt_bgsxt_rn_v01000.pdf
but I couldn’t find it in any of those documents. Does anyone know if in both occasions limit is 3 or is higher?
Best regards,
Jure
Hello,
You are right that this is not precisely described.
For sockets opened with AT commands it is quite clear - for SISS command there is <srvProfileId> parameter which can have values from 0 to 9.
For sockets in Java it is no less than that - here it is a matter of resources as each socket consumes some memory. I didn't test it now but as far as I remember it may be much more than that. If you want to use really many sockets under Java you need to take into consideration that after closing and releasing the socket it takse some time until it is garbage collcted so if one connection is closed and reopened immeidately there may be a few sockets waiting for garbage collector in the background. Generally you need to care to release any unused resources.
As for ATCommand instances I have just tested with my BGS5 module that it was possible to open 3 instances.
Best regards,
Bartłomiej