This documentation is out of date.

The new version of the documentation is here: https://cannylogic.com/docs

Difference between revisions of "Firmware Update Utility"

From CANNY Wiki
Jump to: navigation, search
[unchecked revision][unchecked revision]
(Использование утилиты автоматической загрузки ПО в контроллер)
(Creating SFX-file)
Line 9: Line 9:
 
[[File:4_9_1_1.png]]
 
[[File:4_9_1_1.png]]
  
Прежде всего, в диалоговом окне необходимо указать тип контроллера для которого создется SFX-файл. В выпадающем списке нужно выбрать один их предлагаемых типов контроллера: CANNY 7, CANNY 5, CANNY 5 Nano.
+
First of all, you must specify the type of controller for which SFX-file will be created. In the drop-down list to choose one of the proposed controller types: Canny 7, Canny 5, Canny 5 Nano.
  
В диалоговом окне необходимо указать имена и полные пути к файлам: исходного системного ПО «.ccx», исходного файла функциональной диаграммы «.cfd» и результирующего SFX «.exe» файла.
+
In the dialog box, you must specify the names and full paths to files: the source system software «.ccx», the source file of the functional diagram «.cfd» and the resulting SFX «.exe» file.
  
Текстовое поле вкладки «Комментарий» предназначено для ввода и редактирования текстового сообщения, которое увидит пользователь при запуске полученного SFX-файла. Это могут быть сведения о включенных в него файлах, их версиях и именах, краткие инструкции по пользованию утилитой автоматической загрузки ПО, информация о назначении пользовательских параметров, при их использовании, краткое описание функций, реализуемых программным обеспечением.
+
The text field of the "Comment" tab is used to enter and edit text message, that the user will see when running the obtained SFX-File. This may be information about the files included in it, their versions, and names, brief instructions on the use of automatic software loading utility, Information about the purpose of user-defined parameters, if used, a brief description of the functions implemented by software.
  
Вкладка «Параметры» предназначена задания имен и типов параметров, значения которых будет предложено выбрать пользователю при запуске утилиты автоматической загрузки ПО.
+
The "Settings" tab is intended to specify the names and types of parameters, the values of which will be asked to choose by the user when run automatic software loading utility.
  
 
[[File:4_9_1_2.png]]
 
[[File:4_9_1_2.png]]
  
Максимальное число параметров, доступных для выбора пользователем — 16. При создании SFX-файла, каждому параметру задается отображаемое имя и назначается типПараметр может быть одного из двух типов — «Число» или «Список».  
+
The maximum number of options that are available for selection by the user  is 16. When creating a SFX-file, each parameter specifies with the display name and typeThe parameter may be one of two types - "Number" and "List."
  
При запуске SFX-файла, задание параметра типа «Число» будет осуществляться пользователем путем ввода с клавиатуры числового значенияЗадание параметра типа «Список» - выбором по названию соответствующего элемента из выпадающего списка.
+
When launching SFX-file, set the parameter "number" type will be performed by the user by typing a numeric valueSetting the parameterof "List" type - a choice for the title of the corresponding item from the drop-down list.
  
Созданный таким образом файл, может быть передан на носителе, отправлен по электронной почте или опубликован в интернет и использован конечным потребителем для загрузки и задания параметров работы контроллера без использования какого-либо дополнительного ПО.
+
Created in this way file can be transferred on a media, emailed or published on the Internet and used by the end user to download and setting of the controller parameters without the use of any additional software.
  
 
{|
 
{|
|valign="top" style="padding-left:0.5em;"|'''''ВНИМАНИЕ!'''''
+
|valign="top" style="padding-left:0.5em;"|'''''ATTENTION!'''''
|valign="top" style="padding-left:0.5em;"|'''''Несмотря на свою абсолютную безвредность, создаваемые CannyLab SFX-файлы имеют необычную для Windows структуру, чем вызывают подозрение некоторого антивирусного ПО. Антивирусное ПО может выдать предупреждение или вовсе удалить файл при его создании или попытке обращения к нему. Если вы столкнулись с подобной ситуацией, то исключите SFX-файл из операций сканирования вашего антивируса.'''''
+
|valign="top" style="padding-left:0.5em;"|'''''Despite its absolute harmlessness, SFX-files created by CannyLab have an unusual structure for Windows which is suspicious for some of antivirus software. Antivirus software may give a warning or even delete the file when you create it, or try to access it. If you are faced with a similar situation, exclude the SFX-file from your antivirus scanning operations.'''''
 
|}
 
|}
  
По окончании настройки параметров SFX-файла и нажатию кнопки ''«Создать»'', производится запись на диск результирующего исполняемого файла.
+
At the end of settings SFX-file parametrs and pressing the button '' Create '' , resulting executable file will be saved to the HDD.
  
 
{|
 
{|
|valign="top" style="padding-left:0.5em;"|''Примечание:''
+
|valign="top" style="padding-left:0.5em;"|''Note:''
|valign="top" style="padding-left:0.5em;"|''Файлы системного программного обеспечения (.ccx) и файлы диаграмм (.cfd), предназначенные для определенного типа контроллера, не совместимы с другими типами контроллеров и не могут использоваться с ними. При попытке использования некорректных исходных данных, SFX-файл не будет создан, при этом пользователю будет выдано предупреждение об ошибке.''
+
|valign="top" style="padding-left:0.5em;"|''The system software files (.ccx) and the diagram files (.cfd), designed for a specific type of controller is not compatible with other types of controllers and can not be used with them. When attempting to use incorrect source data, the SFX-file will not be created, and the user will receive an error warning. ''
 
|}
 
|}
  
