ASR6501

From ElectroDragon
Jump to navigation Jump to search

SDK

Compiler

  • PSoc Creater 4.2 -> PSoCCreatorSetup_4.2_es100_b641.exe
  • can support to -> Keil

Keil

  • User external GCC -> C:\Program Files (x86)\Cypress\PSoC Creator\4.2\PSoC Creator\import\gnu\arm\5.4.1\
  • Preprocesser Symbols: CY_CORE_ID=0 CONFIG_LORA_USE_TCXO REGION_CN470 CONFIG_MANUFACTURER='\"ASR\"' CONFIG_DEVICE_MODEL='\"6501\"' CONFIG_VERSION='\"v4.2\"'
  • 优化级别,请选择”Level 2(Size)”。
  • 增加 Misc Controls

-ffunction-sections -ffat-lto-objects -fno-common -fno-builtin-printf -fno-builtin-fflush -fno-builtin-sprintf -fno-builtin-snprintf -Wno-strict-aliasing

Programmer

  • KitProg 2 / 3 / 4 (Tested Working)
  • DAPLink CMSIS-DAP (HID V1 version may not working, Not yet test V2 CDC version)
  • J-LINK (Tested Working)
  • UART bootloader supported from SDK 4.0

SDK

Third-Party

AT Commands Examples

Basic Enquiry

  • AT+CGMI?
  • AT+CGMM?
  • AT+CGMR?
  • AT+CGSN?
  • AT+CGBR?
  • AT+CJOINMODE?

Join LoRaWan Network OTAA

  • AT+CRESTORE //Initiate LM502 module.
  • AT+CJOIN=1,1,10,8 // Enable OTAA Join to LoRaWAN network, join periodically 10s. max retry 8.If module is reboot, this command need to run again to join network,
  • AT+DTRX=0,0,10,0123456789 // Send a string 0123456789

Join LoRaWan Network via ABP

  • AT+CRESTORE // Initiate LM502 module.
  • AT+CJOINMODE=1 //Set to ABP join, (If LM502 is reboot, user need to run these command again)
  • AT+DEVADDR=xxxxxxxx // xxxxxxxx is the Dev Addr from the TTN page.
  • AT+DTRX=0,0,10,0123456789 // Test command, send “0123456789” to LoRaWAN server