Porovnávané verzie

Kľúč

  • Tento riadok sa pridal
  • Riadok je odstránený.
  • Formátovanie sa zmenilo.

Image AddedImage Removed
Obrázok 1 Rôzne príklady fyzického pripojenia k elektromerom

Testované elektromery mali k dispozícii tieto typy komunikačných rozhraní:

The tested electricity meters had the following types of communication interfaces available:

  • Optical - an optical head is attached, which holds with a magnet. On a computer, the interface appears as a serial port. In the picture, the meter C is thus connected, and the optical head is connected to the computer via USB and represented as COM13.
  • RS485 serial interface - output on the terminal board of the meter and/or on the plug-in communication module - depending on the type of device. There are several ways to connect to the meter's serial interface.
    • USB/RS485 converter (e.g. Papouch SB485) (meters D, E) - the device driver created a COM14 serial port on the computer.
    • MOXA (pictured is MOXA onCell with GPRS module) (meters F, G) - MOXA serves as a translator between UDP/IP and serial communication.
    • If one meter has a plug-in module with both IP and serial interface (meter B), it can pass communication between them and mediate communication with other meters connected via RS485 (meters
  • Optické – prikladá sa optická hlava, ktorá drží pomocou magnetu. V počítači sa rozhranie javí ako sériový port. Na obrázku je tak pripojený merač C, optická hlava je k počítaču pripojená cez USB a reprezentovaná ako COM13.
  • Sériové rozhranie RS485 – vyvedené na svorkovnici merača a/alebo na zásuvnom komunikačnom module – v závislosti od typu zariadenia. Na sériové rozhranie merača sa dá pripojiť viacerými spôsobmi.
    • USB/RS485 prevodník (napríklad Papouch SB485) (merače D, E) – ovládač zariadenia vytvoril v počítači sériový port COM14.
    • MOXA (na obrázku je MOXA onCell s GPRS modulom) (merače F, G) – MOXA slúži ako prekladač medzi UDP/IP a sériovou komunikáciou.
    • Ak má jeden merač zásuvný modul s IP aj sériovým rozhraním (merač B), môže prepúšťať komunikáciu medzi nimi a sprostredkovať tak komunikáciu s ďalšími meračmi pripojenými cez RS485 (merače H, I).
  • IP rozhranie – vo forme Ethernet portu, alebo GPRS modemu. V tomto prípade sa „fyzickou" prenosovou vrstvou myslí TCP/IP spojenie alebo UDP/IP komunikácia.

Parametre pre sériovú komunikáciu

Konfigurácia sériovej komunikácie sa skladá z nasledujúcich parametrov.

  • interface – in the form of an Ethernet port or a GPRS modem. In this case, the "physical" transport layer means TCP/IP connection or UDP/IP communication.

Parameters for serial communication

The serial communication configuration consists of the following parameters.

  • Designation of the serial port (e.gOznačenie sériového portu (napr. COM13).
  • Prenosová rýchlosť. Je potrebné poznať nastavenie merača, ale testované zariadenia mali štandardne:
    • všetky na optickom rozhraní: 300 baudov,
    •  EMH na RS485: 4800 baudov,
    •  Landis+Gyr, Addax a Iskra MT-880 na RS485: 9600 baudov.
  • Počet Štart/Stop bitov: 1.
  • Transfer speed. It is necessary to know the setting of the meter, but the devices tested had by default:
    • all on the optical interface: 300 baud,
    • EMH on RS485: 4800 baud,
    • Landis+Gyr, Addax and Iskra MT-880 on RS485: 9600 baud.
  • Number of Start/Stop bits: 1.
  • Number of data bits and how parity is calculated
    • for
    Počet dátových bitov a spôsob počítania parity
    • pri HDLC + DLMS/COSEM: 8 bitov bez bits without parity
    • pri for IEC 65056-21: 7 bitov a párna (even) paritabits and even parity.

...

Parameters for IP

...

Podľa okolností môže mať merač priradenú statickú alebo dynamickú IP adresu. Režim dynamickej IP adresy podporuje ADDAX NP73 a využíva sa, ak chceme ušetriť na cene SIM kariet. Ak je potrebné pripojiť malý počet meračov cez GPRS – dostatočne malý na to, aby nebolo zaujímavé vytvoriť zvláštnu APN (brána medzi GPRS sieťou a inou počítačovou sieťou s privátnym IP priestorom), ale dostatočne veľký na to, aby sme chceli ušetriť za SIM karty s pridelenými pevnými verejnými IP adresami. Vo všetkých ostatných prípadoch je statická IP adresa merača výhodnejšia.

  • Statická IP adresa merača – využíva sa TCP/IP protokol, je preto potrebné konfigurovať IP adresu a TCP port, na ktorom merač počúva na prichádzajúce spojenie.
  • Dynamická IP adresa merača – využíva sa UDP/IP protokol a predpokladom je, že SGCom má verejnú statickú IP adresu. Do merača konfigurujeme IP adresu a UDP port, cez ktorý bude SGCom komunikovať. SGCom musí poznať jednoznačné identifikátory všetkých meračov, ktoré budú cez tento port komunikovať.

Komunikácia cez prekladač MOXA

MOXA OnCell alebo MOXA NPort slúži ako prekladač medzi IP komunikáciou a komunikáciou po sériovej linke. Existuje možnosť vytvoriť pomocou MOXA ovládačov v systéme virtuálny COM port a komunikovať cez neho. V praxi sa ale ukázalo, že táto konfigurácia je málo stabilná, má tendenciu zamrznúť. Z toho dôvodu sa používa komunikácia tzv. „udpMOXA" protokolom. Pre konfiguráciu sa používajú nasledujúce parametre:

communication

Depending on the circumstances, the meter may be assigned a static or dynamic IP address. The dynamic IP address mode is supported by ADDAX NP73 and is used if we want to save on the price of SIM cards. If it is necessary to connect a small number of meters via GPRS - small enough that it is not interesting to create a special APN (gateway between the GPRS network and another computer network with a private IP space), but large enough that we want to save on SIM cards with assigned fixed public IP addresses. In all other cases, a static IP address of the meter is preferable.

  • Static IP address of the meter - the TCP/IP protocol is used, therefore it is necessary to configure the IP address and TCP port on which the meter listens for incoming connections.
  • Dynamic meter IP address - UDP/IP protocol is used and SGCom is assumed to have a public static IP address. We configure the IP address and UDP port through which SGCom will communicate in the meter. SGCom must know the unique identifiers of all meters that will communicate through this port.

Communication through a serial server

A serial server (e.g. MOXA OnCell or MOXA NPort) serves as a translator between IP communication and communication over a serial line. It is possible to create a virtual COM port in the system using drivers from the manufacturer of the serial server and communicate through it. In practice, however, it turned out that this configuration is not very stable, it tends to freeze. For that reason, communication via the so-called "udpMOXA" protocol is used. The following parameters are used for configuration:

  • IP address of the serial server of the device,
  • The UDP port of the serial server, which is bound to the physical serial port,
  • The UDP port on the local computer to which the serial server sends UDP datagrams
  • IP adresa MOXA zariadenia,
  • UDP port na MOXA zariadení, ktorý je previazaný s fyzickým sériovým portom,
  • UDP port na lokálnom počítači, na ktorý MOXA odosiela UDP datagramy.