Giter VIP home page Giter VIP logo

platform-quectel's Introduction

Quectel development platform for PlatformIO

Тhe project is frozen indefinitely - lack of support from stakeholders...

I will not describe the reasons because they are threatening me with a legal responsibility
I will delete the Framework ( Source Codes ) due to license restrictions
TIP: If you have an alternative - run away from Quectel

A few words in the beginning

it should look like this...

Project

Video

https://youtu.be/YvHy1MLqH70

https://www.youtube.com/watch?v=DJ0nZS5HwHU

Project

Project

Install Platform

Python 2 & 3 compatable in process, if issue - report

PIO Home > Platforms > Advanced Installation

paste https://github.com/Wiz-IO/platform-quectel

How to: WIKI and EXAMPLES

Fast Uninstal

  • goto C:\Users\USER_NAME.platformio\platforms
  • delete folder quectel ( builders )
  • delete folder framework-quectel ( sources )
  • delete folder tool-quectel ( any tools, may not delete )
  • delete folder toolchain-gccarmnoneeabi (compiler, may not delete )

Thanks to

  • Quectel Support
  • Redferne Bellini
  • Ajay Bhargav
  • ชัยวัฒน์ แซ่ฮุ้ย ( Art of Destroy )
  • Ivan Kravets ( PlatformIO )

Support links

If you want to help / support:
paypal

platform-quectel's People

Contributors

maximevince avatar pfeerick avatar wiz-io avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

platform-quectel's Issues

Arduino MC60 status

WizIO can you please tell me the current status of Arduino MC60.

Is it possible to do routines with HTTPS, MQTT and I2C?

Request: support for M66-DS

Hello,

I have developed a gateway application on M66 using arduino framework. now I came across requirement where i need to give dual sim support.
is it possible to port M66 framework to M66DS?

Debug Output

1
2
3

Hello,
i have problems with the debug output.
I configured baud rate 115200 and port7 is interface2.

Flashing using PlatformIO fails for BC66-NA

Hi there,

I am using your platform for developing openCPU code for a BC66-NA module. It works great but flashing using PlatrformIO fails. Flashing the binary with IoT flash tool works fine.
PlatformIO reports this:

Use manually specified: COM9
Uploading: program
Waiting module for POWER-ON or RESET <=========================> DONE
Starting <========
ERROR: EPP Answer
*** [upload] Explicit exit, status 2

Monitoring using PlatformIO works fine.

Any ideas what can cause this?

EC2x unofficial release?

Hi there,

thanks for the effort in building this framework.
I'm trying to connect an ESP32 AWS over LTE with the EC25 and coming from your YouTube video, I can see that a cellular connection is possible. Reading the other issues and descriptions, I understand that the EC25 Arduino Framework is currently not supported fully.
Nevertheless I wanted to ask if you could share the code for platform initialization so I could fiddle around with it and try to do a proof-of-concept. I would not care if there might be bugs or not everything is working as intended.

Any help would be appreciated!

EG95-E Support

Hello,

I have a Quectel LTE EG95-E module.
Currently I am going to develop an application on EG95-E in Platform.io IDE.
Is this platform able to support EG95-E modules?
Thanks in advance.

what changes need to make platform-quectel to work with new M66FAR02A06BT version of M66

Hello guys.

Using platform-quectel and it's Arduino-Quectel-M66 (M66FAR01A12BT firmware ), I developed a gprs gateway/logger application and it is working fine.
Then i came across a requirement for SSL connection for HTTP and MQTT.
using AT commands and QCOM I tried to connect to AWS Server and it wasn't worked though AWS server setup is fine. my AWS setup is according to aws-serverless-and-an-esp32. and working with ESP32.

Quectel FAEs insisted me to work with latest firmware (M66FAR02A06BT). They said SSL my not work with old firmware.
SSL with AWS (HTTPS and MQTTS) is working with this firmware.

So, My question is how can i upgrade the platform-quectel and Arduino-Quectel-M66 to make work with this new firmware. is it possible to make it work, If yes, what things I need to look after.

Please respond.
Thanks & regards,
Umesh

Level converter

Hello,
What level shifter circuit did you use for the I2C interface? Level translator IC or single N-channel MOSFET?

Issue in MC60 MQTT

Sir,
We are having troubles using the MQTT AT commands on MC60.module replies OK for all commands such as AT+QMTCFG=keepalive,version,ssl,timeout.But it always returns simply error without any errror code for AT+QMTOPEN=1,“m16.cloudmqtt.com”,13537

READ GPS DATA

I am working with the EC25, it has a GNSS integrated, I would like to know if there is a way to read the data to send it through MQTT?

Documentation

Hi Georgi:

I'm really fan of this project. But, do you have documentation about the functions (API) and more examples?

I'm trying to do things like: wake up the device using a GPIO (interrupt), read/write using the UART, communicate via i2c...

Thank you for your job! It's a great stuff.

M.

Python based flashtool

Hi @Wiz-IO Did you get python based flashtool working? I am also looking for a cross-platform flasher for Mediatek chipset. Maybe we can collaborate to make it work?

platformio VScode quectel MC60 upload error

