0% found this document useful (0 votes)
226 views

Asr6501 Asr6502 Qa

The document provides information about ASR6501 and ASR6502 chips and development boards, including how to use the boards, differences between the chips, switching between LinkWAN and LoRaWAN protocols, and SDK issues and solutions.

Uploaded by

navivoc270
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
226 views

Asr6501 Asr6502 Qa

The document provides information about ASR6501 and ASR6502 chips and development boards, including how to use the boards, differences between the chips, switching between LinkWAN and LoRaWAN protocols, and SDK issues and solutions.

Uploaded by

navivoc270
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 13

ASR Microelectronics Confidential

Secret Level: Top-Secret ( ) Secret ( √ ) Internal Data (√) Open ()

Document Number: (Chip Type) –ASR6501/ASR6502(English、Digital)

ASR6501_ASR6502_QA
File Status: Current Version: V0.2

[ ]Be Modifying Author: ASR LoRa Design Team

[√]Official Release Start Date: 2018-5-16

Review:

Finish Date: 2018-11-27

ASR Microelectronics Co., Ltd

(All rights reserved; those responsible for unauthorized reproduction

will be prosecuted)

1 / 13
ASR Microelectronics Confidential

Version History
Version Update date Author Update Description
V0.1 2018.05.16 ASR LoRa Design Team Created
V0.2 2018.05.22 ASR LoRa Design Team 1. Add HW update by Shiduo Yang
2. Add SW update by Ruilin Hao

2 / 13
ASR Microelectronics Confidential

Table of Contents
1. HOW TO USE ASR6501 DEVELOPMENT BOARD ................................................................................................. 4

2. SOFTWARE SDK PROBLEM ...................................................................................................................................... 4

3. SDK4.0 RELEASE NOTE ............................................................................................................................................. 4

4. DEVELOPMENT ENVIRONMENTAL ISSUES ........................................................................................................ 4

5. HOW TO SWITCH ASR SDK FROM LINKWAN TO LORAWAN ......................................................................... 4

6. DIFFERENCE BETWEEN LINKWAN AND LORAWAN ........................................................................................ 6

7. CAN USERS BYPASS THE INTERNAL MCU OF CYPRESS AND USE THE EXTERNAL MCU TO
CONTROL LORA? ............................................................................................................................................................ 6

8. DIFFERENCE BETWEEN ASR6501 AND ASR6502................................................................................................. 7

9. CAN USERS OPERATE THE REGISTER OF SX1262? ........................................................................................... 7

10. DIFFERENCES BETWEEN ASR6501 AND ASR6502 DEVELOPMENT BOARDS ........................................... 7

11. SDK 4.0 COMPILER FAILED .................................................................................................................................... 8

12. HOW TO TURN DEBUGGING ON OR OFF? ......................................................................................................... 8

13. HOW TO MODIFY SDK TO SUPPORT XO CRYSTAL OSCILLATOR? ............................................................ 9

14. HOW TO TURN ON LOW POWER CONSUMPTION?....................................................................................... 10

15. HOW TO CONFIGURE AUTOMATIC NETWORKING? ................................................................................... 10

16. HOW TO CHANGE THE DEVICE INFORMATION IN THE CODE? .............................................................. 11

17. HOW TO USE ABP MODE? ..................................................................................................................................... 11

18. HOW TO CONFIGURE THE SAME-FREQUENCY AND DIFFERENT-FREQUENCY NODES? ................ 11

19. HOW TO CONFIGURE CLASS B NODES? .......................................................................................................... 11

20. HOW TO CONFIGURE HEAP SIZE? .................................................................................................................... 11

21. CAN'T BURNED THE DEVICE? ............................................................................................................................ 12

22. HOW TO ENCRYPT TRIPLE INFORMATION?.................................................................................................. 12

23. HOW TO CONFIGURE TO JOIN THE NETWORK? .......................................................................................... 12

24. WHAT IS THE DIFFERENCE BETWEEN ASRLIB.A AND ASRLIB_SMALL.A? .......................................... 13

3 / 13
ASR Microelectronics Confidential

1. How to Use ASR6501 Development Board


