Skip to content

Commit

Permalink
Update for Spring Launch. Includes all new modules, new example folde…
Browse files Browse the repository at this point in the history
…r structure and changed QuickStarts (separated by WisBlock groups)
  • Loading branch information
beegee-tokyo committed Apr 11, 2021
1 parent 0949ef5 commit 0a611f0
Show file tree
Hide file tree
Showing 2,357 changed files with 1,540,777 additions and 7,963 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
## Installation of RAK11200 Board Support in PlatformIO(Just for test now)

### Install PlatformIO

First of all, install VS code which is a great and open source tool, and you can download it here:

https://code.visualstudio.com/

After installing VS code, you can search PlatformIO and install it in the Extensions item.

### Install Espressif 32 Arduino framework

After installing PlatformIO, you can see the PlatformIO icon and open it as follow

Open "Platforms" in PlatformIO and search "Espressif" as follow

You can see there are several items, just click "Espressif 32" item and "Install" it as follow

### Add WisBlock Core RAK11200 to the platform

Copy the file **`wiscore_rak11200.json`** to the boards folder of the espressif32 platform folder.

The path maybe like:

- Windows: %USER%.platformio\platforms\espressif32\boards
### Add WisBlock Core RAK11200 to the framework

Refer to the modification method of Arduino IDE

The path of framework maybe like:

- Windows: %USER%.platformio\packages\framework-arduinoespressif32



39 changes: 39 additions & 0 deletions PlatformIO/RAK11200/wiscore_rak11200.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
{
"build": {
"arduino":{
"ldscript": "esp32_out.ld"
},
"core": "esp32",
"extra_flags": "-DARDUINO_ESP32_DEV",
"f_cpu": "240000000L",
"f_flash": "40000000L",
"flash_mode": "dio",
"mcu": "esp32",
"variant": "WisCore_RAK11200_Board"
},
"connectivity": [
"wifi",
"bluetooth",
"ethernet",
"can"
],
"frameworks": [
"arduino",
"espidf"
],
"name": "WisCore RAK11200 Board",
"upload": {
"flash_size": "4MB",
"maximum_ram_size": 327680,
"maximum_size": 4194304,
"protocols": [
"esptool",
"espota",
"ftdi"
],
"require_upload_port": true,
"speed": 460800
},
"url": "https://www.rakwireless.com",
"vendor": "RAKwireless"
}
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ extern "C"
#define LED_GREEN PIN_LED1
#define LED_BLUE PIN_LED2

#define LED_STATE_ON 1 // State when LED is litted
#define LED_STATE_ON 0 // State when LED is litted

/*
* Buttons
Expand Down
File renamed without changes.
201 changes: 125 additions & 76 deletions README.md

Large diffs are not rendered by default.

Binary file added assets/repo/RAK12003.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/repo/RAK12500.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/repo/RAK14000.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/repo/RAK15000.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/repo/RAK15001.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/repo/RAK18000_Back_Front.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/repo/RAK18001.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/repo/RAK19002.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/repo/rak11200-Boot0-for-flashing.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/repo/rak11200-bottom.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/repo/rak11200-top.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/repo/rak11200.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
57 changes: 57 additions & 0 deletions bootloader/RAK2305/AT_Command_Test/AT_Command_Test.ino
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
/**
* @file AT_Command_Test.ino
* @author rakwireless.com
* @brief ESP32 AT command example
* Please see the detailed commands from
* https://docs.espressif.com/projects/esp-at/en/latest/AT_Command_Set/index.html
* @version 0.1
* @date 2020-08-21
*
* @copyright Copyright (c) 2020
*
*/

void setup()
{
time_t timeout = millis();
// Open serial communications and wait for port to open:
Serial.begin(115200);
while (!Serial)
{
if ((millis() - timeout) < 5000)
{
delay(100);
}
else
{
break;
}
}

Serial.println("================================");
Serial.println("RAK2305 AT CMD TEST!");
Serial.println("================================");

//esp32 init
Serial1.begin(115200);
}

void loop()
{
uint8_t resp;
uint8_t snd;

// wait for response from esp32
while (Serial1.available() > 0)
{
resp = (uint8_t)(Serial1.read());
Serial.write(resp);
}

// wait for AT cmd which user send with serial tool
while (Serial.available() > 0)
{
snd = (uint8_t)(Serial.read());
Serial1.write(snd);
}
}
39 changes: 39 additions & 0 deletions bootloader/RAK2305/Burn firmware to RAK2305.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@


# Burn firmware to RAK2305

RAK2305 has two firmwares.

[RAK2305-Basic-WIFI-BLE-AT.bin](./RAK2305-Basic-WIFI-BLE-AT.bin) with AT commands of Basic, Wifi and BLE. It is a factory firmware.

[RAK2305-Basic-WIFI-HTTP-MQTT-AT.bin](./RAK2305-Basic-WIFI-HTTP-MQTT-AT.bin) with AT commands of Basic, WiFi, HTTP and MQTT. It is not including BLE Commands. If you want to use MQTT and HTTP commands, you should download this firmware to RAK2305 firstly.



The download steps are as below.

1. Connect the USB-convert-Serial tool with RAK2305.

![image-20210315151415710](assets/image-20210315151415710.png)



2. Download [ESP32 Flash Download Tool]([Tools | Espressif Systems](https://www.espressif.com/en/support/download/other-tools)) and install it.

![image-20210315143004972](assets/image-20210315143004972.png)

3. Open download tool.

![image-20210315143246757](assets/image-20210315143246757.png)



![image-20210315143321875](assets/image-20210315143321875.png)

4. Select firmware and configure the tool.

![image-20210315144815227](assets/image-20210315144815227.png)

5. Click 'start' and wait until the download finished.

![image-20210315144542809](assets/image-20210315144542809.png)
File renamed without changes.
Loading

0 comments on commit 0a611f0

Please sign in to comment.