Sie sind auf Seite 1von 16

English:

I. TCP_IP_Connection

1. App TCP_IP_Connection
applies the technology of IoT, Smart Home, Remote control.
It allows to carry out:
- remote control and monitoring of control systems;
- remote diagnostics of the object;
- turn on/off sensors and devices, including electrical circuits,
hydraulics, pneumatics, etc.;
- transfer information, files and images between smartphones and computers
implemented the application.

For communication between the respective devices (smartphones or computers) are


required only stable connection to the Internet !!!

The application is developed according to the technology MQTT and use free
Internet broker. As a broker use the HiveMQ broker.

The application consists of 3 parts :


- TCP_IP_connection.apk - works on the smartphone and is intended for control and
monitoring of equipments;
- Server_Send_Receive.exe - the management server located on the computer and
execution action on the transfer of information from the smartphone to the
controller and back;
- Server_controller.exe - located on the same computer and execution tasks
of controller. Communication is linked directly with the controller via Ethernet or
Ethernet/IP. As the controller for management purposesused controller family
OMRON (CS1,CJ1,CJ2,CP1H,CP1L...).

Note. As a controller you can use the other type of controllers, for example, Yaskawa,
Siemens, ABB and other. They require rework program Server_controller.exe only to
interface of exchange with controller. So for Yaskawa controller family 2300Siec this
interface already developed and used in industrial conditions.

2. The application includes the following controls:

A. Smartphone – computer - controller.

- modes read/write of memory cells and bits of the controller OMRON


(DM,W,EM,CIO,HR);
- continuous cyclic polling of the memory areas;
- the formation of Alarms in the event of errors of control system;
- Display Gauges for 6 variables in real time;
- Display Scopes for 6 variables in real time;
- formation of statistical data on the operation of the equipment.

B. Smartphone - computer.

- sending and receiving text messages;


- sending and receiving picture image;
- transfer photos from a smartphone;
- transfer images from built-in Web camera of the laptop;
- reading the contents of a directory on the computer or laptop;
- reading contents of a text file.

V. Smartphone -smartphone / computer - computer.

- sending and receiving text messages;


- sending and receiving of picture image;
- transfer photos from smartphone to smartphone (from computer to computer);
- send the image with the built in webcam of a laptop to another laptop;
- reading the contents of a directory on the computer or laptop;
- reading contents of a text file.

3. Work application Server_Send_Receive.exe and Server_Controller.exe tested on


computers running the Windows 7 operating system.
Work application TCP_IP_Connection.apk was tested on smartphones Samsung,
Phillips running the operating system Android 5.0, Android 6.0.
It requires the use of a smartphone with a display diagonal of 5 inches and more.

4. App TCP_IP_Connection.the apk paid, the cost per user is $ 5 USA.


Distributed through Google Play.
The Internet address for downloading of programs Server_Send_Receive.exe and
Server_Controller.exe is on screen Help application TCP_IP_Connection.apk.

OMRON_Communication has the manual in Russian and English languages.

The Internet address for downloading the full manual ………………….

II. TCP_IP_Connection.apk

1. This program is for Android smartphone – see Fig.1.


It is designed to receive and monitor information from computers and (or) from the
controllers.
This program works in conjunction with the programs of the computer:
- Server_Send_Receive.exe;
- Server_Controller.exe;
2. There are fields for input information
located at the top of the screen.
Following command the exchange of information for this version of the program
(for example, for address DM1000 controllers OMRON):

- prg-d1000 - read memory cells ;

- wrg-d1000-9999 - record in the memory location number, for example equal to


9999; (the number should be set to 4 digits,
for example, 9=0009; 33=0033; 123=0123; 9999=9999);

- cyclic command prg;

