Sie sind auf Seite 1von 22

CARD READER FOR MEG40 UNIVERSAL

ENERGY METERS - SW
MEgA – Měřící Energetické Aparáty, a.s.

Abstract:
Manual for the basic user software of 16MB card readers for MEg40 energy meters.

16MB Card Reader for MEg40


Energy Meters

Description of Basic Software


Version: 2 Date: 13 Nov 2013 Manual for 16MB card reader for MEg40

SUMMARY OF VERSION
Version number Date Description of modification

1 23 Feb 2011 Base document


2 13 Nov 2013 Document revisions, alterations

2
Version: 2 Date: 13 Nov 2013 Manual for 16MB card reader for MEg40

CONTENTS
Abstract:.............................................................................................................................................................. 1
Glossary.............................................................................................................................................................. 3
1 INTRODUCTION ......................................................................................................................................... 4
1.1 Description of Reader ............................................................................................................................ 4
2 INSTALLATION OF SOFTWARE ............................................................................................................... 6
2.1 Communication ...................................................................................................................................... 7
3 DESCRIPTION OF SOFTWARE ................................................................................................................ 8
3.1 Program parameter settings .................................................................................................................. 9
3.2 Upgrade of reader FW .........................................................................................................................13
3.3 Reading of data from memory cards ...................................................................................................15
3.4 Structure of directories on computer hard disk ...................................................................................19
4 MEMORY CARD APPLICATION ..............................................................................................................21

GLOSSARY
MEg40 universal energy meter of electric quantities for models up to the year 2012.
MEg40+ universal energy meter of electric quantities for models after the year 2013.
CARD special 16MB card for energy meters MEg40 and MEg40+.
USB high-speed serial interface.
VCP virtual serial communication port.
COMx serial communication port used for communication with number x.

3
Version: 2 Date: 13 Nov 2013 Manual for 16MB card reader for MEg40

1 INTRODUCTION
Since the year 2006, all universal energy meters MEg40 have been manufactured with an additional con-
nector to accommodate the memory extension card. The connector is provided with a plastic cover to ensure
protection against dirt or damages.
Since 2007, the energy meter model MEg40 has been supplied with 16MB memory cards equipped with
appropriate reader. The reader features a slot for 8 memory cards that can be read out and erased in stages.
A memory card supplied here is provided with a specific connection and its connector field is incompatible
with other types of commercial memory cards. This feature makes it unique for connection with energy me-
ters MEg40 or MEg40+ only.

Figure 1.1 16MB memory card for energy meter type MEg40

Figure 1.2 16MB memory card reader

Figure 1.3 Universal energy meter MEg40 and MEg40+

1.1 DESCRIPTION OF READER


The reader is powered via USB communication cable connected to a PC. Its correct operation is
indicated by LED light on PC. Communication over the USB bus is ensured using the FTDI circuit with at
least the following drivers for Windows XP operating system:

4
Version: 2 Date: 13 Nov 2013 Manual for 16MB card reader for MEg40

Figure 1.4 Minimum version of FTDI drivers

Each reader is provided with a different VCP port number on a single computer.

Figure 1.5 Additional settings of VCP card reader for MEg40

The reader contains eight slots for insertion of eight memory cards designed for MEg40. Insertion of
a card into the slot is indicated by means of green LED light in the CARD column. The red LED light in the
RUN column indicates the status of communication with card, which may not be removed from the reader at
this point - due to potential data loss.
To improve the baud rate, users can adjust the Latency Timer parameter to a lower value (min = 2).

5
Version: 2 Date: 13 Nov 2013 Manual for 16MB card reader for MEg40

2 INSTALLATION OF SOFTWARE
The software has been prepared for operating system Microsoft Windows of these types: MW XP, MW Vista,
MW 2007 (32-bit version). Operating systems WINDOWS 98 and WINDOWS M are not recommended and
using any older versions is not feasible at all.

For up-to-date versions of software visit the following website:

http://www.e-mega.cz/DL/CRMEg40

The software is supplied with an installation program. Installation must be performed according to instruc-
tions within.

6
Version: 2 Date: 13 Nov 2013 Manual for 16MB card reader for MEg40

Software files:
Karty_MEg40_EN.exe - executable program, English version
Main -keywords text file
Sec - keywords text file
CTECKAMEG40UPGRFW.upg - file containing new versions of FW
PARAMETRY_CTECKA40.CFG- program parameters, file created automatically

