Table of Contents 1 Summary ..........................5 2 Communication with the Customer Application ..............5 2.1 Transparent buffered Data Transfer .................. 5 2.1.1 Wireless Transmission of Data ................... 5 2.1.2 Wireless Reception of Data ..................6 2.2 Command Mode ....................... 7 2.2.1 Command overview ....................
1 Summary The wireless M-bus (wM-Bus) radio module AMB8426-M / AMB8626-M was designed as a subcomponent group for the wireless reading of meters. It complies with the requirements of EN13757-4:2011 (wireless M-bus; see [1]) and can be used where ever radio communication is required.
Optionally the AMB8426-M can adopt the content of the first block (C-field, M-field, A-field) from the non-volatile memory and insert it into the radio telegram, otherwise the format according to Figure 2 is to be used (factory default; also see parameter MBUS_Bl_ADD_Disable)
2.2 Command Mode In this operating mode, the communication with the module is achieved by using predefined commands. For example, these commands can be used to set and read operating parameters and to execute special functions (see chapter 7). Also transmission and receiving of wM-Bus data is possible in this mode. In this case, contrary to the transparent mode (each telegram starts with a length byte), the telegram has to be preceded by a start byte 0xFF.
For the configuration of the data rate via the registers UART_BR0, UART_BR1 and UART_MCTL the PC-program „ACC“ should be used. This, besides the standard baud rates, also provides a dialog for the calculation of arbitrary baud rates. The default baud rate of the module is 9600 baud. The output of characters on the serial interface takes place with secondary priority.
7.1.2 CMD_DATARETRY_REQ This command relaunches the transmission of the previously submitted data to the module. The data thus does not need to be re-sent via the serial interface. The buffered data is lost as soon as new data is sent via UART or data is being received via wireless transmission.
7.3 CMD_RESET_REQ This command triggers a software reset of the module. The reset is performed after the acknowledge has been issued. Format: 0xFF 0x05 0x00 0xFA Return: 0xFF 0x85 0x01 < status > < CS > Status: 0x00: success 7.4 CMD_SET_CHANNEL_REQ This command is used to toggle the wireless channel in the non-volatile memory.
Format: 0xFF 0x09 < nr. of bytes + 2 > < address > < nr. of bytes > < parameter > < CS > Return: 0xFF 0x89 0x01 < status > < CS > Status: 0x00: success 0x01: verification failed 0x02: invalid memory position or invalid number of bytes to be written (write access to unauthorised location) Example 1:...
The most significant byte is returned first (MSB first); this byte identifies the product ("product ID"). 7.8 CMD_FWV_REQ This command serves to requests the firmware version. Herewith the major, minor und patch – position of the FW-Version is returned. Format: 0xFF 0x0C 0x00 0xF3 Return: 0xFF 0x8C 0x03 <...
Figure 10 Relation between the RX level and the RSSI value read from the AMB8426 (from [2]) 7.10 CMD_SETUARTSPEED_REQ This command changes the parameters of the serial user interface (UART_CTL0, UART_CTL1, UART_BR0, UART_BR1, UART_MCTL to preset values for fixed transfer rates. The index of the transfer rate is listed in Table 3.
7.12.2 CMD_DATA_CLR_PRELOAD_REQ With this command the preloaded telegram can be rejected. Format: 0xFF 0x31 0x00 0xCE Return: 0xFF 0xB1 0x01 < Status > < CS > Status: 0x00: success 0x01: no telegram had been preloaded 7.13 Encryption and decryption OK For this functionality also see chapter 10.
8 User Parameters The non-volatile parameters listed in the following table can be modified by CMD_SET_REQ, read by CMD_GET_REQ as well as also modified by the Windows software "ACC". These parameters are permanently stored in the flash memory of the module. Parameter Description Adr.
Page 20
Parameter Description Adr. Permissible Default values module remains in the RX mode after transmitting data MBUS_FrameFormat Frame Format 0x2C see Table 10 0x00 Reserved 0x2D 0xFF Reserved 0x2E 0xFF Reserved 0x2F 0xFF … MBUS_Bl_ADD_Disable Disabling adding of 0x30 See Table 11 0x01 block 1 0x00 –...
8.1 UART_CTL0 With the help of this register, the format of the serial interface can be adjusted. Bit no. Description 0, 1 and 2 (0x07) Reserved, bits must be set to 0x00. 3 (0x08) This bit selects the number of stop bits. If this bit is set, 2 stop bits will be used, otherwise 1 stop bit will be used.
8.9 APP_AES_Enable This parameter enables or disables the encryption. Value Description 0x00 Encryption disabled 0x01 Encryption enabled Table 6: Parameter APP_AES_ENABLE For the encryption to work, a suitable AES-key with its relating address has to be assigned. Also see the respective commands CMD_SET_AES_KEY_REQ, CMD_CLR_AES_KEY_REQ and CMD_GET_AES_DEV_REQ as well as chapter 10.
8.15 MBUS_Coding The coding can be set by means of this parameter. Value Coding [hex] 0x00 3-out-of-6 coding 0x01 Manchester coding 0x02 Table 7: Parameters MBUS_Coding 8.16 MBUS_PreambleLengthH This parameter is only used in „user specific mode“ Mode_Preselect as well as in mode S2.
8.19 MBUS_RXTimeout By means of this parameter, it is possible to configure the time in ms for which the module is to remain in the RX mode after transmitting data before it enters the sleep mode. This parameter is effective in all operating modes. If the parameter contains the value 0x00h, no timeout is activated.
Value Description 0x00 The address is evaluated and block 1 is added in the module. 0x01 no evaluation and no addition of block 1 in the module. Table 11 Parameter MBUS_Bl_ADD_Disable The default value for this parameter is 0x01. 8.22 MBUS_Bl_Control This byte contains the value of the C-field in the first block of the data to be sent and is only considered during activated evaluation of block 1 (MBUS_Bl_ADD_Disable).
8.33 RF_DataRate This parameter is only used in „user specific mode“ Mode_Preselect. The various chip rates can be selected by means of this parameter. Value Chip rate Operating mode [kcps] 0x00 0x01 32.768 S1, S1-m, S2, T2-Meter RX, T2- other TX 0x02 100.0 T1-Meter TX, T2-Meter TX, T2-...
Sleep Sleep Sleep Sleep Wakeup time Wakeup time Wakeup time Wakeup time time time time The above graph demonstrates the periodic switching between RX and sleep if the module does not receive any preamble during the RX period. If the module receives a preamble and a data set, the wake-up time will continue periodically.
Page 29
Operating Value Header Synchroni Channel Chip Frame- Auto- mode length sation rate Format sleep [(01) character toggle] [Index] Reserved 0x04 T1 meter 0x05 T1 other 0x06 T2 meter 0x07 T2 other 0x08 C2/T2 other 0x09 1, 2, 3 0, 2 A, B R2 meter 0x0A...
0x07: If the meter also has to be able to receive data (drive-by reading and wireless configuration of the meter), the module should run in the operating mode T2. 0x08: In the receiving device, which can also configure the meter, the module would have to run in the operating mode “T2 other”...
Page 31
Bit Nr. Description If set, this bit activates the function of the pin RTS. This pin 0 (0x0001) indicates whether the internal buffer is currently occupied (assigned = high). 1 (0x0002) If set, this bit activates the function of the pin /CTS. This pin will be queried by the UART prior to each byte which is to be transmitted (low = data will be send).
Figure 13 RSSI Command Request (UART_DIDelay = 0x0000) Upon a command the /RTS pin indicates the duration for which the buffer is occupied. /DATA_IND shows that the UART has Data ready for transmission. Figure 14 Command RSSI Request (UART_DIDelay = 0x0010) 9 Preloading of Telegrams Since battery-operated, bi-directional devices normally, for reasons of energy efficiency, only open a very short RX window after having transmitted a telegram it is possible to preload a reply...
Page 33
Figure 15 Bidirectional communication functionality „Preload“ AMB8426-M_8626-M_MA_EN_V2_4 Page 33 of 48 Released: Nov.2013...
SND_UD: 1. Telegram to be sent to the meter REQ_UD2: 2. Telegram to be sent to the meter SND_NKE: 3. Telegram to be sent to the meter SND_NR: Telegram from meter ACK: Reply to SND_UD RSP_UD: Reply to REQ_UD2 CNF: Reply relating to the sending of the preloaded telegram 10 Encryption with AES-128 To activate the encryption the parameter APP_AES_Enable has to be configured...
For the telegram to be encrypted, the encryption-mode and the number of encrypted blocks must be specified in the configuration word. Thereby the telegram to be transmitted to the module changes as follows: 0x1E 0x44 0xA2 0x05 0x78 0x56 0x34 0x12 0x00 0x03 0x7A 0x35 0x00 0x10 0x05 0x2F 0x2F 0x00 0x7C 0x08 0x54 0x53 0x45 0x54 0x20 0x43 0x4E 0x45 0x2F 0x2F 0x2F...
Pin out Selected operating mode MOD_SEL3 MOD_SEL2 MOD_SEL1 MOD_SEL0 User specific configuration S1-m Reserved T1 meter T1 other T2 meter T2 other C2, T2 Reserved R2 meter R2 other C1 Meter C2 Meter C2 other Reserved Table 20: Operating mode selected via MOD_SELx pins Caution: In the event of periodic toggling, the duration of an operating mode should be at least 2.5 ms, as otherwise the detection of a preamble cannot be guaranteed! 12 Taking into operation...
12.3 Using the Low-Power Functionality In this case, we recommend using the parameter RF_AutoSleep. If this parameter is set to sleep (0x02h), the module will be in the sleep mode except during transmission. During this time, it is not possible to receive data. If the reception/listening is controlled by the host, the module can be set to the RX mode by reconfiguring this parameter to RX (0x00h).
13.1 Footprint Figure 16 Footprint AMB8426-M (top view), dimensions in mm To avoid the risk of short circuits between VCC and GND, a minimum clearance of at least 14 mm between the opposing pad rows has to be maintained!
13.2 Tips for Schematic and Layout The following recommendations should be considered when designing a host PCB for the AMB8426-M / AMB8626-M: The top layer of your PCB should be kept free from tracks and vias underneath the RF module due to the fact that the bottom side of the module is only covered with solder resist and the vias are not covered at all.
Page 40
An optional PI-filter (Capacitor C1 to mass, Inductor L1 in series, and capacitor C2 to mass) should be provided to allow for the possibility to tune or filter the antenna. When no filtering/ matching is necessary the filter can be bridged with a 68 pF capacitor. Figure 18 Matching circuit of a λ/4 antenna A simple but effective antenna solution is an 8,6 cm long piece of wire, a Lambda/4 antenna.
Figure 20 GSC-SMA-Adapter With the AMB1981 dipole-antenna and the AMB1982 monopole-antenna with magnet foot and 1.5m antenna cable AMBER offers ideal solutions for the 868 MHz frequency range (SMA m). Figure 21 AMB1981: 868 MHz Dipole-Antenna Figure 22 AMB1982: 868 MHz magnet foot antenna with 1.5 m antenna cable Monopole antennas such as the AMB1982 need a ground plane at the feeding point with a minimum radius of about Lambda/ 4.
Page 42
Figure 23 shows an example of a solder curve for an approx. 31cm large one sided PCB. Figure 23: Example of a temperature curve. Attention, must be adapted according to the properties of the main PCB! Only vacuum packed modules may be used for reflow soldering without prior drying. AMBER wireless offers respective modules in tape &...
Attention! These modules contain moisture sensitive components. Care for further processing should be taken according to IPC/JEDEC J-STD-033. MSL 3 Because there is no safety implemented in this module the used power source must comply with clause 2.5 in EN 60950-1. 14 Factory-reset After a Factory Reset the speed of the serial interface is set back to 9600 8n1! Ensure to have a suitable and stable power source.
R&TTE directive 1999/5/EC of the European Union (EU). The AMB8426-M can be operated without notification and free of charge in the area of the European Union. However, according to the R&TTE directive, restrictions (e.g. in terms of duty cycle or maximum allowed RF power) may apply.
AMBER wireless GmbH customers using or selling these products for use in such applications do so at their own risk and agree to fully indemnify AMBER wireless GmbH for any damages resulting from any improper use or sale.
Need help?
Do you have a question about the AMB8426-M and is the answer not in the manual?
Questions and answers