Hi, sir i am facing an error when i am trying to upload a code on my MC60 module from quectel, for the setup i have followed all your previous github repo its working good but just the problem i am having when i try to upload code directly from platformio using vscode. please provide some help to me as i have searched all about it but didnt find anything anywhere.
ERROR: APP: MMM`

Cannot upload to BC66

Hi,

We have a BC66-TE-B board and we would like to programming it with PIO and OpenCPU. If we install the Quectel platform as the documentation writes, we got " arm-none-eabi-gcc: error: unrecognized command line option '-R' " error. I fixed it with:

  1. Removed the installed Quectel platform
  2. Deleted the "-Rbuild" linkflag from the opencpu_bc66.py file (line 59th)
  3. Reinstall the modified Quectel platform

Then, the code (the example from the WIKI) builds successfully, and starts to upload, but nothing happens during the upload. Cannot see any progress and never finish. No error or anything. We tired with bc66 and bc66-te-b board also, but the problem still. Have you any idea what should we do? How can we upload the code?

And an other interesting thing: we cannot update the firmware or create a backup from it. The port drivers looks good. Furthermore, the "EEPROM Programmer v1.7a" program also cannot read or write any value from/to the eeprom. But if I am logging out the serial port, and press the pwr_key, some information appear on the terminal.

We use OSX 10.14.3 and Visual Studio Code 1.32.3 with PIO Home 2.0.0 and Core 3.6.5 to build and upload, and Win7 x64 with VMWare Fusion to update or backup the firmware.

I attached few screenshots and logs. I hope this will

help on us. But if you need any other info/log/data, I will try to supplement with it.

Thanks for any help!
Gergo

upload_log.txt
upload_log_verbose.txt
Képernyőfotó 2019-03-20 - 10 38 27
Képernyőfotó 2019-03-20 - 10 15 54
Képernyőfotó 2019-03-20 - 10 24 07

BG96 blocks COM ports after reset and hang up

Previously I've been using your Quectel platform with PlatformIO in UMTS & LTE EVB Kit with BG96, uploading from VSCode and QEFS_Explorer, but now COM ports are blocked inesperately:

  • I reset by button and platform hang up, like going sleep, and now it’s not possible flash again, it only appears 1 USB port (DM port) but it’s not possible to flash again, QEFS explorer hangs and exit.
  • I have tried again long reset, three times reset and I with in device manager likes appear 3 ports and inmediately disappear and only one remains (DM)
    Any trick to reset completely flash or access by DM port? I’m desperate.
    Thanks in advance.
    PD: I ask you directly becase I can't post by now in Quectel forum

BC26 has BC66 core

On the BC26 platform, the referenced core is bc66:

"core": "bc66",

I came here while investigating available NB-IoT platforms and I am confused. What are the differences between BC26 and BC66? From the specs they look the same so is one version a minor upgrade over the other? Also the BC26 seems to be more available on Chinese markets.

MC60 upload error

Hi Wiz!

I love your work.
I'm having a error, in MC60 with openCPU, can you help me?
I tried the versions MC60CAR01A13 and MC60CAR01A12

`BIN SIZE: 0.078125 kB
Configuring upload protocol...
Looking for upload port...
Use manually specified: COM7
Uploading: program
<............................> DONE
Initialising
<..........................................................................................> DONE
Sending MTK Download Agent. Please wait
<....................................................................................................................................> DONE
*** [upload] Explicit exit, status 2