2.1 COMMUNICATION
Communication between the software and the reader is ensured via serial USB interface and the virtual seri-
al port VCP. The VCP inside computer comprises drivers made by the company FTDI, which supplies chips
fitted in every reader.
Drivers are supplied together with the software for readers.
Up-to-date drivers are available from the following websites:
http://www.ftdichip.com/
http://www.ftdichip.com/Drivers/VCP.htm

Operations systems often use their own integrated drivers that may be outdated. If that is the case, drivers
need to be re-installed. Instructions for installation of drivers can be also found at:
http://www.ftdichip.com/Support/Documents/InstallGuides.htm

Every reader is provided with a separate VCP. The number of such virtual COM port is entered in program
parameters. Connection between the computer and reader is ensured by means of a standard USB cable
type A-B.

7
Version: 2 Date: 13 Nov 2013 Manual for 16MB card reader for MEg40

3 DESCRIPTION OF SOFTWARE
The user SW assumes all the relevant USB drivers (see above) have been installed properly. Communica-
tion is then ensured using that VCP (virtual COM port) matching the number entered in parameters.

The Figure 3.1 shows the main program window. The top left section of main program window contains the
software version number, presets for erasing and verification of all cards, the path for saving of data files,
information about cards connected, the Course text windows with a summary of running applications, pro-
gram control buttons and information about the reader FW version.

Figure 3.1 Main program window

8
Version: 2 Date: 13 Nov 2013 Manual for 16MB card reader for MEg40

3.1 PROGRAM PARAMETER SETTINGS


Using the Setting button enter the window Parameters of Settings. Use the tab Communication to set up
the number of COM port in use and change the communication baud rate if needed. It is assumed that the
reader is PC via a USB cable at this stage.
The baud rate of reader when turned on is set to the maximum level, i.e. 921600Bd.
The box COM ports enables quick selection of COM port number.

Figure 3.2 Parameters window for input of parameter values

Quick selection of VCP port

Figure 3.3 Quick selection of VCP port

If the COM port number is unknown, use the Find COM port number and proceed further according to in-
structions given by the program, press the OK button to reach the next step. The first action will result in
finding of all COM ports, when the USB cable is disconnected from the reader; and then all COM ports, when
the USB cable is connected to the reader. The difference in numbers of COM ports connected will be use to
determine the COM port for reader. The COM port found will be set up for communication automatically.

9
Version: 2 Date: 13 Nov 2013 Manual for 16MB card reader for MEg40

Figure 3.4 Help for finding the COM port number.

Figure 3.5 COM port number found.

Figure 3.6 COM port number not found.

The COM port number can be also found in Device Manager of WINDOWS OS.

10
Version: 2 Date: 13 Nov 2013 Manual for 16MB card reader for MEg40

Figure 3.7 COM port number in operation system.

The Line test button can be used to verify communication with the reader. Successful communication is
indicated with OK message accompanied with the reader serial number, communication failure generates an
error message.

The variety of serial number of specific chips fitted in a memory card require reduction of the maximum baud
rate sometimes. The baud rate can be lowered down to the minimum of 115200Bd.

Figure 3.8 Baud rate change


Use the menu to select the desired baud rate value and press the Make button. The resultant baud rate set-
tings will be reported.

11
Version: 2 Date: 13 Nov 2013 Manual for 16MB card reader for MEg40

Ticking the box Start SW with 921600Bd will set the initiate program baud rate to 921600Bd, which is iden-
tical to the baud rate inside reader upon restart (connection of USB cable from computer). If the box is not
ticked off, the last baud rate settings (e.g. 512000 Bd) will appear upon program restart.

Caution – when restarted, the reader will resume its highest baud rate of 921600Bd.

The tab Files enables the following settings:


- Save history into TXT file. The contents of status box will be saved into a text file. The default fold-
er named HISTORY contains files in text format referring to the history of data from cards. File
names are derived from the actual date and time on the computer.
- Format file name. Names of data files will be saved in predefined format:
Nr.station_Nr.transformer_S.N.reader_date_time. Date and time format: YYYYMMDD HHMMSS.
Station and transformer numbers are entered in the measurement description already.
- Optional directory. Data files are saved into default sub-folder DATA as standard. Use the button
Choose and tick the option allow optional direcotry for data saving to enable saving of data into
the selected folder. Only an existing folder can be selected.

