© Quectel Wireless Solutions Co., Ltd. All rights reserved
Presentation
EC25&EC21&EC20 R2.0- QeucOpenTM Solution
Oct., 2017
@ Quectel Wireless Solutions | Oct., 2017 | Page
2
Basic Introduction
Open Source
Development Guide
Technical Support
Quectel
Confidential
@ Quectel Wireless Solutions | Oct., 2017 | Page
3
QuecOpenTM is an open source embedded development platform based on Linux system, which
is intended to simplify the design and development process for IoT applications.
Basic Introduction
With characteristics of high real-time, multithread and micro kernel, etc., QuecOpen transparently manages all LTE related activities to allow developers to natively execute C, C++ and shell script based program on the processor and in the memory of Quectel modules.
High-powered Platform
By directly downloading the embedded applications to Quectel modules to run, it is now possible to remove external host processor, memory, and a range of product specific ASICs such as IO expanders, audio DSPs, and many other analogue and digital devices.
QuecOpen SDK provides rich small examples, which enables developers to realize fast development. Supporting C-based runtime libraries offers more flexibility for developers to design software and program.
Fast Development
More Competitive
Quectel
Confidential
@ Quectel Wireless Solutions | Oct., 2017 | Page
4
Qualcomm MDM 9x07 Block Diagram
OpenLinux Applications (Apps)
Std. Lib | Extended APIs
Embedded Linux O.S
Hardware Resources
Processors
Cortex A7
QDSP6
Modem
Cortex M3
RPM
Basic Introduction
Processors
Applications ARM Cortex A7 up to 1.2GHz with 256KB L2 cache
ARM Cortex A7 – primary boot processor
Modem
system
QDSP6 processor at up to 691MHz (Turbo)
Low-power audio post-processing supported in the modem system
768KB L2 caches
RPM system
Cortex M3 up to 100MHz
The only master of the modem power manager (MPM)
MPM coordinates shutdown/wakeup, clock rates, and VDDs
Boot flow is RPM/applications processor-based
Qualcomm MDM 9x07
Quectel
Confidential
@ Quectel Wireless Solutions | Oct., 2017 | Page
5
Linux Distribution
Module Hardware
Driver BSP
Linux Kernel (3.18)
File
System
Free Open
Source
Package
Utilities
Development
Environment Command Line SDK
Multi-language Support (C, C++, Shell Script)
C Runtime Library (GCC 4.9)
Utilities Download
Tool
Middleware
Com
pila
tion
Enviro
nm
ent
Little Kernel Boot Loader (LK)
Figure: Framework of QuecOpenTM Solution
QuecOpenTM Framework
Quectel
Confidential
@ Quectel Wireless Solutions | Oct., 2017 | Page
6
Std. Module
SIM/RF
GPIO
ADC
UART
USB
I2C
SPI
… External MCU
UART
USB
ADC
SDIIO
…
APP
External Devices
External Devices
UART/USB
AT/PPP
SGMII
QuecOpen Module
SIM/RF
PCM
GPIO
ADC
UART
USB
I2C
SPI
… UART/I2C/SPI/…
SGMII SDIO
UART/I2C/SPI/…
AP
P
Standard Module Mode
QuecOpenTM Mode
I2C
PCM
Simple Microchip
UART/SPI/GPIO/…
Thin-Module
Fat-MCU
Fat-Module
Thin-MCU
Advantages of QuecOpenTM
Quectel
Confidential
@ Quectel Wireless Solutions | Oct., 2017 | Page
7
I/O (GPIO/EINT
/I2C/SPI)
PCM/Record
Audio Play
TTS
Wi-Fi
Open Source
USB
(AT/Modem/ECM/
RmNet/RNDIS)
SSL/TLS
GNSS
EC25/EC21/EC20 R2.0-
QuecOpen
SD/eMMC
IP (TCP/IP, UDP,
FTP(S), HTTP(S))
Functionalities of QuecOpenTM
Quectel
Confidential
@ Quectel Wireless Solutions | Oct., 2017 | Page
8
Basic Introduction
Open Source
Development Guide
Technical Support
Quectel
Confidential
@ Quectel Wireless Solutions | Oct., 2017 | Page
9
Open System Resources
CPU & O.S
ARMv7 Cortex A7 up to 1.2GHz with 256KB L2 cache.
(Performance: 2280 DMIPS @1.2GHz, 1.9 DMIPS/MHz).
Linux distribution with kernel 3.18.
RAM
RAM available: 100MB
Flash Space
Rootfs: 20MB available. Customers may put read-only data, such as binary code bin and
some configuration files and resource data.
/usrdata: an R/W flash space, 100MB available for user code and data.
Filesystem Type Size Used Available Use% Mounted on
ubi0:rootfs ubifs 55.8M 36.1M 19.7M 65% /
/dev/ubi2_0 ubifs 99.5M 32.0K 99.5M 0% /usrdata Quectel
Confidential
@ Quectel Wireless Solutions | Oct., 2017 | Page
10
UART
- Debug port (x1)
- Application UART port (x3): All of them support hardware handshake option
GPIO (more than 30)
I2C (x1)
SPI (x1)
PCM (x1)
ADC (x2)
SDIO (x2): one for Wi-Fi, and the other for SD card or eMMC.
SGMII (x1)
Open Hardware Resources (1)
Quectel
Confidential
@ Quectel Wireless Solutions | Oct., 2017 | Page
11
USB (x1)
Can be mapped into several different functional interfaces.
- USB-AT port
- USB-DM port
- USB-NMEA port
- USB-Modem port
- USB-Network adapter
In QuecOpen, the GNSS NMEA is outputted to applications through a virtual serial port
(/dev/smd7).
USB Design Suggestions:
• For downloading → DM port
• For Capturing system log→ DM port
• For debugging → ADB port
Open Hardware Resources (2)
Quectel
Confidential
@ Quectel Wireless Solutions | Oct., 2017 | Page
12
Pin No. Pin Name Pin
Location
Combined Interface
(Default)
Pin Multiplexing Power
Domain Reset
Wake-up
Interrupt Remark
Primary Function Alternate Function 1 Alternate Function 2
1 GPIO1 Edge GPIO_25 -- -- 1.8V B-PD,L √ BOOT_CONFIG_2
2 GPIO2 Edge GPIO_10 -- -- 1.8V B-PD,L ×
3 GPIO3 Edge GPIO_42 -- -- 1.8V B-PD,L √
4 GPIO4 Edge GPIO_11 -- -- 1.8V B-PD,L √
5 GPIO5 Edge GPIO_24 -- -- 1.8V B-PD,L × BOOT_CONFIG_1
6 NET_STATUS Edge NET_STATUS PMU (GPIO_01) -- 1.8V DO-Z
11 DBG_RXD Edge DEBUG UART
DBG_RXD GPIO_9 -- 1.8V B-PD,L √
12 DBG_TXD Edge DBG_TXD GPIO_8 -- 1.8V B-PD,L √
13 USIM_PRESENCE Edge USIM_PRESENCE GPIO_34 -- 1.8V B-PD,L √
15 USIM_DATA Edge USIM_DATA GPIO_31 -- 1.8V/2.85V BH-PD ×
16 USIM_CLK Edge USIM_CLK GPIO_32 -- 1.8V/2.85V BH-PD ×
17 USIM_RST Edge USIM_RST GPIO_33 -- 1.8V/2.85V BH-PD ×
23 SD_CARD_DET Edge SD_CARD_DET GPIO_26 -- 1.8V B-PD,L √
24 PCM_IN Edge
PCM interface
PCM_IN GPIO_76 -- 1.8V B-PD,L √
25 PCM_OUT Edge PCM_OUT GPIO_77 -- 1.8V B-PD,L ×
26 PCM_SYNC Edge PCM_SYNC GPIO_79 -- 1.8V B-PD,L √ BOOT_CONFIG_7
27 PCM_CLK Edge PCM_CLK GPIO_78 -- 1.8V B-PD,L × BOOT_CONFIG_8
37 SPI_CS_N Edge
SPI Interface
SPI_CS_N_BLSP6 GPIO_22 UART_RTS_BLSP6 1.8V B-PD,L √
38 SPI_MOSI Edge SPI_MOSI_BLSP6 GPIO_20 UART_TXD_BLSP6 1.8V B-PD,L √
39 SPI_MISO Edge SPI_MISO_BLSP6 GPIO_21 UART_RXD_BLSP6 1.8V B-PD,L √
40 SPI_CLK Edge SPI_CLK_BLSP6 GPIO_23 UART_CTS_BLSP6 1.8V B-PU,H × BOOT_CONFIG_4
41 I2C_SCL Edge I2C interface, host
only
I2C_SCL_BLSP2 GPIO_7 UART_CTS_BLSP2 1.8V B-PD,L ×
42 I2C_SDA Edge I2C_SDA_BLSP2 GPIO_6 UART_RTS_BLSP2 1.8V B-PD,L ×
61 STATUS Edge STATUS PMU (GPIO_04) -- OC DO-Z
62 GPIO6 Edge GPIO_75 -- -- 1.8V B-PD,L √
Interfaces & Multiplexing Pins
For more details, please refer to Quectel_EC25&EC21&EC20 R2.0_QuecOpen_GPIO_Assignment_Speadsheet.
Quectel
Confidential
@ Quectel Wireless Solutions | Oct., 2017 | Page
13
FC20
Power Supply
SDIO 3.0
USIM
SD Card
VBAT (Typ. 3.8V)
VCC_MCU Typ. 3.3V
WLAN_ANT&BT_ANT DIV_ANT MAIN_ANT GNSS_ANT
Power for VIO
Coexistence control
UART
External
MCU
USB Download/Debug (internal AP)
CAN
UART/SPI
RESET
GPIO/
Interrupt
SDIO2
USIM
I2C
PCM
I2C
Codec
SGMII Device
DEBUG
UART Console, Debug Linux/Application
External
MCU-2
4G to wired network
4G to Wi-Fi network
QuecOpen
Modules
Application Model (QuecOpen Modules)
Quectel
Confidential
@ Quectel Wireless Solutions | Oct., 2017 | Page
14
Basic Introduction
Open Source
Development Guide
Technical Support
Quectel
Confidential
@ Quectel Wireless Solutions | Oct., 2017 | Page
15
Operating system
Ubuntu 64-bit OS, version 12.04 or 14.
Compiler
Specified compilation environment with GCC version 4.9.
ADB (option for development stage)
Android Debug Bridge version 1.0.31.
Fastboot (option for development stage)
Dev-Host Requirements
Quectel
Confidential
@ Quectel Wireless Solutions | Oct., 2017 | Page
16
Download Tools:
Quectel_Customer_FW_Download_Tool, ADB, Fastboot
Development Documentation
Compilation Environment
SDK
Drivers (USB, ADB)
Open Kernel Source (optional)
Utilities: serial tool “QCOM”, assistant tool for making rootfs/boot.img
Development Suites
Quectel
Confidential
@ Quectel Wireless Solutions | Oct., 2017 | Page
17
Shell script, C, C++
GNU C Library
main() entry procedure (application entry)
Freely apply/free dynamic memory, malloc()/delete()
Multithreading, dynamically threads creation
Open-source APIs for I/O interfaces accessing
DSI_NetCtrl library for network activation and management
Standard Unix socket APIs for TCP/UDP connection establishment
Standard 3GPP AT commands
Quectel extended AT commands
Programming Capacities
Quectel
Confidential
@ Quectel Wireless Solutions | Oct., 2017 | Page
18
For more details about how to start working with QuecOpenTM, please refer to Chapter 3 of
Quectel_EC25&EC21&EC20 R2.0_QuecOpen_Developer_Guide.
How to Work with QuecOpenTM (1)
Quectel
Confidential
@ Quectel Wireless Solutions | Oct., 2017 | Page
19
How to Work with QuecOpenTM (2)
For more details about how to develop QuecOpenTM, please refer to Chapter 2 and Chapter 4 of
Quectel_EC25&EC21&EC20 R2.0_QuecOpen_Developer_Guide.
Quectel
Confidential
@ Quectel Wireless Solutions | Oct., 2017 | Page
20
Dev./Download/Production (1)
Quectel
Confidential
@ Quectel Wireless Solutions | Oct., 2017 | Page
21
( Original )mdm9607-perf-sysfs.ubi
SDK Environment
Applications
+
( New )mdm9607-perf-sysfs.ubi
Config filesResources data filesDriver files...
Linux Kernel Source Code
Customize Dirvers
( Original )mdm9607-perf-boot.img+
( New )mdm9607-perf-boot.img
Download
Dev./Download/Production (2)
Quectel
Confidential
@ Quectel Wireless Solutions | Oct., 2017 | Page
22
Dev./Download/Production (3)
Quectel
Confidential
@ Quectel Wireless Solutions | Oct., 2017 | Page
23
Basic Introduction
Open Source
Development Guide
Technical Support
Quectel
Confidential
@ Quectel Wireless Solutions | Oct., 2017 | Page
24
Submit Requirements
Questionnaire
Evaluate by Quectel
Pass?
Provide Development Data
Yes
Provide Technical Support
Technical Support
Quectel
Confidential
@ Quectel Wireless Solutions | Oct., 2017 | Page
25
Target Applications
Payment
• Wireless POS • Cash Register • ATM • Vending Machine • Top-up Machine
Gateway
• DTU • Consumer Router • Industrial Router • VOIP • Server • Wi-Fi Hotspot
Agriculture & Environment
• Trail Camera • Food Traceability • Farm Machinery • Irrigation • Meteorological Station • Wildlife Tracking • Environment Monitoring • Pollution Monitoring
Energy
• Electricity Meter • Gas Meter • Water Meter • Heat Meter • Smart Grid • Wind Turbines • Solar Panel • Charging Pile
Smart City
• Street Lighting • Traffic Light • Elevator • Digital Signage • Advertisement Display • LED Lighting • Garbage Bin Monitoring • Parking
Life & Healthcare
• Personal Tracker • Household Appliances • Pet Tracker • Wearables • Elderly Monitoring • Remote Medical Equipment • Glucometer • Blood Pressure Monitor • Gambling Machine
Telematics & Transport
• Automotive OEM • Vehicle Tracking • Container Tracking • Ship Tracking • Fleet Management • OBD • DVR • Insurance Box
Security
• Alarm • Camera • Video Surveillance • Intrusion Detection • Smoke Detector • Asset Protection
Industry
• Industrial PDA • Rugged Tablet PC • Pipeline Management • UAV • Robot • Flow Meter • Refrigerator • Industrial Control • Industrial Monitoring
Quectel
Confidential
© Quectel Wireless Solutions Co., Ltd. All rights reserved
7th Floor, Hongye Building, No.1801 Hongmei Road, Xuhui District, Shanghai 200233, China Tel: +86-21-5108 6236 Fax: +86-21-5445 3668 Email: [email protected] Website: www.quectel.com
Thank you!
www.quectel.com