How to set up a CSD connection on iRZ modems?

Abbreviation CSD stands for Circuit Switched Data- data transmission by channel switching in the GSM network. A CSD connection is very similar to a regular voice call, which is why it is often called voice-over-data.
Below you can read exactly how to organize communication using this technology.

To work using CSD technology, all devices must be pre-configured.

You can configure modems manufactured by iRZ using the iRZ TestModem program. Other modems can be configured through the terminal program. The article will consist of two parts describing both methods.

To organize communication, we need two modems: a master, from which the telephone number will be dialed, and a slave, which will receive an incoming connection.

First of all, check that there is a positive balance on the account of the SIM cards installed in the modems.

Make sure the operator cellular communications I activated the CSD data service on both SIM cards.
Now connect the devices you want to configure to your computer via the RS232 interface. If there is no such interface, use an interface converter USB-RS232. For modems with RS485 or RS422 interface, a converter is required USB-RS485/422.
Apply power to the modems, wait for the modems to register in cellular network(LED blinking will become short-term and infrequent).

Preparing iRZ modems for operation using CSD technology using the iRZ TestModem program.

Download and install the iRZ TestModem program for your version of the operating system.
Next, run TestModem and select your device from the list.

If you know the number COM port and then you can indicate it in the section " Port Settings", otherwise the program will try to detect the modem on its own.

Click " Begin". Once the status indicator turns green, go to the " tab Settings".

In chapter " Mode" select the interface speed. It must match the speed of the equipment connected to the modem. As a rule, the standard speed is used 9600 bps.
Set the modem that will dial the phone number to " Leading". Set the modem that will accept incoming connections to " Slave". Click the " button Begin". After setup, the modem will be turned off and for further operation it will need to be rebooted by briefly turning off the power.

Preparing iRZ modems for operation using CSD technology using a terminal program.

Here is a list of AT commands for configuring modems:

Setting up a master modem(the call will be initiated from his side):Setting up a slave modem(the modem will accept incoming connections):

at&f
at+ipr=9600

at&d0(ignore DTR)

ate0(disable echo)

at&w(preservation)

at^smso(shutdown)

at&f(pre-reset)
at+ipr=9600(baud rate via COM port)

at^scfg="GPRS/ATS0/withAttach",off

ats0=1(auto answer after one ring)

at&c0(determination of DCD mode)

at&d0(ignore DTR)

at+cbst=71,0,1(switch the modem to data receiving mode)

ate0(disable echo)

at&w(preservation)

at^smso(shutdown)

Run Terminal 1.9b, install optionsport on the modem, select COM port, to which it is connected and press the button " Connect"

In the command input field, check the box " +CR" and enter the first command. Send it to the modem by pressing the " button ->Send".
Make sure that the modem sent confirmation of the command - response " OK"

Sequentially enter the entire set of AT commands given in the table above. After giving the last command " AT^SMSO"The setup will be completed. To continue working, you must briefly disconnect the power from the modem.

CSD (Circuit Switched Data) is a data transmission technology developed for mobile phones GSM standard.
GPRS (General Packet Radio Service) is an add-on to the technology mobile communications GSM, which carries out packet data transmission.
GPRS allows the user of a cellular network to exchange data with other devices on the GSM network and with external networks, including the Internet. GPRS involves charging based on the volume of information transmitted/received, and not on the time spent online with CSD.
In CSD mode, a connection with a remote device is established using its phone number, because This technology uses data transmission over voice channels.
In GPRS mode, the connection to a remote device is carried out using its IP address. For GPRS, communication channels are allocated on a residual basis after voice channels, i.e. voice channels mobile operators higher priority than GPRS channels.

IMPORTANT : not all modems can be configured in such a way that after power is turned on, the modem is ready to accept a connection in GPRS mode (to connect to a modem, specify the modem’s IP address and the TCP port “listened” by the modem).

How to activate the service and gain access?

If you do not have an agreement for communication services with MegaFon PJSC, you need to contact the Corporate Customer Service Center, conclude an agreement and write an application to connect to the M2M-Monitoring service. If you are already corporate client, you can independently activate the service through your “Personal Account” or submit a written application in the form established by the Operator.

How to log in via API?

  • URL: https://m2m.megafon.ru:3333
  • Request format: https://m2m.megafon.ru:3333/openapi/v1/tokens-stub/get?login=M2M_xxxxxxxxxx&password=xxxxxxxx

How to enter the service interface?

Follow the link “Personal Services Account” at the top of the screen. On the authorization page you must enter the login and password received via SMS to subscriber number user of the service, as well as the symbols located in the picture. The user has four attempts to enter an incorrect password to access the service interface. After the fifth entry of an incorrect password, access to this login is blocked. The user has the opportunity to receive New Password through the service interface, or by contacting the corporate customer service center.

How is the Subscription fee calculated?

When connecting to the M2M-Monitoring service, all corporate clients are provided with a test period of 7 calendar days, during which subscription fee not charged.

In the first month, the subscription fee is debited from the Personal Account of the Corporate client on the first day of paid use of the service based on the number of SIM cards with the connected service in proportion to the number of days remaining until the end of the month. Subsequently, the subscription fee is debited to full size on the first day of every month.

Which companies is this service intended for?

“M2M Monitoring” will be useful to all companies using SIM cards in devices and equipment. The service may be useful for companies working in the field of vehicle monitoring, banks and trading enterprises, auto manufacturers, companies in the energy and housing and communal services sector, fuel and energy companies, as well as companies specializing in security services, security, logistics companies, manufacturers of consumer electronics and system integrators.

Is it possible to connect M2M Monitoring yourself?

