ACDC╡τ╘┤+PLC═╕┤½░µ▓┘╫≈╓╕╥²V1 3

You might also like

You are on page 1of 18

Machine Translated by Google

3121N-H
AC/DC power supply +PLC transparent version operation guide

Version: 1.3

Date: 2020-05-28
Machine Translated by Google

3121N-H+ AC/DC Power Supply Transparent Edition Operation Guide

revision history

A revision record accumulates descriptions of each documentation update. The latest version of the documentation contains updates from all previous versions of the

documentation.

document version

Version date modify the content

V1.0 2020-03-13 The first release

V1.1 2020-04-01 Added AT command set operating

instructions Added Assistant operating instructions

4.5 Use of sending and receiving commands in the whole network

4.5.1 Delay Test for Sending and Receiving Commands in the Whole Network

V1.2 2020-05-28 4.6 Point-to-point communication

4.7 Firmware Upgrade

4.8 Write NV on the whole network to modify parameters

4.8.2 Other parameter modification

V1.3 2021-01-25 Add new module firmware identification number


Machine Translated by Google

3121N-H+ AC/DC Power Supply Transparent Edition Operation Guide

Table of contents

1 Overview................................................ ................................................... ..............1 2 Pin

definition................................... ................................................... ...................1 Definition of


2.1 2.2 Definition
communication
of Debug
pins...................................
pins........................... ...................................................
...................................................
.....1
..............1
3 Firmware
Burning ................................................ ................................................... ................................
2Firmware programming wiring................................... ................................................... ...................2
4 Assistant
3.1 3.2
software
Firmware
use...................................
Burning Software Operation.............
...................................................
...................................................
.3 4.1 Assistant .....3
software wiring...................................... ...................................3 4.2
Connections................................... ................................... ................................................... .....3
4.3 Network Topology Information..................... ................................................... ...........4 4.4
Whitelist Management................................... ................................................... .....4 4.5 Using the
whole network to send and receive commands................................... ................................................6
4.5.1 Full Network sending and receiving command delay test................................... ................................7
4.6 Point-to-point communication.....................................7 ................................................... ................................7
4.7 Firmware upgrade................................ ................................................... ...................................8
4.8 Write NV on the whole network and modify
parameters........................... ................................................... ................8 4.8.1 Modify MAC
address..................................... ................................................... ..............8 4.8.2 Other parameter
modification..................................... ................................................... .....9 5 -connection
test................................... ................................................... ...................................12

5.1 Connection test wiring...................................... ................................................12 5.2 Software


preparation and configuration................................... ...................................13 5.3
Testing................... ................................................... ...................................................13 6
Application Tests... ................................................... ...................................14 6.1 External MCU
connection test................................... ...................................14 6.2
Testing................... ................................................... ...................................14 7 AT instruction
set operation.... ................................................... ...................................14 Test
and exit Wiring...................
the AT command control ...................................................
mode........ ...................................................
................................14
..........14
7.1 7.2 Enter
Machine Translated by Google

3121N-H+ AC/DC Power Supply Transparent Edition Operation Guide

1 Overview

This operation guide is applicable to the use of the 3121N-H+ AC/DC power supply transparent transmission version, and no specific instructions will be given for unused function pins.

2. Pin definition

2.1 Definition of communication pins

Instructions: 1. If P5 is not used for testing, it is not

necessary to connect it. 2. P1/P10 is recommended to be grounded. When working with RS232

serial tools, a grounding line is required. 3. FG can be disconnected if unconditional . foot definition

Note: Used when using HiAssistant_b010, HiBurn software configuration

Page 1
Machine Translated by Google

3121N-H+ AC/DC Power Supply Transparent Edition Operation Guide

3. Firmware burning

3.1 Firmware programming

wiring 1. L/N is connected to 220V AC (as shown in the figure below)

2. Use three lines to connect the serial port tool and the corresponding debugging port of the

module. TXD of the serial port tool is connected to the module RXD, RXD is connected to the module TXD, and GND is connected to the module GND (as shown in the

figure below)

page 2
Machine Translated by Google

3121N-H+ AC/DC Power Supply Transparent Edition Operation Guide

1.2 HiBurn firmware burning software operation

1. Connect the serial port tool to the computer and power on the

PLC. 2. Select the corresponding serial port number. 3. Select

RomBoot for blank module burning, and FlashBoot for firmware version update. 4. Click Connect and

display hisilicom$, then the connection is successful. , power on again. 5. Select the .bin file that needs to be burned or upgraded 6. Enter the

burning command burn 2000000 0 7f000 and click send 7. Click to transfer the file, wait for the progress bar to finish, and the burning is successful (see

the figure below for details)

4. Assistant software use


4.1 Wiring before using the Assistant software

Assistant wiring is the same as firmware burning wiring, please refer to "3.1 Firmware Burning Wiring" method 4.2 Connection 1. Power on the

module, start HiAssistant, click the login button (as shown in the figure) to open the serial port setting dialog box

Page 3
Machine Translated by Google

3121N-H+ AC/DC Power Supply Transparent Edition Operation Guide

