Remote telemetry

Telemetry of remote objects via GSM modem SPRUTNET PRO BGS2

What are modems for ..? The question is rather rhetorical.
Transferring data from point A to point B, without spending time and effort on physical movement - their main purpose. Let us consider the problem of taking readings from metering devices via the GSM channel, which is relevant for many.
modem1.jpg
Of the many models on the market, SPRUTNET PRO BGS2 was chosen, primarily because of the relatively low price - 3900 rubles, and secondly, the developers offer free samples for testing. Another plus is that to organize a communication channel there is no need to purchase two modems - it is only needed directly at the facility, and on the operator's side, special software is installed that converts incoming TCP connection packets into a virtual COM port, to which you can already connect any user program.
The main reason that convinced me to choose this particular model was the presence on Sprutnet PRO of two interfaces for communication with external equipment at once - RS232 and RS485. Due to the fact that the modem was supposed to be installed at the heating unit of an apartment building, where there are devices with both interfaces, the choice was made.

To order a modem for testing, you can chat directly in the chat on the SPRUTNET PRO BGS2 website with a pleasant and technically competent manager who will help you choose the right model. For example, I needed a modem with data transmission via GPRS, although a model using a CSD connection may be more suitable for someone.
modem2.jpg
So, the package has arrived, the modem is in hand - let's start experiments. It looks pretty solid, metal case, connectors for external connections for a screw. My modem has two slots for SIM cards, i.e. the possibility of reservation of the communication channel is provided.
The modem is configured via the USB interface, for which you must first install the driver from the download page. In general, developers are in order with documentation and software, there is no need to look for anything separately, everything is in one place.
For configuration, you need to get the SIM card out of the modem, otherwise, when turned on, it will go into operating mode. The whole setup is described in the documentation, it takes a couple of minutes. During the configuration, an unexpected fact was revealed - in the line of the IP address with which the connection was established, a static, white address must be indicated! Let it be so, the obstacle is completely surmountable.
For the sake of experiment, I checked whether there will be a connection through a gray dynamic address. Yes, everything works, BUT until the next reboot of the router, after which it is necessary to drive a new connection address into the modem again - not the best option. The problem was solved by registration with a provider under a dedicated IP contract. In Rostelecom, this service costs 130 rubles. when connected and further 80r. per month. By the way, I also tried to exit via VLAN, but the problem is that the ports needed for exchange in this way could not be transferred. Maybe there is a way, but time is money, so it was easier to negotiate with the provider.
So, the modem is configured. It remains to install the necessary software on the PC. This software is based on Eltima developments and is essentially a paid product, but if you wish, you can find demo versions. I recommend contacting Sprutnet technical support, they helped me find the right version of the IP adapter, which was not on the site.
 As a result, when launched, this utility hangs in the tray and creates two interconnected virtual COM ports. One receives packets from an external TCP connection, the other is directly connected to any user program - a hyperterminal, software for polling meters or a SCADA system.
All. It remains to supply power to the modem and observe the process of establishing a connection. For verification, manufacturers recommend hanging an external jumper between Tx and Rx (pins 2 and 3) on the connector.
Some time after the start of the IP adapter, a message about the connected modem appears in the log. To check the connection, you can launch a hyperterminal, in the connection properties of which the second port from the linked pair is indicated, in the figure it is COM8.By pressing the buttons on the keyboard, we get a return echo through the jumper on the modem with some delay. On the modem, when the connection is established, the red indicator is constantly on.
The channel is working, now you can connect external devices.
In my case, this is a VKT-7 heat calculator and a TRM32 heating controller made by Aries. Communication with the first is carried out via the RS232 interface, with the second - via RS485. By the way, this device was originally purchased from the factory in a budget version - without communication interfaces, we had to install the missing elements, since the firmware is the same for both versions.
To poll both devices, you don't need to reinvent the wheel, manufacturers have taken care of various software options for taking readings, up to OPC servers. For example, for VKT-7, all the necessary software can be found on the developer's or dealers' website. The same goes for the TPM32, which is included in the list of supported devices in the Aries OPC server.
The only caveat is that the indicated devices must be interrogated, of course, in turn, because interfaces 232 and 485 on the modem in fact occupy one channel and differ only in circuitry.

