Netcnf.exe

https//www.racom.eu/eng/support/utils/netcnf.html

Print version

3. Netcnf.exe

Replaces the former application Uds.exe and is used for upload and download of CU configuration structures. It is possible to use this application locally or remotely, e.g. upload configuration structures from all CU’s in the network.

Netcnf.exe (when upload) saves configuration structures from FLASH or S-RAM memory of CU into address.cnf file, where address is the address of the connected node (locally or remotely), e.g. 690F0001.cnf.

Netcnf.exe (when download) saves configuration structures directly into permanent memory in CU (FLASH, S-RAM). To use these parameters immediately it is necessary to put them into RAM too:

  • by the command (s)ervice (g)o go MORSE (B) thus sgB

  • or by the hw reset (off/on)

Fileaddress.cnf, which contains the CU configuration can be archived and downloaded to the same or another CU. It is important to make sure that more CUs with the same MORSE address are not created in the network!

If we need to make a change in the stored configuration, we can use from fw version 9.0.13.0 the Setr with -af parameter, e.g. Setr -afcnf/anynet/690f0001.cnf. In older versions we can download it to an auxiliary CU, use Setr to modify the configuration and again upload it to the file in the PC.

Since fw version 10.0.27.0 the CNI monitoring setting include Split is contained in the configuration file. This parameters had to be set using macro or manually before.

3.1. Upload configuration from the CU to the PC

3.1.1. Locally

  • Start program Netcnf.exe with the CU connected by the service cable :

    Upload configuration

    Fig. 3.1: Upload configuration

    By clicking on icon Configuration upload or selecting Application>Configuration upload we begin transmission of the configuration from the CU to the file in the PC. Upload ends by displaying a message containing the name and location of the generated configuration file:

    File .\cnf\anynet\69000006.cnf created.
    UPLOAD FINISHED

    Press Alt+X to end program Netcnf.

  • If we start the program with parameter application Upload -aU , it starts running without pressing icon:

    Netcnf -aU

3.1.2. Remotely for 1 CU

For downloading the configuration from a remote CU we need to be locally connected to a CU which is connected to the remote CU via the MORSE network. The Netcnf application can be started in one of the following ways:

  • Start Netcnf, click on icon Destination local , addr://local will appear in the window, replace word local by the destination address and press Enter, e.g. addr://690F0003 and press Enter

    Click on icon to start downloading the configuration, which is stored in directory .\cnf\anynet\

  • Use parameter -da with the destination address, e.g.:

    Netcnf.exe -da69000007

    Click on icon to start downloading the configuration.

  • Use parameter -aU with the destination address (application Upload), e.g.:

    Netcnf.exe -aU69000006

    Netcnf starts running without clicking on the mouse. This is suitable method when generating batch files.

3.1.3. Remotely for a group of CUs

For downloading configurations from more CUs their addresses first need to be added to a text file, e.g. aaa.txt:

69000007
69000008
6900001A

Then we can use some of the following methods:

  • Netcnf – start the application.

    Click on icon Destination file to open the dialogue window. Select a file, e.g. aaa.txt, which contains one or more destination addresses.

    Click on icon to start downloading configurations.

    Configurations will be successively downloaded from these CUs and uploaded to the new directory .\cnf\aaa\.

  • Start Netcnf with parameter -df and file, e.g. bbb:

    Netcnf -dfbbb

    File bbb.txt contains the addresses and is located in directory .\net\, i.e. .\net\bbb.txt.

    Click on icon to start downloading configurations.

    Files with configurations are uploaded to directory .\net\bbb\

  • Use parameter application Upload -aU:

    Netcnf -dfbbb -aU

    Upload begins without clicking the mouse, files are uploaded to .\net\bbb\

3.1.4. Table of options for Netcnf Upload

Local UploadResult saved it:
Netcnf click Upload.\cnf\anynet\xxxxxxxx.cnf
Netcnf -aU.\cnf\anynet\
Remota Upload for 1 CU 
Netcnfclick Dest local > addrclick Upload.\cnf\anynet\
Netcnf-daaddressclick Upload.\cnf\anynet\
Netcnf-daaddress-aU.\cnf\anynet\
Remote Upload for more CUs 
Netcnfclick Dest file > aaa.txtclick Upload.\cnf\aaa\
Netcnf-dfbbbclick Upload.\cnf\bbb\
Netcnf-dfbbb-aU.\cnf\bbb\

3.2. Download configuration form PC to CU

3.2.1. Locally

  • Start program Netcnf.exe with CU connected via the service cable. Click on icon Configuration download to open the dialogue window. Select the configuration file, which should be sent to the CU. Netcnf makes connection with the CU and a message appears:

    Acknowledgement for local uploading of configuration

    Fig. 3.2: Acknowledgement for local uploading of configuration

    By acknowledging YES downloading begins. Then the following question appears:

    Acknowledgement for ignoring calibration

    Fig. 3.3: Acknowledgement for ignoring calibration

    By acknowledging YES we jump the part of the configuration file which contains the calibration constants of the radio part. These constants are individually set up in each CU during manufacture.

    After downloading has finished the following message appears: DOWNLOAD FINISHED. By pressing Alt+X we exit Netcnf.

    The configuration has now been uploaded to the S-RAM (previously FLASH) in the CU. It is uploaded into RAM when restarting (switching the CU on and off). It is possible to restart from Setr using command sgB.

  • If we start the program with the parameter application Download -aD with the address of the file which contains the configuration then it begins running without clicking the icon:

    Netcnf -aDcnf/anynet/690F0001.cnf

    Acknowledge download with YES and ignore calibration with YES.

3.2.2. Remotely for 1 CU

