This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
app-notes:hayes-modem-at-simulator [2018/03/12 08:40] – juraschek | app-notes:hayes-modem-at-simulator [2018/05/08 17:10] – [Field Legacy Mode] cakir | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Modem Simulator | + | ====== |
This Wiki Page describes how to use a NetModule Wireless Router as replacement for legacy dial in / dial out connections based on analog or gsm modems. | This Wiki Page describes how to use a NetModule Wireless Router as replacement for legacy dial in / dial out connections based on analog or gsm modems. | ||
Line 5: | Line 5: | ||
We support the Hayes AT Command set on the serial interface and behave like normal router | We support the Hayes AT Command set on the serial interface and behave like normal router | ||
- | You can easily replace your old Modem with an the NetModule Router. There is also no need to configure the attached device as you can prepare the NetModule Router | + | You can easily replace your old Modem with an the NetModule Router. There is also no need to configure the attached device as you can prepare the NetModule Router |
===== Prerequierments ===== | ===== Prerequierments ===== | ||
Line 17: | Line 17: | ||
The Modem Emulator will only replace the AT Command Set on the serial side. The Communication between the NB1600 and another Endpoint will be done as a transparent tcp Connection. | The Modem Emulator will only replace the AT Command Set on the serial side. The Communication between the NB1600 and another Endpoint will be done as a transparent tcp Connection. | ||
- | This way you can provide the old legacy | + | This way you can provide the old legacy |
- | ===== Adressing | + | ===== Addressing |
An important Part on the Dial-In/ | An important Part on the Dial-In/ | ||
- | The old addressing concept were based on phone numbers. With the Modem Emulator the Adresses | + | The old addressing concept were based on phone numbers. With the Modem Emulator the Addresses |
- | But for backward | + | But for backward |
===== Configuration ===== | ===== Configuration ===== | ||
Line 30: | Line 30: | ||
The Serial Interface need to be configured in the mode "modem emulator" | The Serial Interface need to be configured in the mode "modem emulator" | ||
After you applied the mode "modem emulator" | After you applied the mode "modem emulator" | ||
+ | |||
+ | {{ : | ||
+ | |||
+ | {{ : | ||
+ | |||
+ | {{ : | ||
+ | |||
+ | |||
Please set the Baud Rate accordingly to you attached device. Also set the " | Please set the Baud Rate accordingly to you attached device. Also set the " | ||
- | Any incoming connection will be received on the Port configured. This Port need also to be accessible on the IP Adress | + | Any incoming connection will be received on the TelnetPort |
- | The Phonebook section of the configuration will keep the aliases of any Phonenumbers so that you don't need to reconfigure you device and can use the old adressing | + | The Phonebook section of the configuration will keep the aliases of any Phonenumbers so that you don't need to reconfigure you device and can use the old addressing |
The new dial command would be: | The new dial command would be: | ||
Line 55: | Line 63: | ||
* Configure a OpenVPN Network to reach every Router in the Field. You can use a Netmodule Wireless Router as a OpenVPN Server | * Configure a OpenVPN Network to reach every Router in the Field. You can use a Netmodule Wireless Router as a OpenVPN Server | ||
- | * Enable the | + | * Enable the Modem Emulator Feature as described above in the configuration section |
+ | * Connect your Device to the Serial Interface | ||
+ | |||
+ | If you are working via the OpenVPN Server you will have following Addressing: | ||
+ | |||
+ | * OpenVPN Server: **10.8.0.1** | ||
+ | * Example OpenVPN Client: **10.8.0.6** | ||
+ | |||
+ | {{ : | ||
+ | |||
+ | Based on this Addressing you can call the the device in the field as follows: | ||
+ | |||
+ | ==== Full Legacy Mode ==== | ||
+ | |||
+ | Also enable Modem emulator on the OpenVPN Server and call the Client in the Field from the server serial interface with either the IP Adress and Portnumber or the Phonenumber configured in the Phonebook. | ||
+ | The Devices in the Field can also call the central Server Interface via the same procedure | ||
+ | |||
+ | |||
+ | ==== Field Legacy Mode ==== | ||
+ | |||
+ | In Case you want to have the connection from a central point to the devices in the fields there is no need to integrate the model emulator on the server side. | ||
+ | |||
+ | If you can skip the AT Commands on the Server side you can just initiate a tcp connection to the tcp Port of the field devices. It initiate the same procedure as an incoming call and will have the same output on the serial interface as in the full legacy Mode. | ||
+ | |||
+ | |||
+ | ===== Testing ===== | ||
+ | |||
+ | For easy testing you can use following procedure. | ||
+ | |||
+ | Use two Netmodule Router as described above. | ||
+ | |||
+ | Check if the Modem Emulator is running with the command " | ||
+ | < | ||
+ | AT | ||
+ | OK | ||
+ | </ | ||
+ | |||
+ | No we will call from the Server to the Client: | ||
+ | |||
+ | < | ||
+ | ATDT10.8.0.1: | ||
+ | </ | ||
+ | |||
+ | The Client will report an incoming connection with RING: | ||
+ | |||
+ | < | ||
+ | RING | ||
+ | |||
+ | RING | ||
+ | |||
+ | RING | ||
+ | </ | ||
+ | |||
+ | |||
+ | until the incoming Connection will be acceptet with an ATA and confirmed with a CONNECT 115200 | ||
+ | |||
+ | |||
+ | < | ||
+ | ATA | ||
+ | CONNECT 115200 | ||
+ | |||
+ | </ | ||
+ | |||
+ | No you have a working connection and can transfer your data. | ||
+ | |||
+ | |||
+ | The Connection can then be terminated with the common sequence: | ||
+ | |||
+ | Escape Sequence " | ||
+ | |||
+ | < | ||
+ | +++ | ||
+ | ATH | ||
+ | NO CARRIER | ||
+ | |||
+ | </ | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||