Fault phenomenon:
The status of the net_status and net_mode lights of the module is not correct. Sometimes the final state of the module is always on, net_status is off, or net_status flashes slowly, and net_mode is off. Sometimes even my application can get a packet of data from the server first, then hang up and never connect again.
Analysis:
These two states are not in the document description. Call on the client, see what you sent, and it will be echoed directly, such as AT+CPIN sending. Direct return, not OK or error, so the preliminary judgment module entered the error state. Then what can make the module enter the error state is nothing more than the following situations:
The posture of sleeping or restarting is wrong.
Or my application code killed the module before it was initialized. However, the previous development with EC600S is still good, and the general application code can't make the module enter the error state, which is relatively low.
Check:
In the second case, the investigation is very simple. Let's look at the application software first. The fault remains, continue to check 1.
In the driver package of EC200, the boot pin, status pin and sleep pin need to be configured. No matter what is developed, the sleep state is the most prone to problems, including x86 development and usb device development. This situation is not uncommon, so sleep (-1) is removed first, but the fault still exists.
At first, I never doubted the status pin because it is an input. I just judge whether the module is on or not, and I feel that there will be no problem, so I haven't moved it. Until I saw a buddy with a similar problem:
Network exception bug caused by RT-Thread-at_device not using power pin rt-thread Q&A community -RT-Thread.
In fact, I seem to have encountered this problem when I used EC600S before, but I didn't use ping and the application was fine, so I didn't care. But I can try this reminder, so I changed the boot state to-1, and that's all.
I didn't touch the power plug. The module needs to have a startup sequence. I think its initialization code is similar to disabling the power supply pin and restarting it.
I hope other friends who have fallen into the pit can see my post and take less detours.
Open CSDN for a better reading experience.
Quectel_EC600S series _TCP(IP)_ application guide _V 1.2.rar
The EC600S-CN module has built-in TCP/IP protocol stack, and the host can directly access the network through AT command. This greatly reduces the dependence of the module on PPP and external TCP/IP protocol stack, thus reducing the cost of terminal design.
EC 600n(II)- The core board lights up for the first time.
Series article catalogue EC 600n( 1)- Introduction to basic information EC 600n(2)- Preface of lighting catalogue of core board 1. Instructions before use 1. Power mode 2. Module startup state 2. In the instruction test 1. Prepare for the exam 2. AT instruction test sequence This experiment uses shifted EC600N double-row core board, mainly using AT instruction test module. I. Instructions before use: 1. Power supply mode EC600N module needs to supply power through pin VIN, as shown in the following figure: USB port power supply may not meet the start-up requirements of the module (due to the voltage drop of diodes in series), so the module is generally supplied with power through pin. This design is a bit tasteless. 2.
Continue to visit
Remote 4G module EC600N for TCP/IP connection and server testing.
Recently, the company's products need to add a 4G module for data transmission. When I thought of the 4G module I moved before, I bought the core board and came back for debugging. The protocol is TCP/IP, so the AT specification of TCP/IP part is used. In terms of tools, we use a serial debugging assistant. As for the test server, we used the transparent cloud of Anxinke at first, but the server will automatically disconnect after a period of time without sending a message, so we still used the network debugging assistant. Because the network debugging assistant uses a local area network, if it needs to communicate with 4G, it also needs to use peanut shells for intranet penetration. Next, do the server part first. If you don't have peanut shell software, I suggest you go to official website to download one that looks like this. After installation, open the following interface
Continue to visit
Updating and debugging records of OTA firmware of STM32F405+4G module
Personal Records of OTA Firmware Upgrade and Debugging of STM32F405+4G Module
Continue to visit
Use summary of Cat. 1 module (EC600N)
Due to the high power consumption of Cat.4 module (EC20), considering the NB network coverage problem (equipment working in the field), Cat. 1(EC600N) module is selected for the project. Now summarize the debugging process, hoping to help everyone. For a summary of the use of EC20, please refer to: Communication Summary between Single Chip Microcomputer and 4G Module (EC20). First, the power manual says that the power supply voltage is ≥3.4V and the peak current is 3A. Second, the UART and IO ports of the communication port are both 1.8V, and the level must be changed. III. Boot sequence I: Reset after powering on 1s, reset the low level for 600ms, boot after 100ms, and wait for 10s to run. Four. AT instruction adopts message body principle. See for details.
Continue to visit
Log component
Log component 1. What is a journal? Log is an indispensable part of software application and an important basis for program debugging or data collection management, which is convenient for us to monitor the change of variable values and the running track of code in production environment. This course is mainly used to learn the log components commonly used in practical development. It is mainly convenient for us to monitor the change of variable values in the production environment and the running track of the code. These records will be output to the location we specify to form a file, which will help us analyze the error and the user's request trajectory. 2. Common log components 2. 1 Log4j and log4j2.x? Log4j has eight different logging levels, all of which are & gtTRACE & gt debugging and testing. Large station wagon
Continue to visit
ESP32+ remote EC600N module connects to Alibaba Cloud through MQTT and upgrades OTA through HTTP.
ESP32+ remote EC600N module connects to Alibaba Cloud through MQTT and upgrades OTA through HTTP. The following is my work during this period, sharing my research results, and also letting my friends behind me step on the pit less. At the same time, record the operation steps through the article, so as not to forget for a while. The following is the detailed debugging information output of data interaction between ESP32 and EC600N module through serial port. ...
Continue to visit
Popular recommendation EC 600n( 1)- Basic information introduction
Instructions for use of EC600N EC600N (1)—— Basic information introduction directory EC600N introduction 1. Module group 1 Basic introduction. Basic selection information of module 2. Basic information of EC600N core board 2. Introduction of EC600N function 1. Introduction to basic functions II. Pin function 3. Supplementary Preface EC 600N is a 4G module that has been moved far away. Yuanfang and China Mobile are the main suppliers of 4G modules and NB-lot modules. Because the remote module is widely used, you might as well try it. Links to related resources: official website, it is difficult to find information about this website. Quetcelpython download center, most remote modules support the secondary development of python. Ketsel
Continue to visit
Developing Internet of Things Application without QuecPython (based on EC600s) (VII) QuecPython Communication Related Modules
1.sim-sim card module imports sim 1. Get the imsi SIM of the sim card. The Get IMSI () parameter successfully returned the string IMSI, and the integer-1 failed. 2. get the iccid sim.getIccid () parameter of the sim card. If there is no return value, iccid of string type is successfully returned, and integer-1 is returned if it fails. 3. Get the phone number of the sim card sim.getPhoneNumber () ...
Continue to visit
A useful circular queue in C language and its application example (AT framework taking EC200/600 as an example)
Directory 1. Foreword 2 Conclusion 3. Circular queue 3. 1 Write queue to queue head 3.2 Get the data of the current queue from the tail read queue 3.3 Clear the queue 3.5 Two important structures 4. Effect and Example 4. 1 Three read queue threads 4.2 Initialize in frame write queue and EC200 4.3 Maintain TCP long connection in frame read queue 4.4 EC200 5. Download 5. 1 circular queue 5.2 AT framework +TCP long connection +EC200 (common with EC600) 1. Foreword: /ylc 09 19/ Articles/Details/1105065438.
Continue to visit
Alibaba Cloud Online Temperature and Humidity-Little Bear School qpython (Comprehensive Exhibition)
What you need: the ec 100y development board of Bear School; I2c temperature and humidity sensor (sht3 1 is used here, others can be modified by themselves); Alibaba Cloud account; Wiring: SCL and SDA Alibaba Cloud display with 3.3v, GND and i2c: app display: code: # Import log of package reference part from a Liu Yun import a Liu Yun import Ujs on import Utime import i2c from machine import PM # User variable area # Upload interval (single ..
Continue to visit
Description of EC600N-AT software package
INIT _ DEVICE _ EXPORT(EC 200 x _ DEVICE _ class _ register); How to jump from struct at_device_class structure to at_device_class_register to static int EC 200x _ init (struct at _ device * device) at _ device _ class _ register to init _ app _ export (EC 200x _ device _ register); Static int ec200x_device_r
Continue to visit
Design and application of open scheme, openCPU-EC600 and L6 10.
Summary of design and application of open CPU module It is the basic skill of a qualified hardware engineer to choose the best design scheme according to the actual project requirements. Description of background, advantages and disadvantages: For Internet of Things projects, most companies or products need cheaper solutions, so the open CPU solution in Internet of Things projects has ushered in a golden period of development. The Internet of Things project itself needs a wireless communication module. The communication module opens a certain IO port and communication interface, which can solve the pain point of insufficient master MCU for users and reduce the development cost. Disadvantages: the use of IO port and communication interface is not flexible enough compared with the main control MCU, and there are relatively few interfaces. Software: Support open C and open Python (
Continue to visit
Quectel EC800N-CN Small IoT Preferred LTE Cat 1 Module [Remote Communication]
EC800N-CN is an LTE Cat 1 wireless communication module specially designed for M2M and the Internet of Things, which supports the maximum downlink rate 10 Mbps and the maximum uplink rate of 5 Mbps, with ultra-small package and high cost performance. EC800N-CN adopts laser engraving technology, which has better appearance, strong metallic texture, better heat dissipation, and information is not easy to be erased, which can meet the needs of automation. EC800N-CN has built-in rich network protocols, integrates various industrial standard interfaces, and supports various drivers and software functions (such as USB virtual serial port drivers under Windows 7/8/8.110, Linux, Android and other operating systems). Greatly expanded its application in M ..
Continue to visit
EC600S serial communication
EC600S has two serial communication ports, TX0/RX0;; TX2/RX2 respectively correspond to the UART 0- debug port and UART 2- main port in the program. To run this routine, you need to connect the main port of the development board with the PC through the serial port, open the main port on the PC through the serial port tool, and send data to the port, so that you can see the messages sent by the PC. (TX2/RX2 and RX/TX of usb port can be connected to the computer through serial port. ) """To run this routine, you need to connect the main port of the development board with the PC through the serial port tool and open the main port on the PC.
Continue to visit
Stay away from the end mark of EC20/600 TCP sending variable-length data!
Stay away from the end mark of EC20/600 TCP sending variable-length data!
Continue to visit
No longer use ec200/600
Away from the use of ec200 and ec600: linux2.6.22 pppd-2.4.4 ec600s refers to the dialing related documents of ec200s:1:/driver/USB/serial/option.c has been changed in four places. The guidance document of ec200s is not strictly observed (wwan and qcserial related files will also be involved in kernels above 2.6.30 and 3.0, see related documents) 2: Kernel config USB _ serial = yusb _ usbnet = yusb _ net _ CDC ether = y (it is not clear at present. ...
Continue to visit
EC600U
Ec600u, tcp client disconnects and reconnects.
Continue to visit
The latest release of STM32+USART+DMA+EC600N debugging.
In stm32Cube, turn on DMA to send and receive interrupts, and turn on usart global interrupt. Main debugging functions: (1) sending fixed-length data to serial port by DMA, (2) receiving indefinite-length frame data by DMA. (1) Use DMA transmission to send data with fixed size, and replace it with packing code as follows: (2) Use DMA transmission to receive data with variable size, and use serial port idle interrupt to identify a frame of data. Reference link: Note: Remember to restart DMA reception after the idle interrupt is over. The instructions of AT execution logic analyze the success of each AT instruction, and then move on to the next one. If this AT instruction fails to execute, it will be executed repeatedly, at most 10 times. If 10 all fails, this round is over.
Continue to visit