2. Select the correct serial port number, enter the password (the default password is cih518@AMR), and click OK

3. The login success button turns green (as shown below)

4.3 Network Topology

Information 1. Double-click "Network Topology Information", right-click on the blank space, and select "Refresh" to check whether the CCO or

STA is in the network, or refresh to view information such as channel quality and attenuation

4.4 Whitelist management

1. Open the whitelist Click

"Open Whitelist" to open the whitelist. If no whitelist address is added, the STA cannot be viewed . You can click "Read Whitelist" to view the

list of added whitelist MAC addresses

page 4
Machine Translated by Google

3121N-H+ AC/DC Power Supply Transparent Edition Operation Guide

2. Whitelist file format Create a new

TXT file, change the suffix name to .csv, and enter the MAC address that needs to be added to the whitelist in the format shown in the figure below

3. Send the whitelist Select

the path of the whitelist file, click "Download the whitelist" and the output column below will prompt the number of addresses that have been

successfully imported

page 5
Machine Translated by Google

3121N-H+ AC/DC Power Supply Transparent Edition Operation Guide

4. Open "Network Topology", right-click the blank space to refresh, and you can see that the STA with the added MAC address is already in the

network

5. Clear the whitelist If

you do not need the whitelist function, click "Clear Blank List" and then click "Close Whitelist"

4.5 Sending and receiving commands of the whole network

Use the method of sending and receiving commands of the whole network:

1. Double-click "Entire network command sending and receiving" to pop up the entire network receiving command sending and receiving

interface 2. Select the desired command in the "Command ID" drop-down box 3. Click "Read Node" 4. Check the node MAC that needs to be

viewed and tested 5. Click "Send Command" 6. After sending successfully, the return value of the command will be displayed under VALUE 7.

Double-click the VALUE value, and the detailed value can be viewed in the pop-up Dialog dialog box

Using the entire network to send and receive commands, you can perform functions such as version number viewing, memory statistics viewing, delay, and sending and receiving statistical performance tests. For specific command

functions, please see the figure below and select the command according to your needs

Page 6
Machine Translated by Google

3121N-H+ AC/DC Power Supply Transparent Edition Operation Guide

4.5.1 Delay Test for Sending and Receiving Commands in the Whole Network

Use the PlcTestFrame command in the whole network sending and receiving command to test the delay and success rate of mutual transmission between PLC

modules. Test method: 1. Open the entire network sending and receiving command interface 2. Select "Command ID": PlcTestFrme 3. Check "Performance

Test".

Send 4. Read the node

5. Check the required test node 6. Set the

number of concurrency and the length of the

message 7. Click "Send Command" Check "Performance Test" and need to stop manually

4.6 Point-to-point

communication 1. Double-click "Point-to-point communication" to open the point-to-point communication panel,

as shown in the figure below: 2. Fill in the MAC address to be communicated in the MAC address column, which supports up to

three jumps. 3. Fill in the data in the content of the sending message, up to 384 bytes. 4. Click Send, and you will receive the

same reply message in the receiving area.

4.7 Firmware Upgrade

The firmware upgrade is used to update the target file as a business upgrade file, which is used for users to update when there is a business incremental update

or modification of the module. 1. Double-click "Upgrade" to open the upgrade interface 2. Select the upgrade file

page 7
Machine Translated by Google

3121N-H+ AC/DC Power Supply Transparent Edition Operation Guide

3. Select the upgrade method 3.1

Whole network upgrade, all terminals are upgraded. No need to choose 3.2 Single-point

upgrade, click a single point to upgrade 3.3 List upgrade, check the PLC in the list to upgrade

as required

4. Click "Start Upgrade", after the upgrade starts, "File Transferring" will display the number of transfers, and "Progress" will display the progress of the transfer.

Every time

5. After the file transfer is completed, upgrade verification is required. "Upgrade Verification" will display the number of verifications being performed. 6. "Upgrade

Successful" will display the number of successful upgrades. 7. Restart the upgraded PLC to update the data in the Assistant

4.8 Write NV on the whole network to modify parameters

Note: The NV item cannot be modified arbitrarily, please consult the FAE first, so as not to cause abnormal equipment. 1.

Double-click "Write NV on the whole network" to pop up the NV writing interface on the whole network 2. Select the

corresponding NV ID NV name

Function

0x3 Modify MAC and product type network

0x89 management initialization parameters (including initial frequency band and preferred

0xf network) user parameters. Including working mode, UART0 serial port parameters, etc. Adjust

0x24 the digital transmit power for the frequency band and adjust the analog transmit power for the

0x25 frequency band

3. Click "Read Node" 4. Get

the node list

5. Modify relevant ID value information

4.8.1 Modify MAC address 1. Select NV ID

"0x3" to read the node, check the PLC whose MAC address needs to be modified in the obtained list, and click

"Read NV"

page 8
Machine Translated by Google

3121N-H+ AC/DC Power Supply Transparent Edition Operation Guide

2. After reading successfully, double-click the data value under VALUE, and the "DiaLog" dialog box will pop up

