ECCU User’s manual 1

DI Jan Krchnak, David Karibe 

Pessl Instruments, GmbH

Version 1.13, 03-2023


TABLE OF CONTENTS


1. ABBREVIATIONS

    ECCU     - External Camera Control Unit 

    CU         - Camera Unit 

    TRAP     - UV LED Trap device


2. CONNECTION SCHEMA


3. SUPPORTED SENSORS

    - Battery                                 - Voltage value [mV]. 

    - Solar panel / Charger         - Voltage value [mV]. 

    - Hygroclip2 (HC2)                - Ambient temperature and humidity [°C, %] 

    - Rain gauge                          - Rainfall amount [mm] 

    - Leaf Wetness (PI bus)         - Leaf wetness time duration [minutes] 

    - Leaf Temperature (PI bus) - Leaf temperature [°C] 


4. RS-485 INTERFACES

    CAM-1 Camera Interface:     Supports an RS-485 CU device through the ECCU bus protocol. 


    CAM-2 Camera Interface:     Supports an RS-485 CU or TRAP device through the ECCU bus protocol. 


    PI-BUS Interface:                   Supports selected additional sensors through the custom Pessl 

                                                    Instruments sensors communication protocol. 


5. USER’S COMMUNICATION INTERFACE

 

Port settings 


  • Baud rate     115200 bps 
  • Data byte     8 bits 
  • Start bit        1 bit 
  • Stop bit         at least 1 bit 
  • Parity             None



Press the ‘H’ button to show the main menu items: 


Press on any of these buttons on the keyboard input to execute the user menu functions.



    

Press the ‘1’ button to print the current system info of ECCU.




    

Press the ‘2’ button to print the last stored data in a raw format from data memory. There are shown just the last records from the last occurred data transmission here.



                Ord.Nm.                     - The ordinal number of record in a row. 

                RECORD HEADER      - Record header in raw format. 

                RAW DATA                 - Sensor data of records in raw format.




Press the ‘3’ button to print all the raw data records in memory including data already sent to the server.





Press the ‘4’ button to print the sensors configuration set.


        Chan                  - The channel number of a configured sensor. 

        S. Code              - The unique sensor identifier code 

        Full Name          - The full name of the sensor 

        Short                  - The short name of the sensor 

        Unit                    - The units of measurement of the sensor data 

        Size                    - The number of bytes occupied by the sensor’s data 

        LST                     - Whether the sensor has last attribute 

        SUM                   - Whether the sensor has the sum attribute 

        AVG                    - Whether the sensor has the average attribute 

        MIN                    - Whether the sensor has the minimum attribute 

        MAX                   - Whether the sensor has the maximum attribute 

        TIM                     - Whether the sensor has the time attribute 

        USE                     - Whether the sensor has the custom user attribute 

        AXL                     - Whether the sensor has the auxiliary attribute

   


Sensor testing

Press the ‘5’ button to measure sensors.


  

        

Control Registers 

Press the ‘6’ button to show control registers and pointer to the data memory. 

               

     Memory and Record Control registers: 

    

        The number of all records             = 47 

        The number of prev. rec.               = 11 

        The number of last records           = 22 

        Pointer to initial record                 = 0 

        Pointer to prev. start rec.              = 14 

        Pointer to starting record             = 25 

        Pointer to next record                   = 47 

        Pointer of Memory Ctrl.                = 47 

        Force data saving                           = FALSE 

        Size of SD record                            = 28 

        Max. number of rec. ptrs               = 308859 

        Max. number of SD rec.                 = 308857 

        Number of SD values                     = 9 

        Number of 1k thresholds              = 0 

  

The number of all records - The total number of stored records in data memory. 

The number of prev. rec. - The number of records that were last transmitted. 

The number of last records - The total number of last records, which haven’t been transmitted. 

Pointer to initial record - The pointer to oldest record in data memory. 

Pointer to prev. start rec. - The pointer to start record of previously uploaded sensor data. 