Figure 3.9 File parameters settings

The tab Database enables entering of parameters during cooperation with database storage of data meas-
ured. However, this functionality must be supplemented with special SW modules based on extra specifica-
tion and agreements with the user.

12
Version: 2 Date: 13 Nov 2013 Manual for 16MB card reader for MEg40

Figure 3.10 Parameters of settings during cooperation with database.

The tab Others enables defining a timeout for erasing one memory card. The limit can be extended up to
600 s.
Another option available is the Respect summer/winter time in measured data. Use of this option will en-
sure automatic adjustments of times for particular data samples in case of time switches.

Figure 3.11 Settings of other program parameters

3.2 UPGRADE OF READER FW

The program checks the existing version of reader FW. Any outdated FW in the reader will be upgraded.
FW upgrade procedure:
1. Connect the reader to PC using a USB cable.
2. Upgrade will run at the rate of 115.2 kBd only. Set the reader to communication baud rate of 115.2
kBd.
3. Push the button Card configuration – the device will run a check of FW versions and perform an
upgrade, if there is a new version available.

13
Version: 2 Date: 13 Nov 2013 Manual for 16MB card reader for MEg40

4. Following such upgrade, the reader will resume the baud rate of 921.6 kBd immediately, therefore
the upgrade program reports an error - 9 during reader startup.
5. Set the baud rate in SW to 921.6 kBd to communicate with the reader.

Figure 3.12 New version of FW found

Figure 3.13 Window for upgrade of FW in reader.

Figure 3.14 Error during reader FW upgrade

14
Version: 2 Date: 13 Nov 2013 Manual for 16MB card reader for MEg40

3.3 READING OF DATA FROM MEMORY CARDS


Memory cards must be inserted into reader slots. Use the Card configuration button to load the configura-
tion of cards in the main program window.

Figure 3.15 Reading of configuration of inserted cards

Configuration settings of all cards inserted and connected will be read out. Every card from 1 to 8 is shown
with details as the name of measurement, S. N. of energy meter MEg40, where the card was, the name of
data file storage, the quantity of data downloaded/total capacity and status of the card.

The button Details of cards shows complete measurement headings:

15
Version: 2 Date: 13 Nov 2013 Manual for 16MB card reader for MEg40

Figure 3.16 Measurement headings

Destination path for saving of measured data is shown in the header of main application window.
File name will be assigned automatically, according to name of measurement during card configuration read-
ing. Any inconvenient names can be changed by clicking the right mouse button and renaming the files con-
cerned. Renaming must be done using characters accepted by the operation system only.

Figure 3.17 Renaming of data file


Automatic assigning of file names will provide any file bearing an identical name with a higher consecutive
number to become a part of the file name (e.g. Test of cards for reader_019). Numbers are assigned up to
the max. level of 999 followed by replacing of files. It is assumed that files saved into defined folder will be
copied elsewhere to keep the data saving uniform.

The button Read out all triggers the main subroutine to initiate reading out of data from individual cards. Still
before this procedure, the user may select the option of data verification after reading (box Verification of
reading data) and subsequent erasing (box Delete cards after reading data). However, it is more conven-
ient to erase cards only after copying of the read data into files by particular user.
The total reading time will double during verification.
The status of reading is indicated in the History status window.

16
Version: 2 Date: 13 Nov 2013 Manual for 16MB card reader for MEg40

The reading process can be suspended using the button Interrupt, yet the reading will need to be restored
from the beginning again.
Complete configuration will be downloaded before reading.

Data reading history:

Figure 3.18 Cards reading history.

17
Version: 2 Date: 13 Nov 2013 Manual for 16MB card reader for MEg40

Figure 3.19 Cards have been read


The meaning of icons in Status column is:
- card read out
- data on card and in data file verified
- card deleted
- transfer of data file into database (special specification)

The button Delete all will perform an erasure of all cards inserted in the reader to complete irreversible data
loss on cards.
The erasing process can be suspended using the button Interrupt, yet it is possible from the subsequent
card intended for erasure only.
Complete configuration is downloaded before the erasure and that must be still confirmed in the next dia-
logue.

18
Version: 2 Date: 13 Nov 2013 Manual for 16MB card reader for MEg40

Select No to prevent erasing.

The device also allows selection of erasure for cards that seem erased already.
Erasing of a new card lasts from 80 sec up to 200 sec, depending on the type of memory chips fitted in
cards, as supplied from the manufacturer.