3. MAC address modification: double-click the Value value of plc_mac, the 12 digits after the start of 0x in the Value is the mac address,

modify it 4. After confirming, click Write to NV, and it will prompt that the writing to NV is successful

5. Check the newly modified PLC, re-read the NV, the status changes to "read successfully", you can see that the modified NV information has

changed to the modified MAC value

Page 9
Machine Translated by Google

3121N-H+ AC/DC Power Supply Transparent Edition Operation Guide

4.8.2 Modifying Other Parameters NV

is a parameter of CCO and STA equipment, which can be modified according to actual needs. Commonly used NV commands are as follows: NV name

Function

0x3 Modify MAC and product type Network

0x89 management initialization parameters (including initial frequency band and preferred

0xf network) User parameters. Including working mode, UART0 serial port parameters, etc.

0x24 Adjust frequency band digital transmit power

0x25 Adjust frequency band analog transmit power

1. Read the NV node method. For specific steps and methods, please refer to 4.8 Write NV on the whole network to modify parameters. 2. Then read

NV to get the node to be modified in the list, choose to read NV, and double-click to open the corresponding dialog box after getting the VALUE value Check and modify the required

value, the specific method can refer to: 4.8.1 Modify MAC address

The specific parameters corresponding to NV ID are

as follows: 0x89: Network management initialization parameters (including initial frequency band and

preferred network) Modify frequency band: init_freq

page 10
Machine Translated by Google

3121N-H+ AC/DC Power Supply Transparent Edition Operation Guide

0xf: user parameter. Including working mode, UART0 serial port parameters, etc.

NV(0xf)

hw_ver Functional

hardware model 0: general hardware; 1: 3121N_H; 2:


3121N_HS; 3: 3121N_IEA;4: 3121N_IEB; 5:
3121N_ISC; The functions are related, and it is not
recommended to modify them at will.

Page 11
Machine Translated by Google

3121N-H+ AC/DC Power Supply Transparent Edition Operation Guide

work_mode Working

mode 0: transparent transmission mode; 1: protocol mode (not

used); 2: AT mode multicast_mac multicast address, does not support serial port parameters, baud

rate baund_rate
921600 and other serial ports Parameters, supports
data bits support2400,
6,7,8 9600, 38400,
serial port 115200, 380400,
parameters, stop bits

support 1,2

data_bits

stop_bits

parity Serial port parameters,

parity bit 0: no parity; 1: odd parity; 2: even

parity sta_join_notity network access notification 0: off; 1: on

0x24: The user adjusts the transmit power for the frequency band, the setting range [20 to -6], the value minus 1 is equivalent to the transmit power drop

1DB

0x25: User setting range [10 to 0], the value minus 1 is equivalent to a 2DB drop in transmit power (modification is not recommended)

page 12
Machine Translated by Google

3121N-H+ AC/DC Power Supply Transparent Edition Operation Guide

5. Online test
5.1 The connection mode of

online test refers to the pin definition, P3 is connected to TX, P8 is connected to RX, P1 is connected to GND, and L/N is connected to 220V AC

5.2 Software preparation and configuration

1. Two serial port adapters, one connected to CCO and one connected to STA, respectively connected to the computer, pay attention to distinguish between

CCO and STA 2. Start XCOM, select the corresponding serial port, and set the parameters such as baud rate and data bits as shown in the figure below

5.3 Test 1.

Enter the data and click send directly, and the corresponding terminal will receive the message 2. You can

choose to send regularly, set the cycle, and it will be sent automatically

Page 13
Machine Translated by Google

3121N-H+ AC/DC Power Supply Transparent Edition Operation Guide

Note: CCO and STA need to open two XCOMs to send each other, set the serial port numbers of CCO and STA respectively, and then send and

receive data after opening the serial port

6. Application testing

6.1 External MCU connection test 1. Both CCO/

STA are connected to an external MCU, and both CCO/STA are connected to the PlC communication serial port TX/RX.

Please refer to the figure below for specific pin definitions

2. Connect L/N to 220V AC respectively. 6.2

Test 1. The MCU at the STA end sends data to

the PLC, and check whether the MCU at the CCO end receives the data. For the method, see <5. Connection test>

7. AT command control operation

page 14
Machine Translated by Google

3121N-H+ AC/DC Power Supply Transparent Edition Operation Guide

After the PLC-IOT module is powered on, it works in transparent transmission mode by default. Users can connect to the UART0 serial port of the

module and switch to other working modes through serial port commands. This operation guide, AT command control mode operation methods and commands

are applicable to firmware version 2.10.02 and previous versions. 7.1 Test Wiring For testing wiring, please refer to 5.1 Online Test Wiring . AT command

control is implemented using XCOM software. For software configuration, please refer to 5.2 Software Preparation and Configuration. 7.2 Entering

and Exiting AT Command Control Mode

1. Input "+++" and the return value is OK, and the AT mode is turned on; 2. Input

"AT+EXIT" and the return value is OK, and the AT mode is exited, and then the data can be sent and received normally;

-END-

Page 15

You might also like