Manage GSM Modems
Apart from email servers, Macula supports GSM modems. These modems with your pre-installed SIM cards can send and receive SMS (short messages), which can be used for the following scenarios:
send custom SMS notifications from Macula servers
use SMS verification for 2FA
receive SMS to trigger internal Macula events
If the modem doesn't work in, please try with a third-party app/utility. If the external utility does not work, Macula servers will also be unable to work with that modem. Microsoft offers a free tool called Microsoft Messaging, which you can get in Microsoft Store.
Connect and Set Up Modems
First, plug in your GSM modem as instructed in its manual - usually, modern devices use a USB connector and a virtual COM port. The modem should appear in the Windows Device Manager - if the drivers are installed automatically, you will see it appear under Ports > Modems, occupying one or several serial ports. Check the modem properties to view the occupied port. Some of the ports may be hidden; you can view the hidden entries by clicking the Device Manager main menu > View > Show hidden devices. Normally, you will not have to do this, as active (non-hidden) modems will be used in Macula.

If you are unplugging the modem, make sure to connect it to the same USB port next time; otherwise, the modem may use a different COM port, and will stop working because the Macula Console settings cannot be updated automatically. If you do insert the modem into a different physical port, make sure to check the new port and re-select it in the modem properties in Macula Console.
Then, in Macula Console, in the Configuration section, choose GSM Modems on the left. In the upper panel, click the + New GSM modem button to open the dialog box, and enter the modem settings. All COM parameters must match those on the modem side.

Available settings:
Title: user-defined modem name that will appear across Macula Console
Server: Macula server that has the modem hardware attached to it
COM port: choose the port used by the target modem
Baud rate: must match the modem setting
Data bits: must match the modem setting
Stop bits: must match the modem setting
Parity: must match the modem setting
SMS mode: choose TEXT mode unless you need (and know how) to use special characters that are only supported in PDU mode (GSM7 encoding only)
SMS encoding: GSM7 (special ASCII for GSM) or USC2 (special version of Unicode for GSM)
For correct COM port, check the modem port under Modems in the Device Manager as displayed above; depending on the modem driver, there may be multiple ports, including hidden ones. Some of these are usable by Macula, and some may be auxiliary: after creating the modem, use the Test button in the upper panel to test the connection and check if you have picked the right one.
After filling in the settings, click OK to save: the newly created modem connection will appear in the list. Click the Test button to verify the connection: if the status retrieval fails, try selecting a different COM port. If none of the ports work, ensure that the serial port settings (baud rate etc.) match the settings on the modem side exactly.
The Test dialog box has two functions:
modem status: verified automatically
test SMS: enter phone number and text to send the message
To test against a specific phone number, enter the phone number - either in the international format (including the country code using either + or 00 prefix), or without the country code if the number is local for the SIM operator. Click OK to attempt sending the short message. If the number is incorrect, you will get a failure notification. If everything is fine, you will get a success message, and the message will arrive shortly (usually, instantly) to the target phone.
The billing for the messages will be as per your SIM card plan.
GSF is not responsible for any losses due to additional mobile operator fees. It is solely your responsibility to keep track of and control the message flow and the event frequency in case the SMS is sent based on an E&A event.
If you respond to that test SMS, the modem will receive it and you will see it appear in the modem status summary under Last messages. The exact time of the message reception may vary depending on the modem hardware and settings; Macula does not introduce any additional delays.
Important! Make sure your modem does not go to sleep. To do this, go to the Windows Device Manager, find your modem under Modems, and check the Power Management tab for related settings. Do not allow the PC to turn OFF the modem to save power.

Configured modems will appear in the corresponding tab of the Monitoring section.
Receive SMS
Once you add a modem, you will be able to receive SMS and use it for event triggering on Macula servers.
Modem Events
To create an SMS event, switch to the Events & Actions section of Macula Console, and choose Events on the left (you can also create new events right from the E&A Configurator). In the top panel, click the + New event button, then select the SMS message received event type in the dialog box, and then fill in the rest of the settings:
Title: user-defined event name
Source: existing modem hardware to accept the message
Phone: sender's full phone number*; leave empty for any number
Text: SMS text to trigger the event, case-sensitive; leave empty for any text to trigger the event
Regular expression: enable if you wish to evaluate the incoming text with regex, e.g., use placeholders
*The phone number must be in the international format (with leading + or 00 and a country code) for ALL numbers, even local ones. The event will not work properly without the country code.
Click OK to save and close the dialog box. The newly created event will appear in the list.
Once you have created the event, you can use it to build event rules in the Event & Action Configurator, as usual. For example, you can send SMS to trigger start/stop recording, to open doors and gates, or to create alarms and bookmarks.
Please note that modems may introduce delays when receiving SMS due to periodic SMS reading approach (messages are received from the mobile operator at certain intervals). Please test your modem hardware and ensure that the resulting SMS reception frequency is acceptable for your event scenario. The Macula software does not add any delays and is not responsible for the delays on the hardware side.
Send SMS
Similarly, modems can send SMS to the pre-configured phone numbers. Macula servers can utilize this in two scenarios:
send messages based on the triggered events - E&A actions
send codes via SMS for two-factor authentication (2FA)
Note that you cannot create actions or 2FA notification providers without actually having a working modem, so make sure to add and test the modem first.
Modem Actions
To create an SMS sending action, switch to the Events & Actions section of Macula Console, and choose Actions on the left (you can also create new actions right from the E&A Configurator). In the top panel, click the + New action button, then select the Send SMS action type from the Notifications group in the dialog box, and then fill in the rest of the settings:
Title: user-defined action name
Source: existing modem hardware to send the message
Phone: the recipient's phone number*
Text: SMS text to be sent, right-click to insert text macros
*If the phone number does not have a country code defined, the local country code of the SIM card operator will be appended to the number. If you want to guarantee the number correctness and the message delivery, please enter the number in the international format with a country code and a leading +/00.
Depending on your modem settings and chosen language, each message may be split into several ones. Before setting up the notifications on production servers, verify the setup and make sure you are getting the desired results.
Two-Factor Authentication (2FA)
Before enabling 2FA:
add a valid modem and test it
ensure all users who will use 2FA have a valid and full phone number specified in their account properties in Macula Console
The phone number setting is new (comes with the modem support) so you will need to go each user's properties and enter their phone number to make sure they can receive SMS for the verification.

To set up 2FA, go to your Macula server settings (for Macula Global systems - go to the central management server properties, as this a is system-wide setting) > Two-Factor Authentication tab > add a new notification provider and specify the rest of the settings as described in the corresponding chapter about 2FA.
Last updated