It is too early to draw general conclusions, the modem is installed at the facility, further operation will show all the pros and cons.


Author: Anisimov Sergey (sa104@mail.ru)


#Sprutnet, #PRO, #interfaces, #communication, #RS232, #RS485, #modem
Russian version
Array
(
    [ID] => 396
    [IBLOCK_ID] => 1
    [NAME] => GSM modem SPRUTNET PRO BGS2
    [IBLOCK_SECTION_ID] => 
    [IBLOCK] => Array
        (
            [ID] => 1
            [~ID] => 1
            [TIMESTAMP_X] => 26.03.2021 22:40:30
            [~TIMESTAMP_X] => 26.03.2021 22:40:30
            [IBLOCK_TYPE_ID] => EN
            [~IBLOCK_TYPE_ID] => EN
            [LID] => s2
            [~LID] => s2
            [CODE] => articals
            [~CODE] => articals
            [API_CODE] => 
            [~API_CODE] => 
            [NAME] => Articles
            [~NAME] => Articles
            [ACTIVE] => Y
            [~ACTIVE] => Y
            [SORT] => 10
            [~SORT] => 10
            [LIST_PAGE_URL] => /articals/
            [~LIST_PAGE_URL] => /articals/
            [DETAIL_PAGE_URL] => /articals/#ELEMENT_CODE#.html
            [~DETAIL_PAGE_URL] => /articals/#ELEMENT_CODE#.html
            [SECTION_PAGE_URL] => 
            [~SECTION_PAGE_URL] => 
            [CANONICAL_PAGE_URL] => https://lapshinvr.com/articals/articals.html
            [~CANONICAL_PAGE_URL] => https://lapshinvr.com/articals/articals.html
            [PICTURE] => 
            [~PICTURE] => 
            [DESCRIPTION] => 
            [~DESCRIPTION] => 
            [DESCRIPTION_TYPE] => html
            [~DESCRIPTION_TYPE] => html
            [RSS_TTL] => 24
            [~RSS_TTL] => 24
            [RSS_ACTIVE] => Y
            [~RSS_ACTIVE] => Y
            [RSS_FILE_ACTIVE] => N
            [~RSS_FILE_ACTIVE] => N
            [RSS_FILE_LIMIT] => 
            [~RSS_FILE_LIMIT] => 
            [RSS_FILE_DAYS] => 
            [~RSS_FILE_DAYS] => 
            [RSS_YANDEX_ACTIVE] => N
            [~RSS_YANDEX_ACTIVE] => N
            [XML_ID] => 
            [~XML_ID] => 
            [TMP_ID] => 
            [~TMP_ID] => 
            [INDEX_ELEMENT] => Y
            [~INDEX_ELEMENT] => Y
            [INDEX_SECTION] => N
            [~INDEX_SECTION] => N
            [WORKFLOW] => N
            [~WORKFLOW] => N
            [BIZPROC] => N
            [~BIZPROC] => N
            [SECTION_CHOOSER] => L
            [~SECTION_CHOOSER] => L
            [LIST_MODE] => 
            [~LIST_MODE] => 
            [RIGHTS_MODE] => S
            [~RIGHTS_MODE] => S
            [SECTION_PROPERTY] => N
            [~SECTION_PROPERTY] => N
            [PROPERTY_INDEX] => N
            [~PROPERTY_INDEX] => N
            [VERSION] => 1
            [~VERSION] => 1
            [LAST_CONV_ELEMENT] => 0
            [~LAST_CONV_ELEMENT] => 0
            [SOCNET_GROUP_ID] => 
            [~SOCNET_GROUP_ID] => 
            [EDIT_FILE_BEFORE] => 
            [~EDIT_FILE_BEFORE] => 
            [EDIT_FILE_AFTER] => 
            [~EDIT_FILE_AFTER] => 
            [SECTIONS_NAME] => 
            [~SECTIONS_NAME] => 
            [SECTION_NAME] => 
            [~SECTION_NAME] => 
            [ELEMENTS_NAME] => Элементы
            [~ELEMENTS_NAME] => Элементы
            [ELEMENT_NAME] => Элемент
            [~ELEMENT_NAME] => Элемент
            [REST_ON] => N
            [~REST_ON] => N
            [EXTERNAL_ID] => 
            [~EXTERNAL_ID] => 
            [LANG_DIR] => /
            [~LANG_DIR] => /
            [SERVER_NAME] => lapshinvr.com
            [~SERVER_NAME] => lapshinvr.com
        )

    [LIST_PAGE_URL] => /articals/
    [~LIST_PAGE_URL] => /articals/
    [SECTION_URL] => 
    [CANONICAL_PAGE_URL] => https://lapshinvr.com/articals/gsm-modem-sprutnet-pro-bgs2.html
    [SECTION] => Array
        (
            [PATH] => Array
                (
                )

        )

    [IPROPERTY_VALUES] => Array
        (
            [ELEMENT_PREVIEW_PICTURE_FILE_NAME] => gsm modem sprutnet pro bgs2
            [SECTION_META_TITLE] => Automation articles 
            [SECTION_META_KEYWORDS] => Automation, Articles 
            [SECTION_META_DESCRIPTION] => I met something worthy of attention during the work. It is difficult to assess the necessity of posting this or that article, I tried to clean up the obvious garbage
            [SECTION_PAGE_TITLE] => Here I published articles that may be useful to someone in the production of work
            [ELEMENT_META_TITLE] => GSM modem SPRUTNET PRO BGS2
            [ELEMENT_META_KEYWORDS] => Sprutnet, PRO, interfaces, communication, RS232, RS485, modem, manyflat, townhouse
            [ELEMENT_META_DESCRIPTION] => A small article on how we tested the modem SPRUTNET PRO BGS2. This useful device can be used for dispatching
            [ELEMENT_PAGE_TITLE] => Remote telemetry
        )

    [TIMESTAMP_X] => 17.04.2021 10:00:52
    [META_TAGS] => Array
        (
            [TITLE] => Remote telemetry
            [BROWSER_TITLE] => GSM modem SPRUTNET PRO BGS2
            [KEYWORDS] => Sprutnet, PRO, interfaces, communication, RS232, RS485, modem, manyflat, townhouse
            [DESCRIPTION] => A small article on how we tested the modem SPRUTNET PRO BGS2. This useful device can be used for dispatching
        )

    [PREVIEW_TEXT] => To order a modem for testing, you can chat directly in the chat on the SPRUTNET PRO BGS2 website with a pleasant and technically competent manager who will help you choose the right model. For example, I needed a modem with data transmission via GPRS, although a model using a CSD connection may be more suitable for someone
    [PREVIEW_PICTURE] => Array
        (
            [ID] => 1186
            [TIMESTAMP_X] => Bitrix\Main\Type\DateTime Object
                (
                    [value:protected] => DateTime Object
                        (
                            [date] => 2021-04-17 10:00:52.000000
                            [timezone_type] => 3
                            [timezone] => Europe/Moscow
                        )

                )

            [MODULE_ID] => iblock
            [HEIGHT] => 279
            [WIDTH] => 279
            [FILE_SIZE] => 16216
            [CONTENT_TYPE] => image/jpeg
            [SUBDIR] => iblock/6b3
            [FILE_NAME] => gsm_modem_sprutnet_pro_bgs2.jpg
            [ORIGINAL_NAME] => gsm-modem-sprutnet-pro-bgs2.jpg
            [DESCRIPTION] => Modem for prom
            [HANDLER_ID] => 
            [EXTERNAL_ID] => 1bcde09708393101f2f26e047d8758f5
            [~src] => 
            [SRC] => /upload/iblock/6b3/gsm_modem_sprutnet_pro_bgs2.jpg
            [UNSAFE_SRC] => /upload/iblock/6b3/gsm_modem_sprutnet_pro_bgs2.jpg
            [SAFE_SRC] => /upload/iblock/6b3/gsm_modem_sprutnet_pro_bgs2.jpg
            [ALT] => GSM modem SPRUTNET PRO BGS2
            [TITLE] => GSM modem SPRUTNET PRO BGS2
        )

    [DETAIL_PAGE_URL] => /articals/gsm-modem-sprutnet-pro-bgs2.html
)
Ваш комментарий добавлен

Возврат к списку