Процедура экспорта производит сохранение содержимого комментария и описание параметров SFХ в текстовый файл, с возможностью последующего импорта при создании SFX-файлов в дальнейшем, для исключения необходимости повторного ввода данных.
+
The export procedure saves the comments content and the description of the SFX parameter to a text file, with an option to import to create SFX-file in the future, to avoid having to re-input data.
  
 
=== Использование утилиты автоматической загрузки ПО в контроллер ===
 
=== Использование утилиты автоматической загрузки ПО в контроллер ===

Revision as of 13:10, 8 July 2016

IDE CannyLab allows users to create a custom stand-alone executable EXE-files containing the system controller software and a functional diagram.

The purpose of this file is a fast configure the controller in understandable to the final consumer view and a simple software loading to the controller using a computer without installed CannyLab IDE. In the future, such a file will be called: a self extracting software or the SFX-file.

Creating SFX-file

Call dialogue create SFX-file is done by selecting «Service» → «Create SFX» of main window

4 9 1 1.png

First of all, you must specify the type of controller for which SFX-file will be created. In the drop-down list to choose one of the proposed controller types: Canny 7, Canny 5, Canny 5 Nano.

In the dialog box, you must specify the names and full paths to files: the source system software «.ccx», the source file of the functional diagram «.cfd» and the resulting SFX «.exe» file.

The text field of the "Comment" tab is used to enter and edit text message, that the user will see when running the obtained SFX-File. This may be information about the files included in it, their versions, and names, brief instructions on the use of automatic software loading utility, Information about the purpose of user-defined parameters, if used, a brief description of the functions implemented by software.

The "Settings" tab is intended to specify the names and types of parameters, the values of which will be asked to choose by the user when run automatic software loading utility.

4 9 1 2.png

The maximum number of options that are available for selection by the user is 16. When creating a SFX-file, each parameter specifies with the display name and type. The parameter may be one of two types - "Number" and "List."

When launching SFX-file, set the parameter "number" type will be performed by the user by typing a numeric value. Setting the parameterof "List" type - a choice for the title of the corresponding item from the drop-down list.

Created in this way file can be transferred on a media, emailed or published on the Internet and used by the end user to download and setting of the controller parameters without the use of any additional software.

ATTENTION! Despite its absolute harmlessness, SFX-files created by CannyLab have an unusual structure for Windows which is suspicious for some of antivirus software. Antivirus software may give a warning or even delete the file when you create it, or try to access it. If you are faced with a similar situation, exclude the SFX-file from your antivirus scanning operations.

At the end of settings SFX-file parametrs and pressing the button Create , resulting executable file will be saved to the HDD.

Note: The system software files (.ccx) and the diagram files (.cfd), designed for a specific type of controller is not compatible with other types of controllers and can not be used with them. When attempting to use incorrect source data, the SFX-file will not be created, and the user will receive an error warning.

The export procedure saves the comments content and the description of the SFX parameter to a text file, with an option to import to create SFX-file in the future, to avoid having to re-input data.

Использование утилиты автоматической загрузки ПО в контроллер

При запуске созданного исполняемого файла утилиты автоматической загрузки ПО в контроллер отображается диалоговое окно, в левой части которого располагается область комментария, а справа — панель задания значений параметров и панель состояния.

4 9 2 1.png

В области комментария отражена информация, указанная в соответствующем поле при создании SFX-файла.

Область параметров заполнена элементами, позволяющими задать значения способом, предусмотренным при создании SFX-файла — выбрав значения из списка или введя их с клавиатуры. Если при создании SFX-файла описание параметров не было задано, то данная область будет пуста.

Выбранные пользователем значения параметров, после записи контроллера, будут доступны функциональной диаграмме в регистрах «Регистр параметра пользовательской конфигурации №ХХ».

Примечание: При большом объеме комментария и большом числе используемых параметров, они могут не полностью помещаться в соответствующих панелях диалогового окна. Для доступа ко всему содержимому панелей, предусмотрены полосы вертикальной прокрутки в их правых частях.

Для загрузки выбранных значений параметров и ПО содержащегося в SFX-файле в контроллер, отключите контроллер от внешнего питания и соедините его с ПК посредством стандартного кабеля miniUSB, зеленый светодиод контроллера при этом включится. При первом подключении контроллера, Windows сообщит об обнаружении нового стандартного устройства и автоматически установит драйвер для него.

До момента установления связи с контроллером, в панели состояния будет отображена надпись «Устройство не подключено», кнопка «Запись» будет недоступна. После успешного установления связи, зеленый светодиод контроллера начнет прерывисто мерцать, в панели состояния отобразится надпись «Устройство готово к записи» и кнопка «Запись» станет активна.

Примечание: Во избежание сбоев в работе утилиты, не запускайте несколько SFX-файлов и не подключайте к ПК более одного контроллера одновременно.

Для начала загрузки ПО в контроллер нажмите кнопку «Записать». В строке состояния будет отображаться ход процесса записи.

В случае успешного окончания записи ПО в контроллер в панели состояния появится сообщение «Запись закончена».

Если процесс записи ПО в контроллер был прерван по команде пользователя или во время записи произошла ошибка, в панели состояния появится сообщение «Возникла ошибка записи». В данном случае, процесс записи должен быть повторен.

See also

CANNY Lab