Pointer to starting record - The pointer to first record of the group of records not transmitted. 

Pointer to next record - The pointer to next data memory space for next record storing. 

Pointer of Memory Ctrl. - The pointer to address of memory control records 

Force data saving - If TRUE, the last stored data has to be resent (Reason: transmission failed) 

Size of current record - Memory size of current record in Bytes. 

Max. number of rec. ptrs - The max. possible number of records in whole data memory. 

Max. number of SD rec. - The maximum possible number of sensor data records to store. 

Number of SD values - The number of sensor data values in each record to be stored. 

Number of 1k thresholds - The number of times records exceeded the 1000 records threshold. 

 

  

6. PROGRAM FLOW 

Production program flow 

    1    Detect plugged in CU or TRAP devices. NB: CAM-1 must be detected to continue. 

    2    If CAM-1 CU device is detected: 

        ➢ Make new sensor’s configuration, Make first measurements and two data logs. 

        ➢ Command: Getting the serial number. 

        ➢ Command: Getting the identifier number. 

        ➢ Command: Set the time. 

        ➢ Command: Set the sensor data into CU. 

        ➢ Command: Send the sensor data in XML file to server 

        ➢ Command: New settings (including RTC time) getting 

        ➢ Command: Take Preview and Send image to the server 

        ➢ Wait until photo upload is either complete or failed with response from CU 

        ➢ Command: Request for power down of CU 

        ➢ If no device on CAM-2, halt and wait for cold boot (power cycle) 

    3    If CAM-2 CU device is detected: 

            Send a dummy XML file, for the sake of uploading topology information to server about what 

            CU device is plugged in. 

        ➢ Command: Getting the serial number. 

        ➢ Command: Getting the identifier number. 

        ➢ Command: Set the time. 

        ➢ Command: If device is CU and not TRAP, Set the dummy XML file into CU 

        ➢ Command: Send the dummy data in XML file to server 

        ➢ Command: New settings (including RTC time) getting 

        ➢ Command: If device is CU and not TRAP, Take Preview image and Send image to server 

        ➢ Wait until image upload is either complete or failed with response from CU 

        ➢ Command: Request for power down of CU or TRAP 

        ➢ Halt and wait for a system cold boot (power cycle)


 

Program flow after restart (Single camera station) 

    1     Detect plugged in CU or TRAP devices. 2 Commands flow sending into CU: 

        ➢ Command: Getting the serial number. 

        ➢ Command: Getting the CU identifier number. 

        ➢ Command: Set the time. 

        ➢ Command: Set the sensor data (last stored and not yet transmitted, or no data) in XML
            code and transmitting into CU. 

        ➢ Command: Sensor data in XML file sending to server. 

        ➢ Command: New settings (including RTC time) getting. 

        ➢ Command: Request for power down of CU. 

    3    If RTC setting has been received successfully, go to the next step 4. 

            If RTC setting hasn’t been received successfully or any RTC received, next list of commands has 

            to be sent into CU repeatedly (step 2) until the correct RTC setting will be received: 

        ➢ Command: Set the sensor data in XML code structure and transmitting into CU. 

        ➢ Command: Sensor data in XML file sending. 

        ➢ Command: New settings (including RTC time) getting. 

        ➢ Command: Request for power down of CU. 

    4    New sensors configuration set. 

    5    First sensor measurement. 

    6    Normal mode running of ECCU. 