If your company is a corporate client of MegaFon PJSC, then you can independently connect M2M Monitoring through your personal account on the Corporate Portal. To do this, you need to connect to SIM card numbers with any corporate tariff plan:

  1. “M2M Monitoring” to load the required SIM card onto the M2M Monitoring Service platform and the ability to manage it through the Service Interface;
  2. M2M portal User - a setting that allows you to identify the user of the Service and provide access to manage SIM cards through the Service Interface;
  • M2M Portal Administrator - a setting that allows you to identify the administrator of the Service and provide access to manage SIM cards through the Service Interface.

The login and password for accessing the M2M-Monitoring service interface will be sent via SMS to the number of the employee who has the “M2M-portal User” or “M2M-portal Administrator” connected.

What notification capabilities does the service have?

You can set up alerts for various events, for example, for changing the device in which the SIM card is installed, for reaching data transfer limits, SMS, voice communication services, etc. You can also regulate the sending of notifications and configure sending parameters: address Email, phone numbers to receive SMS notifications.

What messages can I send using the service?

You can send messages to selected numbers with the M2M Monitoring service activated to determine the activity of the SIM card on the network. You can also send messages to the numbers of Russian mobile operators entered in the “Contacts” section in the service interface.

In this article we have collected information for you about the so-called “data transmission by voice” in the MTS network. The text below will be useful if you are thinking about purchasing alarm, fire safety sensors, or communicating remotely with another device.

First, let's briefly tell you what kind of technology this is and why it is needed.

Circuit Switched Data (CSD) is a switched data transmission technology developed for GSM mobile phones.

It uses one time slot to transmit data at a speed of 9.6 Kbps. This is a kind of call, calculated in seconds and minutes, but during them you will not hear the interlocutor on the other end, since completely different information is sent - numbers, conventional signals that only machines can recognize. Also available through the channel is sending faxes, SMS, as well as Internet access. You just need to get a suitable device.

Previously, before CSD, such information was sent via regular phone with access to the worldwide network or a separate modem with a SIM card. But the data transfer speed suffered greatly due to the unsuitability of such communication for the tasks: the speed did not exceed 2.4 kbit/sec.

Also, GSM technology assumed the “facilitation” of the transmitted sound due to encoding - in the case of data, this leads to such a reduction in speed that will not happen even in analogue telephone networks. The emergence of CSD provided full access to the digital capabilities of the GSM network - and increased speed parameters 4 times. And if the operator allocates not one, but several time intervals for “machine” calls, then the speed also increases significantly.

It was no coincidence that the question about the quality of the channel was raised at the beginning of the article. It determines how quickly and completely information will be delivered from your sensor to the reading device. Reaction speed is important, for example in smoke detectors or security systems. And without accuracy it is impossible to manage the accounting and monetization of gas and electricity consumed by users.

Price issue

If we touched on the monetary issue, we will consider it using the example of MTS tariffs. Basic prices for most tariff plans for data calls are 2 rubles/min. The cost is valid only in Russia and only for sending information to your home region. But there are also exceptions.

To ordinary people

If we consider MTS tariffs from the perspective of saving on your sensors, then we would advise, first of all, to take a closer look at the regular Red Energy dialer. But for guests of our country, as well as travelers within Russia, it is more profitable to connect their devices to the “Your Country” tariff and send data with double savings.

More details can be found in the table below.

In order to use CSD calls, you do not need to do anything - the service is included in the starting list at any tariff.

For business people

As for representatives of business and government agencies, their budget can be optimized through special CSD packages for any corporate tariff or directly selected tariff plan for Telematics machines.

Packages for machine communication

As on mass market, the corporate offer from MTS in the form of data transfer packages is valid in the region where the SIM card is connected and throughout Russia, and you can only send a “parcel” “home”.

You set the size of the fixed monthly payment yourself: from 12 to 10,000 rubles. The number of minutes is from 10 to 50,000. According to the laws of the market, the larger the purchase volume, the lower the price per unit. So you can, relative to the base price of 2 rubles, save 80 kopecks. up to 1.80 rub. in a minute. Moreover, with a maximum volume of 50,000 minutes, the benefit will be quite significant - 90,000 rubles.

It all depends on how much information you plan to convey. It’s good if you already know the source data, but if not, then we recommend starting with small packages. You can find out more about prices on the operator’s official website at https://moskva.mts.ru/business/internet-veshhey-iotm2m/paketi-csd-trafika.

You can add a package to an existing SIM card either through your personal account login.mts.ru or by contacting the operator’s office. Keep in mind that you will have to pay for the service one month in advance. And on the same date of the next one, the money will be written off for any balance, even negative.

Unfortunately, you can't combine packages, so choose just one. Changing your decision will be unprofitable: the new option will automatically delete the old one, and the unspent minutes will be burned.

M2M tariff

For SIM cards that are used exclusively in data transfer devices, it is better to immediately select the appropriate tariff - “Telematics”. The standard CSD price here is 1.35 rubles/min. But the packages and call directions are similar to the previous service.

The advantage of the tariff is that all other calls are prohibited here, which will additionally protect you from unauthorized use of the number by employees or other persons. Provides protection free service“Call barring except CSD” included in the starter kit.

You can also cancel its action - just add to personal account or through the operator’s employee the option “Access to voice communication" By the way, along with it you will also receive preferential prices for sending data to 3 “favorite CSD numbers”. In this case, the phones can be absolutely anything.

Also, when calculating efficiency, keep in mind that such calls are paid from the first second, and rounding is not per minute, as with regular calls, but per second. The exception here is trips within our country - invoices are issued rounded to the nearest minute.

In conclusion, we note that for a small number of numbers in sensors and other devices, it is more convenient and cheaper to take a regular set with the “Red Energy” tariff, but for large volumes, try to register a corporation and choose one of the options for business.