ERROR: APP: MMM`

How far off is a BG77 framework?

Hey @Wiz-IO ,

Thanks for the very nice work. I have been playing a few days with your BC66 framework, which works really nicely.
I was wondering how far off a BG77 port is?

I realize it's a different beast; being based on ThreadX instead of OpenCPU.
Is there anything I can do to help?

opencpu undefined reference to _sbrk

It seems that syscalls.c is not being linked
This is the error I am getting. I am not using dynamic memory allocation

<<<<<<<<<<<< OLIMEX NB-IOT-DEVKIT 2018 Georgi Angelov >>>>>>>>>>>>
CONFIGURATION: https://docs.platformio.org/page/boards/quectel/Olimex-NB-IoT-DevKit.html
PLATFORM: Quectel 2.0.14 #5dbec3f > Olimex NB-IoT-DevKit
HARDWARE: ARM, MT2625 78MHz, 97.66KB RAM, 195.31KB Flash
DEBUG: Current (uart) On-board (uart)
PACKAGES: 
 - framework-quectel b91f56c 
 - toolchain-gccarmnoneeabi 1.70201.0 (7.2.1)
LDF: Library Dependency Finder -> http://bit.ly/configure-pio-ldf
LDF Modes: Finder ~ chain, Compatibility ~ soft
Found 0 compatible libraries
Scanning dependencies...
No dependencies
Building in release mode
Compiling .pio/build/bc66/src/as_main.o
Linking .pio/build/bc66/program.elf
/Users/developer/.platformio/packages/toolchain-gccarmnoneeabi/bin/../lib/gcc/arm-none-eabi/7.2.1/../../../../arm-none-eabi/lib/thumb/v7e-m/fpv4-sp/hard/libc.a(lib_a-sbrkr.o): In function `_sbrk_r':
sbrkr.c:(.text._sbrk_r+0xc): undefined reference to `_sbrk'
collect2: error: ld returned 1 exit status
*** [.pio/build/bc66/program.elf] Error 1

I have seen a fix here svaarala/duktape#1941 that consists on adding this to a source file:

void *_sbrk(s32 inc)
{
	APP_DEBUG("_sbrk called.\r\n");
    while(1);
	return NULL;
}

however there must be a better solution.

Please let me know,
Thanks

upload_port platform-quectel linux

Hi Mr. Angelov,

I have just used the platform-quectel with "success" in Windows, despite of several hangs with uart ports.
I would prefer to use in Linux but configuring in platformio.ini as follows, with regular usb-serial ports, I only can monitor but I got error in upload.
Is possible it could be due to QDL.py? Any solution?
Thanks in advance.

[env:bg96]
platform = quectel
board = bg96
framework = threadx
; select DM COM Port
upload_port = /dev/ttyUSB2
; select module uart
monitor_port = /dev/ttyUSB4
monitor_speed = 115200

"ERROR: Boot timeout" on Mac OS when uploading through platformio.

Hi, Im getting the error Boot Timeout, when I upload and click the start button on the board.

Is it possible to fix?

This is what I have :

[env:bc66-te-b]

platform = quectel
board = bc66-te-b
framework = arduino
board_build.firmware = BC66NBR01A10
upload_port = /dev/tty.SLAB_USBtoUART3
monitor_port = /dev/tty.SLAB_USBtoUART3
monitor_speed = 9600

Thank you

Issue in advanced platform installation

Hy,
when I paste this command in https://github.com/Wiz-IO/platform-quectel in advanced platform installation,I continuously getting the error like

PIO Core Call Error: "Platform Manager: Installing git+https://github.com/Wiz-IO/platform-quectel\r\n\n\nError: Traceback (most recent call last):\r\n File \"c:\\users\\katomaran\\.platformio\\penv\\lib\\site-packages\\platformio\\__main__.py\", line 109, in main\r\n cli() # pylint: disable=no-value-for-parameter\r\n File \"c:\\users\\katomaran\\.platformio\\penv\\lib\\site-packages\\click\\core.py\", line 829, in __call__\r\n return self.main(*args, **kwargs)\r\n File \"c:\\users\\katomaran\\.platformio\\penv\\lib\\site-packages\\click\\core.py\", line 782, in main\r\n rv = self.invoke(ctx)\r\n File \"c:\\users\\katomaran\\.platformio\\penv\\lib\\site-packages\\platformio\\commands\\__init__.py\", line 44, in invoke\r\n return super(PlatformioCLI, self).invoke(ctx)\r\n File \"c:\\users\\katomaran\\.platformio\\penv\\lib\\site-packages\\click\\core.py\", line 1259, in invoke\r\n return _process_result(sub_ctx.command.invoke(sub_ctx))\r\n File \"c:\\users\\katomaran\\.platformio\\penv\\lib\\site-packages\\click\\core.py\", line 1259, in invoke\r\n return _process_result(sub_ctx.command.invoke(sub_ctx))\r\n File \"c:\\users\\katomaran\\.platformio\\penv\\lib\\site-packages\\click\\core.py\", line 1066, in invoke\r\n return ctx.invoke(self.callback, **ctx.params)\r\n File \"c:\\users\\katomaran\\.platformio\\penv\\lib\\site-packages\\click\\core.py\", line 610, in invoke\r\n return callback(*args, **kwargs)\r\n File \"c:\\users\\katomaran\\.platformio\\penv\\lib\\site-packages\\platformio\\commands\\platform.py\", line 332, in platform_install\r\n force=force,\r\n File \"c:\\users\\katomaran\\.platformio\\penv\\lib\\site-packages\\platformio\\package\\manager\\platform.py\", line 52, in install\r\n spec, silent=silent, force=force, skip_dependencies=True\r\n File \"c:\\users\\katomaran\\.platformio\\penv\\lib\\site-packages\\platformio\\package\\manager\\_install.py\", line 49, in install\r\n spec, silent=silent, skip_dependencies=skip_dependencies, force=force\r\n File \"c:\\users\\katomaran\\.platformio\\penv\\lib\\site-packages\\platformio\\package\\manager\\_install.py\", line 97, in _install\r\n pkg = self.install_from_url(spec.url, spec, silent=silent)\r\n File \"c:\\users\\katomaran\\.platformio\\penv\\lib\\site-packages\\platformio\\package\\manager\\_install.py\", line 141, in install_from_url\r\n vcs = VCSClientFactory.new(tmp_dir, url)\r\n File \"c:\\users\\katomaran\\.platformio\\penv\\lib\\site-packages\\platformio\\package\\vcsclient.py\", line 55, in new\r\n src_dir, remote_url, tag, silent\r\n File \"c:\\users\\katomaran\\.platformio\\penv\\lib\\site-packages\\platformio\\package\\vcsclient.py\", line 137, in __init__\r\n self.configure()\r\n File \"c:\\users\\katomaran\\.platformio\\penv\\lib\\site-packages\\platformio\\package\\vcsclient.py\", line 146, in configure\r\n result = proc.exec_command([cls.command, \"--exec-path\"])\r\n File \"c:\\users\\katomaran\\.platformio\\penv\\lib\\site-packages\\platformio\\proc.py\", line 117, in exec_command\r\n p = subprocess.Popen(*args, **kwargs)\r\n File \"C:\\Users\\Katomaran\\.platformio\\python3\\lib\\subprocess.py\", line 800, in __init__\r\n restore_signals, start_new_session)\r\n File \"C:\\Users\\Katomaran\\.platformio\\python3\\lib\\subprocess.py\", line 1207, in _execute_child\r\n startupinfo)\r\nFileNotFoundError: [WinError 2] The system cannot find the file specified\r\n\r\n============================================================\r\n\r\nAn unexpected error occurred. Further steps:\r\n\r\n* Verify that you have the latest version of PlatformIO using\r\n pip install -U platformio command\r\n\r\n* Try to find answer in FAQ Troubleshooting section\r\n https://docs.platformio.org/page/faq.html\r\n\r\n* Report this problem to the developers\r\n https://github.com/platformio/platformio-core/issues\r\n\r\n============================================================"

ADB

I am working with the EC25-A module, do I need to have a special firmware?

I can't get the device to work in adb. I already installed all the drivers.

OS Windows 10

OpenCPU \arm-none-eabi\lib\thumb\libc.a undefined reference errors

Hi again,

c:/users/umesh/.platformio/packages/toolchain-gccarmnoneeabi/bin/../lib/gcc/arm-none-eabi/7.2.1/../../../../arm-none-eabi/lib/thumb\libc.a(lib_a-sbrkr.o): In function_sbrk_r':
sbrkr.c:(.text._sbrk_r+0xc): undefined reference to _sbrk' c:/users/umesh/.platformio/packages/toolchain-gccarmnoneeabi/bin/../lib/gcc/arm-none-eabi/7.2.1/../../../../arm-none-eabi/lib/thumb\libc.a(lib_a-writer.o): In function _write_r':
writer.c:(.text._write_r+0x10): undefined reference to _write' c:/users/umesh/.platformio/packages/toolchain-gccarmnoneeabi/bin/../lib/gcc/arm-none-eabi/7.2.1/../../../../arm-none-eabi/lib/thumb\libc.a(lib_a-closer.o): In function _close_r':
closer.c:(.text._close_r+0xc): undefined reference to _close' c:/users/umesh/.platformio/packages/toolchain-gccarmnoneeabi/bin/../lib/gcc/arm-none-eabi/7.2.1/../../../../arm-none-eabi/lib/thumb\libc.a(lib_a-fstatr.o): In function _fstat_r':
fstatr.c:(.text._fstat_r+0xe): undefined reference to _fstat' c:/users/umesh/.platformio/packages/toolchain-gccarmnoneeabi/bin/../lib/gcc/arm-none-eabi/7.2.1/../../../../arm-none-eabi/lib/thumb\libc.a(lib_a-isattyr.o): In function _isatty_r':
isattyr.c:(.text._isatty_r+0xc): undefined reference to _isatty' c:/users/umesh/.platformio/packages/toolchain-gccarmnoneeabi/bin/../lib/gcc/arm-none-eabi/7.2.1/../../../../arm-none-eabi/lib/thumb\libc.a(lib_a-lseekr.o): In function _lseek_r':
lseekr.c:(.text._lseek_r+0x10): undefined reference to _lseek' c:/users/umesh/.platformio/packages/toolchain-gccarmnoneeabi/bin/../lib/gcc/arm-none-eabi/7.2.1/../../../../arm-none-eabi/lib/thumb\libc.a(lib_a-readr.o): In function _read_r':
readr.c:(.text._read_r+0x10): undefined reference to `_read'