The development board released on June 21 has downloaded the software “image” in the chip, using
the AT command to operate the chip.
Please refer to “Application note” and “AT-Commands-Introduction”. "Application note" describes
how to use the development board hardware. After the development board is powered on, ASR6501 chip
is controlled by the AT command through the serial port, and some related tests are done.

2. Software SDK Problem


SDK 4.0 released on September 21 can operate the chip through the Cypress PSoC Creator development
environment. Software SDK alpha version is uploaded on the github, path:
https://github.com/asrlora/alios-asr-lora, and refer to the manual “ASR6501 SDK” to operate the chip.

3. SDK4.0 release note


The main updates of V4.0 include:
1. Add the CLASS B support;
2. Eliminate the warning information;
3. Add the UART upgrade function;
4. Add the function of triple encryption;
5. Add some AT commands, such as multicast, device key encryption, etc.
6. Repair and optimize the Bug;
a) Modify the RTC timer to make the timing more accurate.
b) Modify the low power mode and support UART, GPIO and Timer wake-up.
c) Solve the occasional network access failure problem;
d) Repair CN470 access related issues, such as channel mask, ABP, etc.

4. Development Environmental Issues


ASR6501 chip uses the Cypress PSoC Creator development environment. If users need the KEIL or IAR
development environment, ASR will provide the reference for the transformation process from PSoC Creator to
KEIL development environment. See the "Keil Engineering. zip"

5. How to switch ASR SDK from LinkWAN to LoRaWAN


ASR SDK supports the standard LoRaWAN and Ali LinkWAN. The switching method is as follows:
Our protocol stack partially supports SDK 4.0 switching to LoRaWAN. Just change the macro of CN470A to CN470.
The part of accessing needs to be modified by customers themselves. “SDK release note” also introduces the
switching method.

4 / 13
ASR Microelectronics Confidential

The “CN470.c” file is found in the following directory.

5 / 13
ASR Microelectronics Confidential

6. Difference between LinkWAN and LoRaWAN


a. Differences in node frequency planning: LinkWAN divides 470-510 bands into 16 groups, specifying the
configuration of the same-frequency and different-frequency nodes.
b. The rate specifies that the nodes work in DR2-DR5. Except for special nodes, DR0 and DR1 are not
recommended.
c. LinkWAN specifies the process of node access, giving the priority to existing band scanning. If it is
unsuccessful, the default band (1A2) scanning is used. If it is still unsuccessful, then multi-band scanning is
used.
d. Specify a maximum length of 51 bytes for business packages.

7. Can users bypass the internal MCU of Cypress and use the

external MCU to control LoRa?


Users can bypass the MCU, and remove R1 and R2 from the module to cut off the MCU power.

6 / 13
ASR Microelectronics Confidential

8. Difference between ASR6501 and ASR6502


ASR6501 and ASR6502 are only the difference of package size and pin number, and there is no difference in
product performance. The differences in the number of pins between ASR6501 and ASR6502 are listed below.
ASR6502-1 and ASR6502-2 are the same chip, the difference is whether SPI is configured.

9. Can users operate the register of SX1262?


This part of SX1262 is sealed, but users can call the interface.

10. Differences between ASR6501 and ASR6502 development

boards
ASR LoRa Chip Development Board includes the base board and sub-board. The base board is the download board

7 / 13
ASR Microelectronics Confidential

and the sub-board is the demo module, as shown in the figure below.

ASR6501 and ASR6502 share one base board, sub-boards are different. Therefore, the reference schematic
diagram of the sub-board is given separately.

11. SDK 4.0 Compiler Failed


After opening the project, the compiler prompts the following error:

This is because SDK 4.0 adds bootloader, which requires compiling bootloader before compiling the alios_small
project.

12. How to turn debugging on or off?


The debugging settings are shown below. The SWD option is to open debugging and the GPIO option is to
close debugging.

In SDK V4.0, UART bootloader is added. When debugging, it is necessary to disable the Bootloadable first,
and comment out the call to Bootloadable_1_Load() in “asr_board.c”.

8 / 13
ASR Microelectronics Confidential

13. How to modify SDK to support XO crystal oscillator?


ASR650X uses the TCXO crystal oscillator by default. If users want to use the XO crystal oscillator, please
remove CONFIG_LORA_USE_TCXO from the macro definition of Project->Build Settings.

9 / 13
ASR Microelectronics Confidential

