Sonata Sprint Encoder User Guide FCC ID: 2A7AASONSPR1MM IC: 28664SON1SPRMM Revision: 1.
This document contains confidential information, which is proprietary to ARAD Ltd. No part of its contents may be used, copied, disclosed or conveyed to any party in any manner whatsoever without prior written permission from ARAD Ltd. Approvals: Written by: Name Position Evgeni Kosakovski Firmware Engineer Approved by: R&D Manager Approved by: Product Manager Approved by: 2 Arad Technologies Ltd. | st. HaMada, Yokneam Elite , 2069206, Israel | www.arad.co.
Federal Communication Commission (FCC) Compliance Notice CAUTION This device complies with part 15 of the FCC Rules. The User should be aware that changes and modifications to the equipment not expressly approved by Master Meter could void warranty and the user's authority to operate the equipment. Professionally trained personnel should use the equipment. ATTENTION This equipment has been tested and found to comply with the limits for a Class B digital device, pursuant to Part 15 of the FCC Rules.
Industry Canada (IC) Compliance Notice This device complies with FCC Rules Part 15 and with Industry Canada licenseexempt RSS standard(s). Operation is subject to the following two conditions: (1) this device may not cause interference, and (2) this device must accept any interference, including interference that may cause undesired operation of the device. Le présent appareil est conforme aux CNR d'Industrie Canada applicables aux appareils radio exempts de licence.
Contents 1 Introduction ............................................................................................................................... 6 2 System Overview....................................................................................................................... 6 3 Encoder SW architecture ........................................................................................................... 7 4 Encoder module configuration ....................................................
1 Introduction Encoder software requirements specification is a description of a software system to be developed in Encoder module. It lays out functional and non-functional requirements and may include a set of use cases that describe system and user interactions that the software must provide. Current requirements specification establishes the basis for operation between Arad water measurements from one side and encoder readers 2 or 3 wires from other.
3 Encoder SW architecture 3.1 Encoder module is very simple configurable system that: 3.1.1 Provides a high-resolution pulse output signal. 3.1.2 Can translate received data from Sonata to electrical pulse for each unit of measurement according to Encoder module configuration. The electrical pulse is transmitted over a two-conductor or three-conductor cable to the remote readout systems. 3.1.3 Supports communication interface with different pulse Readers. 3.1.
3.4.1 Open fault Rx message detection timer. When byte is received on SPI the system checks if it is a header byte, opens a timer for next byte receive timeout and initiates the timer. This method prevents the system from waiting for bytes for a long time. If no byte is received for a long time (over 200ms) the SPI error byte is updated and the message is not removed. 3.4.2 Save received Rx byte Each byte is saved into Rx buffer. 3.4.
Encoder module configuration 4 There are possible to configure Encoder module for operation from GUI. 4.1 4.2 Configuration set shall be stored into Sonata meter by press on button. Sonata shall configure communication to Encoder module by RTC Alarm configuration according to GUI parameters: 4.2.1 In case of user select Sonata RTC Alarm shall be configured for time is defined in “Minutes” field. Communication to Encoder module shall be performed every “Minutes” field time. 4.2.
4.6 Update Mode – Sonata period time for send data to Encoder module: 4.6.1 Period – every predefined time (in Minutes” field, see 4.2.1) Sonata shall send data to Encoder module. (1…59 minutes. Default 5 minutes) 4.6.2 Once – fixed time when Sonata shall send data to Encoder module once a day (see 4.2.2). Field “First” shall contain time in format: hours and minutes. 4.6.3 Twice - fixed time when Sonata shall send data to Encoder module twice a day (see 4.2.2).
Communication definition 5 2W/3W interface SPI Sonata Encoder 2W/3W Reader Sonata - Encoder Interfaces 23/11/2017 Ver. 1.00 5.1 Evgeni K. Sonata↔ Encoder Communication 5.1.1 Sonata water meter communicate with Encoder module through SPI protocol: 500kHz, No Data control). Using other settings will produce unpredictable results, and can easily render the connected Sonata water meter unresponsive. 5.1.
Sym Description Min Max Default Units TPOR Power ON to meter ready (Note 1) 500 500 msec TPL Power/Clock low time 500 1500 µsec Power/Clock low time jitter (Note 2) ±25 % TPH Power/Clock high time 1500 Note 3 µsec TPSL Delay, Clock to Data Out 250 µsec Power/Clock Carrier Frequency 20 30 kHz Ask Data Out Frequency 40 60 kHz TRC Reset command. Time for 200 msec Power/Clock low to force register reset TRR Meter Re-Read Time (Note 1) 200 msec Notes: 1.
5.3.6 The GPIO is configured for minimal power consumption during power down mode. 5.3.7 Entering power down mode is executed from main loop after the timeout timer, timer 2 has elapsed. 5.
5.6 Encoder Message formatting 5.6.1 Fixed Length Format RnnnniiiiiiiiCR R[Encoder Data][ Meter ID 8 LSB(Configuration)]CR The fixed length format is of the form: Where: "R" is the leading character. "nnnn" is a four character meter reading. "iiiiiiii" is an eight character identification number. "CR" is the carriage return character (ASCII value 0Dh) Valid characters for "n" are "0-9" and "?" Valid characters for "i" are: 0-9, A-Z, a-z, ? In case of fix format the module will: 1.
Resolution =x0.01 Decimal point location = 2 N Totalizer 0 0 Sensus 0 0 u Encoder Data-volume N Number of digit = 7 Resolution = x0.01 Decimal point location = 0 Totalizer 0 1 Sensus 0 0 Encoder Data-volume Number of digit = 7 Resolution =x10 Decimal point location = 0 1 0 1234 2 1 . 2 3 3 4 4 5 6 2 0 12 3 0 . 0 4 1 5 2 6 7 7 8 5.7 Field definition 5.7.1 The message format is identified according to the first message byte. 1. 0x55 indicated a new format message. 2.
The fields: f (mantissa), a (alarm) ,u (units) are optional. Valid characters: "0-9", "A-Z", "a-z", "?" is valid as an error indicator. 5.8 Parse message according to old format 5.8.1 In old format the message contains meter ID and Volume date. 5.8.2 The message is parsed according to the ICD. 5.9 Write to EEPROM received parameters 5.9.1 When module ID, data message or Configuration message is received, the parameters of the message are written into the EEPROM. 5.9.
5.11 Open quite detection timer 5.11.1 When reader clock is received, a Quite Detection timer is opened. 5.11.2 When there are no clock events for 200ms, the system goes to power down mode. 5.12 Detect reader type 5.12.1 First 3 clock events are used for clock detection type. 5.12.2 The detection is done by the measuring the frequency of the Reader’s clock. 5.12.3 The clock frequency for 2w reader is: 20 kHz - 30 kHz. 5.12.4 The clock frequency for 3w reader is less than 2 kHz. 5.
Encoder reply to meter: Header Addr Get Encoder 55 X Access Get Status 55 X All Commands 55 X Type 9 Len 2 10 1 X 0 Data Bitwise 0 OK 1 WatchDog occurred 2 UART Error 4 Exceed read number 8 Encoder Interface errors Module ID 18 Arad Technologies Ltd. | st. HaMada, Yokneam Elite , 2069206, Israel End Module ID Module ID | www.arad.co.
6 Glossary Term Description CSCI EEPROM GUI ISR SRS WD Computer Software Configuration Interface Electronically Erasable PROM Graphical User Interface Interrupt Service Routine Software Requirements Specification Watch-Dog 7 Appendix 7.1 Measurement Units Character m³ ft³ US Gal l Units Cubic Meters Cubic Feet US Gallons Litres 19 Arad Technologies Ltd. | st. HaMada, Yokneam Elite , 2069206, Israel | www.arad.co.
8 External Documents Name and Location 2W-SENSUS 3W-SENSUS 9 Revision History: Revision 1.00 Section affected All Date Changed by 04/12/2017 Change Description Evgeni Kosakovski Document creation ~ End of Document ~ 20 Arad Technologies Ltd. | st. HaMada, Yokneam Elite , 2069206, Israel | www.arad.co.