For transfer the configuration to the CU we need to determine the address of the destination CU and the file with the configuration which needs to be written:

  • Start Netcnf, click on icon Destination local , addr://local will appear in the window, replace word local with the destination address and press Enter, e.g. addr://690F0003 and press Enter

    Continue by clicking icon Configuration download and select the file with the configuration. Acknowledge the control question by clicking YES and ignore calibration by clicking YES.

    Note: until a hw or sw reset the remote station continues to work with the old configuration. Using Setr we can communicate with it and even modify the configuration (e.g. the address). Only after a sw reset sgB does the new configuration appear.

  • Start Netcnf using the command with the destination address in parameter:

    Netcnf -da690F0003

    Continue by clicking icon Configuration download and select the file with the configuration. Acknowledge download by clicking YES and ignore calibration by clicking YES.

  • It is possible to designate the source file with the configuration by parameter -aD:

    Netcnf -da690F0003 -aDcnf/anynet/690F0003.cnf

    Netcnf starts running and we only acknowledge download by clicking YES and ignore calibration by clicking YES.

3.2.3. Remotely for a group of CUs

Add addresses to a text file, e.g. aaa.txt :

690F0002
690F0003

Continue in any of the following ways:

  • Start Netcnf and using icon Destination file select file aaa.txt. Continue by clicking icon Configuration download . A question appears:

    Selection of configuration

    Fig. 3.4: Selection of configuration

    After selecting YES select the configuration file for the first node. Its address is given in the header of the table for selection of the configuration file:

    Selection of the configuration file

    Fig. 3.5: Selection of the configuration file

    Acknowledge download by clicking YES and ignore calibration by clicking YES.

    Once downloading has finished for the first node the selection table once again appears for the next node in sequence.

    If we answered NO to the previous question Do you want to upload a different configuration to each node ? (yes/no), then the configuration selected as the first configuration is uploaded to each node according to aaa.txt.

  • Add file aaa.txt to directory .\net\, thus .\net\aaa.txt

    Start Netcnf with parameter -df and file aaa:

    Netcnf -dfaaa

    Continue by clicking icon Configuration download . Acknowledge individual configuration by clicking YES, select cnf_file.cnf, acknowledge download by clicking YES and ignore calibration by clicking YES. Repeat selection of the file for other addresses from the list aaa.txt.

  • Add file aaa.txt to directory .\net\, thus .\net\aaa.txt

    Files with configurations can be written, for example, to directory net1:
    .\cnf\net1\690F0002.cnf and .\cnf\net1\690F0003.cnf.

    Start Necnf with parameters:

    Netcnf -dfaaa -aD.\cnf\net1\690F0002.cnf

    Continue without clicking the mouse. If configurations for addresses listed in  aaa.txt are prepared in directory .\cnf\net1\ then simply acknowledge the steps by pressing Enter.

3.2.4. Table of options for Netcnf Download

Local DownloadSource of config. dataDownSkip
Netcnf click Downloadchoice file.cnfYESYES
Netcnf -aDsoubor.cnf   YESYES
      
Remote Download for 1 CU     
Netcnfklik Dest local > adresaclick Downloadchoice file.cnfYESYES
Netcnf-daaddressclick Downloadchoice file.cnfYESYES
Netcnf-daaddress-aDfile.cnf   YESYES
      
Remote Download for more CU Diff conf   
Netcnfclick Dest file > aaa.txtclick DownloadYESchoice file.cnfYESYES
Netcnf-dfbbbclick Download choice file.cnfYESYES
Netcnf-dfbbb-aDfile.cnfNOchoice file.cnfYESYES
     YESYES

3.2.5. Parameters for Netcnf.exe

Parameters can be used at work from command line.

  • Common – see chapter Section 1.2.4, “Common parameters for all applications”

  • Special

    • -dl local access

      • Upload (download) configuration from locally connected CU.

      • Example: -dl

      • Default value: on

      • Configuration is saved into: .\cnf\anynet\address.cnf

      • Example of command from command line with application of default value -dl: netcnf

    • -da[address] remote access

      • Upload (download) configuration from remote CU of given address.

      • Example: -da69DF1234

      • Configuration is saved into: .\cnf\anynet\69DF1234.cnf

      • Example of command from command line: netcnf -da69DF1234

    • -df[file] communication with CUs according to file

      • Netcnf.exe uploads configurations for all addresses (one by one) from abc.txt file. The file abc.txt must be put in .\net directory. If you do not specify filename, Netcnf looks for .\net\anynet.txt

      • Example: -dfabc

      • Configurations are saved into: .\cnf\abc\*.cnf (* – for every address from abc.txt one file).

      • Example of command from command line: netcnf -dfabc

    • -aU application Upload

      • Accomplishes the configuration upload without mouse click, suitable for the batch files.

      • Example: -aU

      • Example of command from command line: netcnf -aU

    • -aD[addr.cnf] application Download local

      • Accomplishes the configuration download of file addr.cnf into locally connected CU without mouse click.

      • Example: -aD69DF1234.cnf

      • Netcnf.exe looks for file address.cnf in working directory. It is possible to specify complete path, e.g. -aDc:\com\morse\cnf\anynet\69DF8606.cnf or remaining part of the path only (e.g. from morse directory): -aDcnf\anynet\69DF8606.cnf

      • Example of command from command line: netcnf -aDcnf\anynet\69DF8606.cnf

    • -aD[address1.cnf] -da[address2] application Download remote

      • Download the file address1.cnf into remote CU address2

      • Example: -da69DF1245 -aDcnf\anynet\69DF1234.cnf

      • Example of command from command line: Netcnf -da69DF1245 -aDcnf\anynet\69DF1234.cnf

©  2024 RACOM s.r.o. All Rights Reserved.