3.4 STRUCTURE OF DIRECTORIES ON COMPUTER HARD DISK

The program will create default DATA and HISTORY directories automatically.
The DATA sub-folder will contain data files with data read from memory cards.
The HISTORY sub-folder will be supplied with text files containing text messages in the History window.

Figure 3.20 Core folder of the EXE file and auxiliary files kartax.dat

19
Version: 2 Date: 13 Nov 2013 Manual for 16MB card reader for MEg40

Figure 3.21 DATA sub-folder. The sub-bolder contains data files in MEg40 format for storage purposes.

HISTORY sub-folder. The sub-folder contains files in text format referring to history of card reading process.
File names are derived from the actual date and time on the computer.

Figure 3.22 HISTORY sub-folder.

20
Version: 2 Date: 13 Nov 2013 Manual for 16MB card reader for MEg40

4 MEMORY CARD APPLICATION

The energy meter MEg40 has been designed to work with 16MB special memory card. SW for energy meter
MEg40 is used to set the energy meter MEg40 using desired parameters of measurement and initiation of
the measuring process. The system offers two options for utilisation of memory cards:
- perform initiation of measuring in the energy meter MEg40 and insert an empty card into the energy
meter MEg40
- insert any card into the energy meter MEg40 (even if not erased) and trigger measuring in the ener-
gy meter MEg40. The period for erasing of old data needs to be extended to approx. 240 sec.

If the energy meter MEg40 running measurements stored in internal memory is inserted with an empty
memory card, the device will stop recording data into the internal memory of MEg40 and proceed with rec-
ords on the card. Any data measured and stored in the internal memory will then become inaccessible.
If the energy meter MEg40 running measurements stored in internal memory is inserted with a card contain-
ing data from another energy meter MEg40, the recording into internal memory of energy meter MEg40 will
be interrupted and there will be no records made on the card either. Any data measured and stored in the
internal memory will then become inaccessible.
If a card is removed from the energy meter MEg40 with measuring in progress, the data recording process
will be interrupted. There is no data being stored into the internal memory. The data recording process will
be restored following insertion of the same card or any empty card.

For detailed information on card application see the Technical Manual for Energy meter Meg40, Meg40+.

21
Version: 2 Date: 13 Nov 2013 Manual for 16MB card reader for MEg40

List of figures
Figure 1.1 16MB memory card for energy meter type MEg40 ........................................................................... 4
Figure 1.2 16MB memory card reader ............................................................................................................... 4
Figure 1.3 Universal energy meter MEg40 and MEg40+ ................................................................................... 4
Figure 1.4 Minimum version of FTDI drivers ...................................................................................................... 5
Figure 1.5 Additional settings of VCP card reader for MEg40 ........................................................................... 5
Figure 3.1 Main program window ....................................................................................................................... 8
Figure 3.2 Parameters window for input of parameter values ............................................................................ 9
Figure 3.3 Quick selection of VCP port .............................................................................................................. 9
Figure 3.4 Help for finding the COM port number. ...........................................................................................10
Figure 3.5 COM port number found. ................................................................................................................10
Figure 3.6 COM port number not found. ..........................................................................................................10
Figure 3.7 COM port number in operation system. ..........................................................................................11
Figure 3.8 Baud rate change ............................................................................................................................11
Figure 3.9 File parameters settings ..................................................................................................................12
Figure 3.10 Parameters of settings during cooperation with database. ...........................................................13
Figure 3.11 Settings of other program parameters ..........................................................................................13
Figure 3.12 New version of FW found ..............................................................................................................14
Figure 3.13 Window for upgrade of FW in reader. ...........................................................................................14
Figure 3.14 Error during reader FW upgrade ...................................................................................................14
Figure 3.15 Reading of configuration of inserted cards ...................................................................................15
Figure 3.16 Measurement headings .................................................................................................................16
Figure 3.17 Renaming of data file ....................................................................................................................16
Figure 3.18 Cards reading history. ...................................................................................................................17
Figure 3.19 Cards have been read ...................................................................................................................18
Figure 3.20 Core folder of the EXE file and auxiliary files kartax.dat ...............................................................19
Figure 3.21 DATA sub-folder. The sub-bolder contains data files in MEg40 format for storage purposes. ....20
Figure 3.22 HISTORY sub-folder. ....................................................................................................................20

22

Das könnte Ihnen auch gefallen