14. How to turn on low power consumption?


After entering the low power consumption, it is necessary to wake up before testing. In order to test
conveniently, SDK turns off the low power function by default. Please remove LOW_POWER_DISABLE from the
macro definition of Project->Build Setting.
After the device enters the low power consumption, it can use any character to wake up the device. However,
when transmitting over 40 kbps, the UART initial partial bytes may be transmitted by mistake and the AT
command will return an error. It is recommended to use "000000000D0A " (hexadecimal system). After waking up,
the AT+CLPM command can be used to make the device enter the deep sleep status again.

15. How to configure automatic networking?


For testing convenience, configure with AT command by default. There are two ways to access the network
automatically after powered-on:
 AT command configuration
AT+CJOIN=1,1,8,8
Using the command “AT+CJOIN” can access the network automatically. The specific parameter is
described in the AT command document.
 Code modification
Modify “LWAN_DEV_CONFIG_DEFAULT” in the function “init_lwan_configs” of
“linkwan.c”.

10 / 13
ASR Microelectronics Confidential

16. How to change the device information in the code?


 AT command configuration
OTA mode uses the commands “AT+CDEVEUI”, “AT+CAPPEUI” and “AT+CAPPKEY”, ABP mode uses the
commands “AT+CDEVADDR”, “AT+CNWKSKEY” and “AT+CAPPSKEY”.
 Code modification
For device triple information, please modify “LWAN_DEV_KEYS_DEFAULT” in the function
“init_lwan_configs”.

17. How to use ABP mode?


 AT command configuration
Use the commands “AT + CDEVADDR”, “AT + CNWKSKEY” and “AT + CAPPSKEY” to modify the device
information, and use the command “AT + CJOINMODE” to modify the access mode.
 Code modification
Modify “LWAN_DEV_CONFIG_DEFAULT” and “LWAN_DEV_KEYS_DEFAULT” in the function
“init_lwan_configs”

18. How to configure the same-frequency and different-frequency

nodes?
 AT command configuration
AT+CULDLMODE=2
 Code modification
Modify “LWAN_DEV_CONFIG_DEFAULT” in the function “init_lwan_configs”.

19. How to configure CLASS B nodes?


 AT command configuration
Before joining, use the command “AT+CCLASS=1” to modify the device to CLASSB.
 Code modification
Modify “LWAN_DEV_CONFIG_DEFAULT” in the function “init_lwan_configs”

20. How to configure Heap Size?


At present, the heap size is smaller. If more heap memory is used in the project, please increase the heap size
here.

11 / 13
ASR Microelectronics Confidential

In addition, if users need to change all remaining RAM into heap, users can define the variable
“_cy_heap_size” in “cm0plusgcc.ld”, and then replace “CYDEV_HEAP_SIZE” in “g_mm_region” with
“_cy_heap_size” in “soc_impl.c”.

21. Can't burned the device?


When burning, the base board should normally turn on two green lights and one red light. If only one green
light appears in the following picture, please press the "SW716" button to reset. Users can burn it when the green
light is on.

22. How to encrypt triple information?


Please use the command “AT + CKEYSPROTECT” to encrypt triple information. See the AT command document
for specific usage.

23. How to configure to join the network?


 Modify node device triple information

12 / 13
ASR Microelectronics Confidential

Use the commands “AT+CDEVEUI”,” AT+CAPPEUI” and “AT+CAPPKEY” to modify the device triple
information
 Modify the node configuration of same-frequency and different-frequency(CN470A)
Ali LinkWAN protocol specifies that nodes are divided into same-frequency nodes and
different-frequency nodes, which can be configured by “AT+CULDLMODE”. The standard LoRaWAN
CN470 does not need to be configured.
 Modify the frequency group mask of the node according to the gateway settings
CN470 and CN470A can use “AT+CFREQBANDMASK” to configure the frequency group mask. Each bit of
the mask is denoted by one frequency group (8 frequency points), up to 128 frequency points. Please
refer to AT command documentation for detailed parameters.
 Use AT command to join the network
Use the command “AT + CJOIN” to activate the joining.

24. What is the difference between AsrLib.a and AsrLib_small.a?


ClassB and AT test command code are removed from AsrLib_small.a, and the code size can be smaller.

13 / 13

You might also like