User Tools

Site Tools


public:products:cv-100m

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
public:products:cv-100m [2020/05/15 15:26]
Acrios Admin
public:products:cv-100m [2020/05/24 15:18] (current)
Acrios Admin
Line 14: Line 14:
   * MacOS 10.15: [[https://​acrios.com/​downloads/​SW/​IoT_Converter_GUI_2019-12_macos_ec77ff4.zip]]   * MacOS 10.15: [[https://​acrios.com/​downloads/​SW/​IoT_Converter_GUI_2019-12_macos_ec77ff4.zip]]
   * **User guide: [[https://​wiki.acrios.com/​doku.php?​id=public:​products:​mbus-nbiot-sw]]**   * **User guide: [[https://​wiki.acrios.com/​doku.php?​id=public:​products:​mbus-nbiot-sw]]**
 +\\ 
 +==== Configuration cable==== 
 +==Optically isolated converter== 
 +  * Good for externally power supplied units. It can save you from overvoltaging your PC in case of faulty cable connection.\\ 
 +  * Can be supplied by iNELS Air\\ 
 +  * 3.5mm jack connector\\ 
 +\\
  
 ==== Before installation ==== ==== Before installation ====
Line 39: Line 45:
 |Maximum power consumption:​| 4 W| |Maximum power consumption:​| 4 W|
  
-^  ​Pulse input  ^^ +^  ​M-Bus interface EN 137 57-3  ^^ 
-|Number of inputs:| 2 or 4 depending on specification+ ​Device type  ​Master  ​
-|Impulse counter:32 bits (up to 2<​sup>​32</​sup>​ = 4 294 967 296 pulses)+ ​Communication speed  ​ 300 - 9600 Bd  ​
-|Minimum pulse duration:30 ms|+ ​Maximum connected devices  ​ 5UL (Unit Loads. 1UL = 1.5mA)  ​|
  
  
Line 64: Line 70:
 \\ \\
 \\ \\
 +====M-Bus configuratin SW settings====
 +=== General setting ===
 +
 +Settings of communication protocol with MBUS device and converter:
 +
 +{{ :​public:​converter_sw_5.png?​400 |}}
 +
 +== List of MBUS requests ​ ==
 +
 +List of MBUs request to be made from converter to a MBUS device:
 +
 +{{ :​public:​converter_sw_6.png?​400 |}}
 +
 +Request can be typed in by hand („Add new line“) or by dialog wizard („Add request“):​
 +
 +{{ :​public:​converter_sw_7.png?​400 |}}
 +
 +Dialog automatically calculates checksum and fills in start and stop bytes.
 +
 +== List of responses ​ ==
 +
 +User can set different offsets and length which are taken from responses to selected requests.
 +
 +E.g.: for first request (1011223316) take data of length 4 bytes with offset 0.
 +
 +{{ :​public:​converter_sw_8.png?​400 |}}
 +
 +==== M-Bus LUA settings ====
 +
 +//status//, //c//, //a//, //ci//, //answer// = api.**mbusTransaction**( //msg//, **timeout**,​ **retry=1**) This function transmits //msg// and waits //timeout// milliseconds for the answer. The transmission is retried //retry// times. The //status// contains information about communication status and //c//, //a//, //ci// and //answer// contains MBus answer data. Turn on MBus using **mbusState** first. >
 +
 +**Arguments**
 +
 +  * //msg// (string) - Message to send to MBus
 +  * //timeout// (integer, optional) - The maximum time in milliseconds to wait for MBus device answer
 +  * //retry// (integer, optional) - Optional number of retransmissions,​ defaults to 1 >
 +
 +**Returns**
 +
 +  * //status// (integer) - Number of bytes received, zero on failure
 +  * //c// (integer) - MBus c frame field
 +  * //a// (integer) - MBus a frame field
 +  * //ci// (integer) - MBus ci frame field
 +  * //answer// (string) - MBus frame payload received from the bus 
 +
 +**Example**
 +
 +<code lua>
 +--sends MBus frame [0x10, 0x50, 0x30, 0x16], waits 5s for answer twice 
 +msg = pack.pack('<​b4',​ 0x10, 0x50, 0x30, 0x16) 
 +status,​c,​a,​ci,​ans = api.mbusTransaction(msg,​ 5000, 2)
 +</​code>​
 +
 +---
 +
 +api.**mbusSetup**( **baudrate**,​ **parity**, **stopBits**,​ **dataBits**) This function configures the MBus communication interface. By default, the configuration from GUI is used, but this can be overriden using this API. Turn on MBus using **mbusState** after setting up MBus parameters using this function. >
 +
 +**Arguments**
 +
 +  * //​baudrate//​ (integer, optional) - Baudrate to use for communication (up to 921600 baud)
 +  * //parity// (integer, optional) - Parity, 0 for none, 1 for odd and 2 for even parity
 +  * //​stopBits//​ (integer, optional) - Number of stop bits, 1 or 2 allowed
 +  * //​dataBits//​ (integer, optional) - Number of data bits, 7 or 8 allowed ​
 +
 +**Example**
 +
 +<code lua>
 +--setup MBus interface to 9600 Baud, 8E2 
 +api.mbusSetup(9600,​ 2, 2, 8)
 +</​code>​
 +
 +---
 +
 +api.**mbusState**( //state//)
 +
 +This function turns on the MBus circuitry, must be used before **mbusTransaction**. ​
 +
 +**Arguments**
 +
 +  * //state// (integer) - New state of MBus circuitry: 0 for off, 1 for on (apprx 30s power-up)
 +
 +**Example**
 +
 +<code lua>
 +api.mbusState(1) --turn on MBus
 +</​code>​
 +
public/products/cv-100m.1589549196.txt.gz · Last modified: 2020/05/15 15:26 by Acrios Admin