Wiz-IO / Arduino-Quectel-BC66

Arduino port for Quectel BC66 LTE Narow Band modules ( OpenCPU based )
46 stars 20 forks source link

Code uploaded but not running #19

Closed mightChamp closed 3 years ago

mightChamp commented 4 years ago

I am testing BC66-TE-B-KIT without SIM. Just want some data print on serial for now. I uploaded BC66NBR01A04V01 firmware to BC66-TE-B-KIT, then I uploaded code successfully to BC66-TE-B-KIT. After code upload not getting any prints on serial port.

When I press PWR_KEY I got this :

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

After that nothing happens.

Wiz-IO commented 4 years ago

select from Arduino IDE Tools - drop-down menu ... module firmware, then compile and upload

mightChamp commented 4 years ago

I have uploaded my code with BC66NBR01A04V01 selected and complied from Arduino IDE already, but I didn't get any output on serial port. Then I tries PlatfromIO for this task. Code compiled but I am unable to upload code to it. I got error in uploading:

ERROR: EPP Answer *** [upload] Explicit exit, status 2 ============================= [FAILED] Took 3.55 seconds ============== The terminal process terminated with exit code: 1

Wiz-IO commented 4 years ago

on boot

mightChamp commented 4 years ago

There is only PWR_KEY,RESET and PSM_ENT push button on this kit. How to know module is OFF, and which is button ON?

There is two LED for indication one is NET_LIGHT and second one is PSM_IND. On Start PSM_IND is on and NET_LIGHT is off. and when to upload code by pressing PWR_KEY NET_LIGHT becomes on and after code upload done this becomes off https://cdn.shopify.com/s/files/1/0067/0249/7890/products/bc66dev-kit_600x_crop_center.png?v=1571108375

Wiz-IO commented 4 years ago

https://fmgelectronics.ie/wp-content/uploads/2019/10/BC66-DVK-Quectel-BC66-Development-Board.jpg

???

mightChamp commented 4 years ago

There is only PWR_KEY,RESET and PSM_ENT push button on this kit. How to know module is OFF, and which is button ON?

There is two LED for indication one is NET_LIGHT and second one is PSM_IND. On Start PSM_IND is on and NET_LIGHT is off. and when to upload code by pressing PWR_KEY NET_LIGHT becomes on and after code upload done this becomes off https://cdn.shopify.com/s/files/1/0067/0249/7890/products/bc66dev-kit_600x_crop_center.png?v=1571108375

I updated it please look for it.

mightChamp commented 4 years ago

image

Wiz-IO commented 4 years ago

bc66dev-kit_600x_crop_center

Wiz-IO commented 4 years ago

are you sure that firmware is BC66NBR01A04V01?

mightChamp commented 4 years ago

I think am sure I use this link https://app.box.com/s/3wrkh1yzn09yuyb5f8v5vllmlir0571s to download firmware.

Wiz-IO commented 4 years ago

with this firmware I work one year

mightChamp commented 4 years ago

From Iot Flash Flash Tool selected flash_download.cfg files before This I taken backup of nvdm. Then I click Start and pressed PWR_KEY and Firmware uploaded to it. Then I uploaded Code from Arduino IDE.

mightChamp commented 4 years ago

with this firmware I work one year

Thats's sound great. Could you think this as a Hardware Side Issue? As there are many jumpers on board and have to select them proper to make it work?

Wiz-IO commented 4 years ago

if IoT tool work the jumper is OK are you sure that your module is BC66NB-04-STD

mightChamp commented 4 years ago

Yes module is BC66NB-04-STD it is mentioned on module. Is SIM card is necessary for module? can I test without it?

Wiz-IO commented 4 years ago

no idea ... must work fine or wrong application code

Wiz-IO commented 4 years ago

yes, work without SIM

mightChamp commented 4 years ago

can you be sure that this code will works:

void setup(){ Serial.begin(115200); Serial.println("Hello"); } void loop(){ }

I also tried printing in loop() but didn't work.

Wiz-IO commented 4 years ago

yep, this serial use usb-com as IoT Tool

Wiz-IO commented 4 years ago

https://github.com/Wiz-IO/Arduino-Quectel-BC66/blob/master/examples/info/info.ino#L62

mightChamp commented 4 years ago

usb-com means USB_DEBUG microusb port? When I connect board I get 4 COM ports. I use interference 0 (COM31 on my PC) for code upload.

Wiz-IO commented 4 years ago

20200319_120557

Wiz-IO commented 4 years ago

btw: Arduino IDE not support version 10

if you want to use v10 use PlatformIO port

mightChamp commented 4 years ago

btw: Arduino IDE not support version 10

if you want to use v10 use PlatformIO port

Sorry but I din't get v10? Which is about v10

mightChamp commented 4 years ago

btw: Arduino IDE not support version 10

if you want to use v10 use PlatformIO port

I tried platformIO also but I unable to upload code there? get this issue : ERROR: EPP Answer *** [upload] Explicit exit, status 2 ============================= [FAILED] Took 3.55 seconds ============================= The terminal process terminated with exit code: 1

Wiz-IO commented 4 years ago

PIO not support v4 and 5 https://github.com/Wiz-IO/platform-quectel/wiki/SDK-BC66