Program flow after restart (Two camera station) 

    1    Detect plugged in CU or TRAP devices. 2 Commands flow sending into CAM-2 CU if not TRAP: 

        ➢ Command: Getting the serial number. 

        ➢ Command: Getting the CU identifier number. 

        ➢ Command: Set the time. 

        ➢ Command: Set the sensor data (dummy XML for topology) and transmitting into CU. 

        ➢ Command: Sensor data in XML file sending to server. 

        ➢ Command: New settings (including RTC time) getting. 

        ➢ Command: Request for power down of CU. 

    3    If RTC setting has been received successfully, go to the next step 4. 

            If RTC setting hasn’t been received successfully or any RTC received, next list of commands has 

            to be sent into CU repeatedly (step 2) until the correct RTC setting will be received: 

        ➢ Command: Set the sensor data (dummy XML) and transmitting into CU. 

        ➢ Command: Sensor data in XML file sending. 

        ➢ Command: New settings (including RTC time) getting. 

        ➢ Command: Request for power down of CU. 

    4    Commands flow sending into CAM-1 CU: 

        ➢ Command: Getting the serial number. 

        ➢ Command: Getting the CU identifier number. 

        ➢ Command: Set the time. 

        ➢ Command: Set the sensor data (last stored and not yet transmitted, or no data) in XML 

            code and transmitting into CU. 

        ➢ Command: Sensor data in XML file sending to server. 

        ➢ Command: New settings (including RTC time) getting. 

        ➢ Command: Request for power down of CU. 

    5    If RTC setting has been received successfully, go to the next step 6. 

            If RTC setting hasn’t been received successfully or any RTC received, next list of commands has

            to be sent into CU repeatedly (step 4) until the correct RTC setting will be received: 

    6    New sensors configuration set. 

    7    First sensor measurement. 

    8    Normal mode running of ECCU.


Commands flow in normal mode 

            • Command: Getting the serial number. 

            • Command: Getting the CU identifier number. 

            • Command: Set the last stored sensor data in XML code and transmitting into CU. 

            • Command: Sensor data in CU sending to the server. 

            • Command: New settings (including RTC time) getting. 

            • Command: Photo in higher quality taking, if photo schedule is activated that hour. 

            • Command: Photo sending, if photo schedule was activated that hour. 

            • Command: Request for power down of CU. 


Commands flow in detecting CU/TRAP devices 

  

            • Command: Test Port. Retry once if no response, then jump to power down. 

            • Command: Getting the serial number, if device responded. 

            • Command: Getting the device identifier number, if device responded. 

            • Command: Request for power down of CU/TRAP device. 


  

7. LED STATUS 

   

    - BUSY LED is on                                         - During the sensor measure and data logging. 


    - TX LED is on with irregular blinking     - The communication with CU or TRAP is OK. LED is 

                                                                            irregularly blinking if there is a command or response 

                                                                            being transmitted. 


    - USB LED is on                                             - The USB cable is plugged in and user terminal is 

                                                                            available to run commands. 


    - CAM-1 LED is on                                         - The camera device plugged into CAM-1 port is supplied 

                                                                            with power from the battery (powered on). 


    - CAM-2 LED is on                                         - The camera or UV LED trap device plugged into the 

                                                                            CAM-2 port is supplied with power from the battery 

                                                                        (powered on).



8. XML DATA

  

Sensor data 

            Sensor data is transmitted from ECCU to CU in XML coded string through the ECCU-BUS 

command “!SET_SDATA” (See document: “ECCU-BUS Protocol – datasheet.pdf”). This XML coded string (file) should be sent on a web server to be managed in database. 

            XML code format of sensor data is described in document: “ECCU Sensor Data – XML Code.pdf”


Settings data

            Settings data are transmitted from CU to ECCU in XML coded string through the ECCU-BUS

command “!GET_SETTINGS” (See document: “ECCU-BUS Protocol – database.pdf”). At first this XML coded string (file) should be received from a web server administering a database into the CU before XML will be sent to ECCU device. 

            XML code format of settings data is described in document: “ECCU Settings – XML Code.pdf”


  

  

9. REVISIONS



10. RELEASE NOTES 

ECCU V2 User’s manual, Version 1.00 - New ECCU , Firmware 3.31 

ECCU V2 User’s manual, Version 1.12 - New ECCU , Firmware 3.32 with UV LED Trap support 

ECCU V2 User’s manual, Version 1.13 - New ECCU , Firmware 3.40 with UV LED Trap support