- ftp-c:/ftp/*.txt - listing files in a directory computer;

- ppp-c:/ftp/sasha.txt - display a text file on the computer.

Note: 1. Cyclic polling of a variable is at time 1...2 sec !!!

3. For mode setting screens include the following elements:

The main screen – see Fig.1.


The top panel.
- Connect button - to enable communication between a smartphone and a broker;
- Disconnect button - to turn off the connection between a smartphone and a broker;
- Send button - to send a command to a computer or another smartphone;
- Clear button - to clear the information in the list, and Memo;
- field for input command;
- green led to indicate that communication between a smartphone and a broker
installed.
- Go to button to screen for transfer photo or image.

Bottom panel.
- button go to the screen Gauges are variables;
- button go to the screen Scope variables.
- button is cyclic execute command prg (timer - turn On);
- button cyclic execute command prg (timer - turn Off);
- button to go to the Help screen;

The screen image transmission – see Fig.1-1.


- The field to display a photo or image;

Bottom panel.
- Connect button to enable communication between a smartphone and a broker;
- Send button - to send image to a computer or another smartphone;
- Clear button for clearing the image field;
- Disconnect button - to turn off the connection between a smartphone and a broker;
- a button to move to the screen for formation of a photo or image;
- pink led to indicate that communication between a smartphone and a broker
installed.

The screen image formation.


Bottom panel.
- Button Photos for the formation of the image;
- Button to choose images;

The top panel.


- Button for save your image file in phone memory.
Must be always pressed to transfer images !!!

III. Server_Send_Receive.exe

1.Server_Send_Receive.exe – (see Fig.2, Fig.3)


this program is designed for the exchange of information with:

- Android application for mobile - TCP_IP_Connection.apk;


- with the program Server_Controller.exe;

2. Server_Send_Receive.exe accepts the command from the smartphone , processes it,


and passes in Server_Controller.exe.
Server_Controller.exe processes came commands, organizes the information from
the controller and transmits the requested information back to the
Server_Send_Receive.exe.
Server_Send_Receive.exe receives information from Server_Controller.exe
processes it and transmits the required information back to the smartphone.

3. You have the following items for control with computer:


The main screen –see Fig.2.
- input field;
- fields output of information;
- Connect button to activate communication between the computer and the broker;
- Disconnect - stop the connection between the computer and the broker;
- Send button - to send a command to another computer or another smartphone;
- Clear button - to clear the information in the list, and Memo;
- button go to screen form imaging;
- green led to indicate that communication between your computer and the broker is
installed.

Screen formation mappings –Fig.3.


- Connect button to activate communication between the computer and the broker;
- Disconnect button - stop the connection between the computer and the broker;
- Send button - to select and memorize the image file and sending it to another
computer or another smartphone;
- green led to indicate that communication between your computer and the broker is
installed.

- Connect button - to activate the Web interface of the Web camera;


- Disconnect button - to turn off the Web interface of the Web camera;
- Save button - to remember and display the file from a Web camera;
- green led to indicate that the webcam is connected.

Note. In the computer image file stored in the directory


c:/temp/mqtt. This directory must be created by user !!!

IV. Server_Controller.exe

1. Server_Controller.exe (see Fig.4) is a program designed for the exchange of


information with the program Server_Send_Receive.exe in communication with the
controller OMRON (Ethernet interface). This program gets the command code from
Server_Send_Receive.exe, performs this code, communicates with the controller and
then transmits the required information back in Server_Send_Receive.exe.

2.This program can work in conjunction with the program Server_Send_Receive.exe


and can also to work autonomously;

3 There are the following control elements of this program:

- Field to enter the Ethernet - Ethernet/IP address of the computer and the controller
( default is 192.168.1.2 and 192.168.1.50 accordingly);
- Open port button - to set the Ethernet interface - computer - controller;
- Close port button - to disable the Ethernet interface - computer - controller;
- Array read - offline reading of array variables of the controller at
specified addresses;
- Array write - for offline entry of the array variable controller;
- Stop button - to stop offline cycle reading array values from the
controller;
- Cycle read - offline reading of array variable controller in cycle.
- Clear button - for clearing the Memo;
- Fields to set variables and type of memory controller offline;
- The field of transmission string in the application Server_Send_Receive.exe;
- Send button - to send the string to the app Server_Send_Receive.exe,
when you are offline;
- Addresses Setting - for setting addresses of the memory areas of the controller for
Cycle – only for developer

Enjoy.

Copyright Dr.-eng. Alexandr Ryss. Moscow. 2016.


ab.ryss@yandex.ru
Русский :

I. TCP_IP_Connection

1. Приложение TCP_IP_Connection
служит для применения в технологиях IoT, Умный Дом,Удаленный
контроль.
Оно позволяет осуществлять:
- удаленное управление и мониторинг систем управления;
- удаленную диагностику объекта;
- осуществлять включение-выключение датчиков и устройств, включая
электрические цепи, гидравлику, пневматику и т.п.;
- передавать информацию, файлы и изображения между смартфонами и
компьютерами, на которых реализована данное приложение.

Для связи между соответствующими устройствами (смартфонами или


компьютерами) требуется только стабильное подключение к сети Интернет.
Приложение разработано по технологии MQTT cо свободным Интернет
брокером. В качестве брокера используется брокер HiveMQ.

Приложение состоит из 3-х частей :


- TCP_IP_connection.apk - функционирует на смартфоне и предназначено
для управления и мониторинга объектов;
- Server_Send_Receive.exe - сервер управления, расположен на компьютере
и выполняет действия по передаче информации
от смартфона к контроллеру и обратно;
- Server_controller.exe - расположенный на компьютере сервер
выполнения задач контроллера, связанный
непосредственно с контроллером по сети
Ethernet или Ethernet/IP. В качестве
контроллера для целей управления
применяются контроллеры семейства OMRON
(CS1,CJ1,CJ2,CP1H,CP1L...).

Примечание. В качестве контроллера могут применяться контроллеры другого


типа, например, Yaskawa, Siemens,ABB и
другие. Для них требуется в программе - Server_controller.exe
только переделать интерфейс обмена с
контроллером. Так для контроллеров семейства Yaskawa этот
интерфейс уже разработан и используется промышленных
условиях.

2. В приложении реализовано следующее управление:

А. Смартфон - компьютер - контроллер.

- режимы записи/чтения ячеек памяти и битов контроллеров OMRON


(DM,W,EM,CIO,HR);
- непрерывный циклический опрос зон памяти;
- формирование Alarms при возникновении сбоев в работе систем
управления;
- Отображение индикаторов (Gauge) для 6-ти переменных в реальном
масштабе времени;
- Отображение осциллограмм(Scope) для 6-ти переменных в реальном
масштабе времени;
- формирование статистических данных по работе оборудования.

Б. Смартфон - компьютер.
- прием-передача текстового сообщения;
- прием-передача картинки изображения;
- передача фотографии со смартфона;
- передача изображения со встроенной Веб камеры ноутбука;
- чтение содержимого директории компьютера/ноутбука;
- чтение содержимого текстового файла

В. Смартфон - смартфон / компьютер - компьютер.

- прием-передача текстового сообщения;


- прием-передача картинки изображения;
- передача фотографии со смартфона на смартфон;
- передача изображения со встроенной Веб камеры ноутбука на другой
ноутбук;
- чтение содержимого директории компьютера/ноутбука;
- чтение содержимого текстового файла

3. Работа приложений Server_Send_Receive.exe и Server_Controller.exe


проверялась на компьютерах под управлением операционной системы
Windows 7.
Работа приложения TCP_IP_Connection.apk проверялась на смартфонах
Samsung, Phillips под управлением операционной системы Android 5.0,
Android 6.0.
Для работы требуется применение смартфонов с диагональю не менее 5
дюймов.

4. Приложение TCP_IP_Connection.apk - платное, стоимость для одного


пользователя 5$ USA.
Распространяется через Google Play.
Интернет адрес для закачки программм Server_Send_Receive.exe и
Server_Controller.exe располагается на экране Help приложения
TCP_IP_Connection.apk.

OMRON_Communication имеет руководство на русском и английском языках.

Интернет адрес для закачки полного описания ……………………….


II. TCP_IP_Connection.apk

1. Эта программа для Android смартфона –см. Fig.1,Fig1_1, Fig1_2.


Она предназначенная для получения и мониторинга информации от
компьютеров и(или) от контроллеров.
Эта программа работает совместно с программами компьютера:
- Server_Send_Receive.exe;
- Server_Controller.exe;

2. Команды для обмена информацией вводятся с помощью соответствующего


поля, расположенного в верхней части экрана

Реализованы следующие команды обмена информацией для данной версии


программы (на примере адреса DM1000 контроллеров OMRON):

- prg-d1000 - чтение ячейки памяти ;


- wrg-d1000-9999 - запись в ячейку памяти числа, например, равного 9999;
(число должно быть задано 4-мя разрядами,
например, 9=0009; 33=0033; 123=0123; 9999=9999);
- циклическое выполнение команды prg;

ftp-c:/ftp/*.txt - получение списка файлов в директории компьютера;


ppp-c:/ftp/sasha.txt - отображение текстового файла компьютера.

Примечание: 1. Циклический опрос переменной осуществляется за время 1...2


сек !!!

3. Для задания режимов на экранах имеются следующие элементы:

Основной экран –Fig.1.

Верхняя панель.
- Кнопка Connect - для включения связи между смартфоном и брокером;
- Кнопка Disconnect - для выключения связи между смартфоном и брокером;
- Кнопка Send - для отправки команды в компьютер или другой
смартфон;
- Кнопка Clear - для очистки информации в списке и в Memo;
- поле ввода команды;
- зеленый светодиод для индикации, что связь между смартфоном и брокером
установлена;
- кнопка перехода к экрану передачи фото или изображения

Нижняя панель.
- кнопка перехода к экрану индикаторов переменных;
- кнопка перехода к экрану осциллограммы переменных;
- кнопка включения циклического выполнения команды prg по таймеру;
- кнопка выключения циклического выполнения команды prg по таймеру;
- кнопка перехода к экрану помощь;

Экран передачи изображения –Fig1_1


.
- Поле для отображения фото или изображения;
Нижняя панель.
- Кнопка Connect - для включения связи между смартфоном и брокером;
- Кнопка Send - для отправки команды в компьютер или другой
смартфон;
- Кнопка Clear - для очистки изображения;
- Кнопка Disconnect - для выключения связи между смартфоном и
брокером;
- кнопка перехода к экрану формирования фото или изображения;
- розовый светодиод для индикации, что связь между смартфоном и брокером
установлена.

Экран формирования изображения –Fig.1_2.

Нижняя панель.
- Кнопка Фото - для формирования фотографии непосредственно
смартфоном;
- Кнопка выбора предустановленных изображений;

Верхняя панель.
- Кнопка сохранения файла изображения в памяти смартфона.
Должна обязательно нажиматься для передачи изображений !!!

III. Server_Send_Receive.exe

1.Server_Send_Receive.exe -
это программа (Fig.2, Fig.3) предназначена для обмена информацией с:

- Android приложением для смартфона - TCP_IP_Connection.apk;


- с программой Server_Controller.exe;

2. Server_Send_Receive.exe принимает команду от смартфона , обрабатывает ее,


и передает в Server_Controller.exe.Server_Controller.exe обрабатывает
пришедшую команду, организует получение информации из контроллера
и передает требуемую информацию назад в Server_Send_Receive.exe.
Server_Send_Receive.exe принимает информацию от Server_Controller.exe,
обрабатывает ее и передает требуемую информацию назад в смартфон.

3. Имеются следующие элементы для контроля со смартфоном:


Основной экран –Fig.2.
- поле ввода информации;
- поля вывода информации;
- Кнопка Connect - для включения связи между компьютером и брокером;
- Кнопка Disconnect - для выключения связи между компьютером и
брокером;
- Кнопка Send - для отправки команды в другой компьютер, или другой
смартфон;
- Кнопка Clear - для очистки информации в списке и в Memo;
- кнопка перехода к экрану формирования изображений;
- зеленый светодиод для индикации, что связь между компьютером и
брокером установлена.

Экран формирования изображений – Fig.3.


- Кнопка Connect - для включения связи между компьютером и брокером;
- Кнопка Disconnect - для выключения связи между компьютером и
брокером;
- Кнопка Send - для выбора и запоминания файла отображения и
отправки его в другой компьютер, или другой смартфон;
- зеленый светодиод для индикации, что связь между компьютером и
брокером установлена.

- Кнопка Connect - для включения интерфейса Веб камеры;


- Кнопка Disconnect - для выключения интерфейса Веб камеры;
- Кнопка Save - для запоминания и отображения файла с Веб камеры;
- зеленый светодиод для индикации, что Веб камера подключена и
функционирует.

Примечание. В компьютере файл изображения сохраняется в директории


c:/temp/mqtt. Эта директория должна быть создана пользователем
самостоятельно!!!

IV. Server_Controller.exe

1. Server_Controller.exe - это программа (Fig.4) предназначенная для обмена


информацией с программой Server_Send_Receive.exe и обменом
информацией с контроллером (по интерфейсу Ethernet). Данная программа
получает код команды от Server_Send_Receive.exe,выполняет этот код -
обменивается информацией с контроллером и далее передает требуемую
информацию обратно в Server_Send_Receive.exe.

2.Данная программа может работать совместно с программой


Server_Send_Receive.exe , а также может работать автономно;

3 Имеются следующие элементы управления данной программой:

- Поля для ввода Ethernet адреса компьютера и контроллера ( по умолчанию –


192.168.1.50 и 192.168.1.2 соответственно);
- Кнопка Open port - для включения интерфейса Ethernet - компьютер –
контроллер;
- Кнопка Close port - для выключения интерфейса Ethernet - компьютер –
контроллер;
- Кнопка Array read - для автономного чтения массива переменных
контроллера по задаваемым адресам;
- Кнопка Array write - для автономной записи массива переменных
контроллера;
- Кнопка Stop read - для останова автономного циклического чтения
массива переменных контроллера;
- Кнопка Cycle read - для автономного чтения массива переменных
контроллера по одному адресу;
- Кнопка Clear - для очистки Memo;
- Поля для задания переменных и типа памяти контроллера при автономной
работе;
- Поле для передачи строки в приложение Server_Send_Receive.exe;
- Кнопка Send to serve SR - для передачи строки в приложение
Server_Send_Receive.exe при автономной работе;
- Кнопка Addresses Setting - для установки адресов зоны памяти контроллера
при циклическом опросе – используется только разработчиком.

Enjoy.

Copyright dr.-eng. Alexandr Ryss. Moscow. 2017.


ab.ryss@yandex.ru
Fig.1 – TCP_IP_communication . Main screen.
Fig.1_1 – TCP_IP_communication . Image transfer screen.
Fig.1_2 – TCP_IP_communication . Image form screen.
Fig.2 Server_Send_Receive – Main screen.
Fig. 3 Image control screen

Fig.4 Server_controller – Main screen.

Das könnte Ihnen auch gefallen