`

can someone please guide me how to rectify it.

Thanks
Umesh

Arduino Pin Mapping for BC66 and BG96?

Do you have a diagram or table that shows the pin mappings for the various BC66 and BG96 pins to the Arduino environment? (e.g. D1, D2, A1, A2, etc.)

Also, is there a mapping already for the I2C pins also if I want to use the Wire library?

OpenCPU FOTA Package format

Do you have any documentation or knowledge of the OpenCPU FOTA Package format?

I'd like to automate the creation of the update package after build the application.

Cannot compile Opencpu C++ project

Hi,

I am having trouble compiling a c++ project

I created a pio project with this platformio.ini:

[env:bc66]
platform = quectel
board = bc66
framework = opencpu

When I compile using "pio run" , a new main.c file is created.
As mentioned here https://github.com/Wiz-IO/platform-quectel/wiki/SDK-BC66

Create New OpenCPU Project, PIO will make basic C template...
Rename main.c to main.cpp

I have renamed main.c to main.cpp

When I try to compile again, a new main.c file is created
How do I use opencpu framework and c++?

Thanks for your help

support tls mqtt

hi, can you guide how to connect using mqtt by ssl using bc66

EC21 OpenLinux Build Error

Executing task: C:\Users\ssank.platformio\penv\Scripts\pio.exe run --environment ec21 <

Processing ec21 (platform: quectel; board: ec21; framework: openlinux)

Verbose mode can be enabled via -v, --verbose option
<<<<<<<<<<<< QUECTEL EC2X MODULE 2018 Georgi Angelov >>>>>>>>>>>>
CONFIGURATION: https://docs.platformio.org/page/boards/quectel/ec21.html
PLATFORM: Quectel (2.1.3+sha.e3b21dd) > Quectel EC2x module
HARDWARE: ARM, MDM9607 1200MHz, 10.00MB RAM, 10.00MB Flash
DEBUG: Current (uart) On-board (uart)
PACKAGES:

  • framework-quectel 2.1.3+sha.cde2255
  • toolchain-gcc-ec2x 1.0.0
    LDF: Library Dependency Finder -> http://bit.ly/configure-pio-ldf
    LDF Modes: Finder ~ chain, Compatibility ~ soft
    Found 0 compatible libraries
    Scanning dependencies...
    No dependencies
    Building in release mode
    Compiling .pio\build\ec21\src\main.o
    Archiving .pio\build\ec21\lib_custom.a
    'arm-linux-gnueabi-gcc'은(는) 내부 또는 외부 명령, 실행할 수 있는 프로그램, 또는
    배치 파일이 아닙니다.
    'arm-linux-gnueabi-ar'은(는) 내부 또는 외부 명령, 실행할 수 있는 프로그램, 또는
    배치 파일이 아닙니다.
    *** [.pio\build\ec21\lib_custom.a] Error 1
    *** [.pio\build\ec21\src\main.o] Error 1
    ================================================================================================== [FAILED] Took 1.03 seconds ==================================================================================================
    The terminal process "C:\Users\ssank.platformio\penv\Scripts\pio.exe 'run', '--environment', 'ec21'" terminated with exit code: 1.

Terminal will be reused by tasks, press any key to close it.

running windows 10
how to install arm-linux-gnueabi-gcc?

About the math include

when I include math.h and use cos() function, the compiling will pass.
but when run the app at opencpu(BC26), it always crashed and reboot.
I'm not sure if need add some gcc path of include into c_cpp_properties.json
the output of debug:

F1: 0000 0000
V0: 0000 0000 [0001]
00: 0006 000C
01: 0000 0000
U0: 0000 0001 [0000]
T0: 0000 00B4
Leaving the BROM

RDY

+CFUN: 1

------------- Exception called -------------
genie connected: Yes

auto-reboot: Yes

F1: 0000 0000
V0: 0000 0000 [0001]
00: 0006 000C
01: 0000 0000
U0: 0000 0001 [0000]
T0: 0000 00B4
Leaving the BROM

RDY

+CFUN: 1

------------- Exception called -------------
genie connected: Yes

auto-reboot: Yes

//the codes:
void proc_main_task(s32 taskId)
{
s32 ret;
u32 cnt = 0;
double a = 0;
double b = 0;
char Buff[10]="0.345";
char* pStr;

// Register & open UART port
ret = Ql_UART_Register(m_myUartPort, CallBack_UART_Hdlr, NULL);
if (ret < QL_RET_OK)
{
    Ql_Debug_Trace("Fail to register serial port[%d], ret=%d\r\n", UART_PORT1, ret);
}
ret = Ql_UART_Open(m_myUartPort, 115200, FC_NONE);
if (ret < QL_RET_OK)
{
    Ql_Debug_Trace("Fail to open serial port[%d], ret=%d\r\n", UART_PORT1, ret);
}


a = cos(b); //crashed here

Platformio errors

hello I am having problems when compiling the examples in platformio.
each example give me an different error.. i think some missing libraries? could you please point me the right direction.. I have 2 olimex dev NB-IoT-BC66-ANT.
Thanks a lot.
image

issue creating a project

Hi guys,

First, let me congratulate you, it's a great job the possibility of using BC66 via PlatformIO.

I got this error message when I tried to create a project. Could you please help?

PIO Core Call Error: "The next files/directories have been created in C:\Users\mencho\Documents\PlatformIO\Projects\Test_BC66\r\ninclude - Put project header files here\r\nlib - Put here project specific (private) libraries\r\nsrc - Put project source files here\r\nplatformio.ini - Project Configuration File\n\nError: Could not find a version that satisfies the requirement '>=4.8.3' for your system 'windows_x86'"

Best regards,

M

BC26 module cannot upload @ win VScode

Board: BC26-TE-B

Configuring upload protocol...
Looking for upload port...
Use manually specified: COM3
Uploading: program
Waiting module for POWER-ON or RESET <===========================> DONE
Starting <========
ERROR: EPP Answer
*** [upload] Explicit exit, status 2

BC66-NA Cyclic reboot

Does the platform support the BC66-NA? Tried to test this example:
https://github.com/Wiz-IO/platformio-quectel-examples/blob/master/BC66_SDK/CPP/BC66_CPP_HELLO/src/main.cpp
on a BC66-NA-TE-B dev kit. Compilation and upload went find, but the led is blinking rapidly and the serial output continously prints this, that seems like some cyclic reboot:

F1: 0000 0000
V0: 0000 0000 [0001]
00: 0006 000C
01: 0000 0000
U0: 0000 0001 [0000]
T0: 0000 00B4
Leaving the BROM


F1: 0000 0000
V0: 0000 0000 [0001]
00: 0006 000C
01: 0000 0000
U0: 0000 0001 [0000]
T0: 0000 00B4
Leaving the BROM

Any tips to get it to work on this board?

f

Hi!

I am working with a development board that I create with the EC25-A module but I cannot get the device to appear in the ADB. Do I need a special firmware?

Quectel people in my country do not give me a solution to be able to use QuecOpen, they only tell me that it is only for large manufacturers 😪

Regards

DEVBOARD

Request: Add support for Bg77 (BG95/BG600)

Hi,
The mentioned modules are very interesting since they are the latest low power very compact modules. They are also based on a never qualcom chipset so I don't know how easy it would be for you to support them but at least there is a quecopen SDK available (maybe still in Beta, not sure)
Tia
Jimmy

BG95 compilation error

Hello @Wiz-IO ,
I'm trying to use your extension for Quectel BG95 (please consider I'm new to platformIO so maybe the problem is just my ignorance).

I have both SDK and compiler (provided by Quectel local FAE).

I created a new project and I have modified c_cpp_properties.json in order to include SDK headers folder, however if I build I get the attached results.

What I do not understand is how I can inform platformIO to use SDK and compiler provided by FAE. Is it related to the fact that BG95 is not "officially" implemented in your platform?

Immagine
Immagine1

Thanks

Getting uS resolution on timers or delay function

Hello,
I need to interface OpenCPU in BC66 with a HC-SR04T ultrasonic sensor.
The sensor needs a trigger pulse of 10uS and will return an echo pulse of a certain uS duration, which has to be measured by the mcu.

imagen

Is it possible to have uS resolution on OpenCPU timers (I only see millisecond resolution in the examples), or a delay_us() function?

Thanks

Ql_RIL_Initialize() blocks forever when using several tasks

Hi,

It seems that when using more than one task, Ql_RIL_Initialize() never returns and blocks the task from which it was called forever. I am calling Ql_RIL_Initialize() after MSG_ID_RIL_READY

I have uploaded a repo from which the error can be reproduced here:
https://github.com/ASL07/OpenCPURilInitHangMultitask

Please follow instructions on the README

Has anyone experienced anything similar?

@Wiz-IO Reviewing the code in your Arduino port, I see you suspend the Arduino task until RIL is initialize, is taht a workaround for this?
Anyway, I tried to replicate what you are doing in my app and I cannot make it work.

Thanks

Cannot create new project. [EC2x]

PIO Core Call Error: "The current working directory F:\\Workspace\\tesatstse will be used for the project.\n\r\nThe next files/directories have been created in F:\\Workspace\\tesatstse\ninclude - Put project header files here\nlib - Put here project specific (private) libraries\nsrc - Put project source files here\nplatformio.ini - Project Configuration File\n\n\nError: Processing ec2x (platform: quectel; board: ec2x; framework: arduino)\n-------------------------------------------------------------------------------\nVerbose mode can be enabled via -v, --verbose option\n<<<<<<<<<<<< QUECTEL EC2X MODULE 2018 Georgi Angelov >>>>>>>>>>>>\nCONFIGURATION: https://docs.platformio.org/page/boards/quectel/ec2x.html\nPLATFORM: Quectel 2.0.3 #fbd7a6e > Quectel EC2x module\nHARDWARE: ARM, MDM9607 1200MHz, 10.00MB RAM, 10.00MB Flash\nDEBUG: Current (uart) On-board (uart)\nPACKAGES: framework-quectel 44bdff7, toolchain-gccarmnoneeabi 1.70201.0 (7.2.1)\nImportError: No module named arduino-ec2x:\n File \"C:\\users\\madhav\\.platformio\\penv\\lib\\site-packages\\platformio\\builder\\main.py\", line 126:\n env.SConscript(\"$BUILD_SCRIPT\")\n File \"C:\\Users\\Madhav\\.platformio\\packages\\tool-scons\\script\\..\\engine\\SCons\\Script\\SConscript.py\", line 541:\n return _SConscript(self.fs, *files, **subst_kw)\n File \"C:\\Users\\Madhav\\.platformio\\packages\\tool-scons\\script\\..\\engine\\SCons\\Script\\SConscript.py\", line 250:\n exec _file_ in call_stack[-1].globals\n File \"C:\\users\\madhav\\.platformio\\platforms\\quectel\\builder\\main.py\", line 21:\n elf = env.BuildProgram()\n File \"C:\\Users\\Madhav\\.platformio\\packages\\tool-scons\\script\\..\\engine\\SCons\\Environment.py\", line 224:\n return self.method(*nargs, **kwargs)\n File \"C:\\users\\madhav\\.platformio\\penv\\lib\\site-packages\\platformio\\builder\\tools\\platformio.py\", line 110:\n env.BuildFrameworks(env.get(\"PIOFRAMEWORK\"))\n File \"C:\\Users\\Madhav\\.platformio\\packages\\tool-scons\\script\\..\\engine\\SCons\\Environment.py\", line 224:\n return self.method(*nargs, **kwargs)\n File \"C:\\users\\madhav\\.platformio\\penv\\lib\\site-packages\\platformio\\builder\\tools\\platformio.py\", line 291:\n SConscript(env.GetFrameworkScript(f), exports=\"env\")\n File \"C:\\Users\\Madhav\\.platformio\\packages\\tool-scons\\script\\..\\engine\\SCons\\Script\\SConscript.py\", line 604:\n return method(*args, **kw)\n File \"C:\\Users\\Madhav\\.platformio\\packages\\tool-scons\\script\\..\\engine\\SCons\\Script\\SConscript.py\", line 541:\n return _SConscript(self.fs, *files, **subst_kw)\n File \"C:\\Users\\Madhav\\.platformio\\packages\\tool-scons\\script\\..\\engine\\SCons\\Script\\SConscript.py\", line 250:\n exec _file_ in call_stack[-1].globals\n File \"C:\\users\\madhav\\.platformio\\platforms\\quectel\\builder\\frameworks\\arduino.py\", line 11:\n m = __import__(module)\n========================= [FAILED] Took 3.23 seconds ========================="

Compilation and Upload error + crosscompile library query - OpenCPU M66 @ linux vscode.

Hi,
First of all I haven't found any forum/community to post the query so i am sorry if i am doing this in the wrong place.
I am working on an IOT related project using Quectel M66 module. Previously we were working in a windows environment using the official openCPU Quectel SDK for the M66 module. No problem there, worked real fine and was uploaded to the module without any errors. I have only seen your library yesterday and i have tried to port the project over to a linux environment. I haven't used platformIO before. I have installed the platformio visual studio IDE in linux and successfully installed all libraries based on your documentation. Copied the code over and hit build button in the platformIO Project Tasks and a few errors were thrown by the compiler. I have identified some of the issues and now passing it over to you so that you can resolve it from your end.

  1. Include file name typo error in supplied RIL library.
    The typos are same with the libraries supplied in windows Quectel M66 sdk. But SDK compiler didn't threw an error. Might be helpful for others attempting to port their code.
    ril_dir - ~/.platformio/packages/framework-quectel/opencpu/m66/
    a) #include "Lib_ril_sms.h" - Line 39 in "ril_sms.h" should be - #include "lib_ril_sms.h"
    b) #include "ril.h " - Line 35 in "ril_atResponse.c" should be - #include "ril.h"
    c) #include "ril_telephony.h " - Line 36 in "ril_telephony.c" should be - #include "ril_telephony.h"
    d) #include "ril_telephony.h " - Line 38 in "ril_urc.c" should be - #include "ril_telephony.h"
    c) #include "ril_util.h " - Line 33 in "ril_util.c" should be - #include "ril_util.h"

  2. Custom Feature definition.
    Inorder to use sms, call, fota features, I need to enable the features in the custom_feature_def.h located in the project folder. If i use the file created during project initialization(with none of the features enabled), the error is thrown as follows.

.pioenvs/m66/src/main.o: In function smsSend': main.c:(.text+0x192): undefined reference to RIL_SMS_SendSMS_Text_Ext'
.pioenvs/m66/src/main.o: In function urc_incoming_call_handler': main.c:(.text+0xc8e): undefined reference to RIL_Telephony_Hangup'
.pioenvs/m66/src/main.o: In function ParseSerialCommand': main.c:(.text+0xe84): undefined reference to RIL_Telephony_Dial'
.pioenvs/m66/src/main.o: In function urc_incoming_sms_handler': main.c:(.text+0x17a2): undefined reference to RIL_SMS_ReadSMS_Text'
.pioenvs/m66/src/main.o: In function Fota_Upgrade': main.c:(.text.unlikely+0x4a): undefined reference to Ql_FOTA_StartUpgrade'
collect2: error: ld returned 1 exit status
*** [.pioenvs/m66/program.elf] Error 1

The error doesn't even mention the existence of a config_feature_def.h. Or that I should check if necessary flags are enabled. Perhaps that can be resolved in the documentation.
After enabling the flags the program compiled successfully.

  1. upload to M66 device.
    I have used the upload option in Project Tasks. The compiler gives me this error. Now how/where do i specify these options?

Error: Please specify upload_port for environment or use global --upload-port option.
For some development platforms it can be a USB flash drive (i.e. /media//)
*** [upload] Explicit exit, status 1

in windows sdk I could select all this in the gui program they supplied.
Parameters used in win - - baudrate - 115200. device name-M66FA. COM1

  1. As for the query, Is it posssible to compile wolfssl/openssl for openCPU and use it along with platform-quectel? I need to create JWT token for google cloud iot authentication. Every available source mentions using external hardware ICs for obtaining the encrypted string.I am just trying to see if I could create a JWT token from M66 module itself. The jwt string needs to be signed by a key and thats where ssl library comes to play.
    The truth is that I am more of a python programmer and I never tried crosscompiling before and don't have much time to spend, if it isn't productive. If it is possible can you mention how I can do that.

Thank you. And thank you again for this amazing work.

Run framework on M26

Hi is it possible to run this framework on the M26 Chinese version of M66?
What changes need to be made to make it work?

BG96 - Arduino Won't build

Hi there,

Thanks for the effort putting together this library for Quectel modules. I am trying to get the BG96 going on Arduino - Platform IO.

When I build I get the following:

Executing task: C:\Users\root.platformio\penv\Scripts\platformio.exe run <

Processing bg96 (platform: quectel; board: bg96; framework: arduino)

Verbose mode can be enabled via -v, --verbose option
?[32m<<<<<<<<<<<< QUECTEL BG96 MODULE 2018 Georgi Angelov >>>>>>>>>>>>
CONFIGURATION: https://docs.platformio.org/page/boards/quectel/bg96.html
PLATFORM: Quectel 2.0.3 #fbd7a6e > Quectel BG96 module
HARDWARE: ARM, MDM9206 1200MHz, 3.00MB RAM, 3.00MB Flash
DEBUG: Current (uart) On-board (uart)
PACKAGES: framework-quectel 44bdff7, toolchain-gccarmnoneeabi 1.70201.0 (7.2.1)
CORE bg96 SDK2 RO_BASE = 0x40000000 HEAP = 1048576
LDF: Library Dependency Finder -> http://bit.ly/configure-pio-ldf
LDF Modes: Finder ~ chain, Compatibility ~ soft
Found 6 compatible libraries
Scanning dependencies...
No dependencies
Compiling .pio\build\bg96\src\main.cpp.o
Compiling .pio\build\bg96_arduino\IPAddress.cpp.o
Compiling .pio\build\bg96_arduino\Print.cpp.o
Compiling .pio\build\bg96_arduino\Stream.cpp.o
Compiling .pio\build\bg96_arduino\WMath.cpp.o
Compiling .pio\build\bg96_arduino\WString.cpp.o
Compiling .pio\build\bg96_arduino\cbuf.cpp.o
Compiling .pio\build\bg96_arduino\dtostrf.c.o
Compiling .pio\build\bg96_arduino\new.cpp.o
Compiling .pio\build\bg96_arduino\wiring_pulse.c.o
Compiling .pio\build\bg96_arduino\wiring_shift.c.o
Compiling .pio\build\bg96_core\HardwareSerial.cpp.o
Compiling .pio\build\bg96_core\arduino_main.cpp.o
Compiling .pio\build\bg96_core\ril.cpp.o
Compiling .pio\build\bg96_core\std.c.o
Compiling .pio\build\bg96_core\wiring.cpp.o
Archiving .pio\build\bg96\lib_arduino.a
Compiling .pio\build\bg96_core\wiring_analog.c.o
Compiling .pio\build\bg96_core\wiring_digital.c.o
Compiling .pio\build\bg96_variant\variant.cpp.o
Compiling .pio\build\bg96_variant\variant_pins.c.o
Compiling .pio\build\bg96_threadx\interface.c.o
Archiving .pio\build\bg96\lib_core.a
Compiling .pio\build\bg96_threadx\preamble.c.o
Compiling .pio\build\bg96_threadx\qapi_src.c.o
Archiving .pio\build\bg96\lib_variant.a
Compiling .pio\build\bg96_wizio\common.c.o
Compiling .pio\build\bg96_wizio\dbg.c.o
Compiling .pio\build\bg96_wizio\scanf.c.o
Archiving .pio\build\bg96\lib_threadx.a
Compiling .pio\build\bg96_wizio\snprintf.c.o
Archiving .pio\build\bg96\lib_custom.a
Archiving .pio\build\bg96\lib_wizio.a
Linking .pio\build\bg96\program.elf
Checking size .pio\build\bg96\program.elf
Building .pio\build\bg96\program.bin
Memory Usage -> http://bit.ly/pio-memory-usage
DATA: [=== ] 33.6% (used 1056336 bytes from 3145729 bytes)
PROGRAM: [ ] 0.4% (used 13213 bytes from 3145729 bytes)
ADD HEADER
*** [.pio\build\bg96\program.ini] TypeError : a bytes-like object is required, not 'str'
Traceback (most recent call last):
File "C:\Users\root.platformio\packages\tool-scons\script..\engine\SCons\Action.py", line 1209, in execute
result = self.execfunction(target=target, source=rsources, env=env)
File "C:\Users\root.platformio\platforms\quectel\builder\frameworks\arduino-bg96.py", line 24, in dev_header
f.write("/datatx/program.bin")
TypeError: a bytes-like object is required, not 'str'

I will appreciate your assistance

BC26 module cannot upload @ linux VScode

Some upload openCPU BC26 flash error:

Short press
Auto-detected: /dev/ttyUSB0
Uploading: program
Wait for Power ON or Reset module <.........................................> DONE
Starting <..........
ERROR: DA 1 status
*** [upload] Explicit exit, status 2
===================================== [ERROR] Took 5.91 seconds =====================================
The terminal process terminated with exit code: 1

Long Press
Auto-detected: /dev/ttyUSB0
Uploading: program
Wait for Power ON or Reset module <..................> DONE
Starting <....................................................................................................................
ERROR: baudrate CONF
*** [upload] Explicit exit, status 2
===================================== [ERROR] Took 1.64 seconds =====================================
The terminal process terminated with exit code: 1

I m not use BC66-TE-B, I used another board.

I'm trying to change the repeat time of

def da_start(self, nvdm = False): from 50 to 500, it still failed to upload.

When I use windows MTK IOT Flashtool.exe, following the guidance, it succ to upload.

http://doc.iotxx.com/NB-QuickStarter%E4%BD%BF%E7%94%A8%E8%AF%B4%E6%98%8E%E4%B9%A6

Carrirer board system diagram like below:
http://doc.iotxx.com/%E6%96%87%E4%BB%B6:%E5%8A%9F%E8%83%BD%E6%A1%86%E5%9B%BE-NBQS.png

Core Board system diagram like below:
http://doc.iotxx.com/NB260%E7%A1%AC%E4%BB%B6%E8%AE%BE%E8%AE%A1%E6%89%8B%E5%86%8C#/media/File:%E5%8A%9F%E8%83%BD%E6%A1%86%E5%9B%BE-NB260.png

The SDK is BC26_OpenCPU_SDK_BETA0801
SDK bin file: BC26NBR01A03 which launched at Aug 2018.

Bug in math.h in toolchain

Whenever I use sqrt function from math.h library QFlash shows this error
image

But when I the Quectel sdk which uses a different toolchain there is no such errors

support for EC200U

Hi,

I have used this development form M66 before. both arduino and OpenCPU framework.
Now I came across a requirement where EC200U need to use.
Can we have EC200U (QuecOpen) framework support. only platformio integration not Arduino

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.