[SOLVED] Electron high frequency flashing in cyan

I have the same problem. Worked great, first OTA firmware flash, now I’m stuck on this flashing cyan thing.

I sent my logs to support a few days ago, but haven’t heard back. I even tried deactivating and activating my SIM.

Anyone solve this yet?

(And I have both power sources, have left it overnight etc etc. This is now running the tinker + debug firmware, sits on flashing cyan for a while, then reboots, white, green, cyan…)

1 Like

Something else to try - power down the device completely - remove usb and battery for 1 minute then power up.

It is the same … I wonder if I should flash an older firmware …

That’s certainly something to try, just to get more data on the situation. You can download the system part1 and system part2 binaries from https://github.com/spark/firmware/releases/tag/v0.4.8-rc.6.

Since you are downgrading, be sure to flash part2 before part1.

1 Like

➜ electron dfu-util -d 2b04:d00a -a 0 -s 0x8040000 -D system-part2-v0.4.8-rc.6-electron.bin
dfu-util 0.9

Copyright 2005-2009 Weston Schmidt, Harald Welte and OpenMoko Inc.
Copyright 2010-2016 Tormod Volden and Stefan Schmidt
This program is Free Software and has ABSOLUTELY NO WARRANTY
Please report bugs to dfu-util / Tickets

dfu-util: Invalid DFU suffix signature
dfu-util: A valid DFU suffix will be required in a future dfu-util release!!!
Opening DFU capable USB device...
ID 2b04:d00a
Run-time device DFU version 011a
Claiming USB DFU Interface...
Setting Alternate Setting #0 ...
Determining device status: state = dfuIDLE, status = 0
dfuIDLE, continuing
DFU mode device DFU version 011a
Device returned transfer size 4096
DfuSe interface name: "Internal Flash "
Downloading to address = 0x08040000, size = 121532
Download [=========================] 100% 121532 bytes
Download done.
File downloaded successfully
➜ electron dfu-util -d 2b04:d00a -a 0 -s 0x8020000 -D system-part1-v0.4.8-rc.6-electron.bin
dfu-util 0.9

Copyright 2005-2009 Weston Schmidt, Harald Welte and OpenMoko Inc.
Copyright 2010-2016 Tormod Volden and Stefan Schmidt
This program is Free Software and has ABSOLUTELY NO WARRANTY
Please report bugs to dfu-util / Tickets

dfu-util: Invalid DFU suffix signature
dfu-util: A valid DFU suffix will be required in a future dfu-util release!!!
Opening DFU capable USB device...
ID 2b04:d00a
Run-time device DFU version 011a
Claiming USB DFU Interface...
Setting Alternate Setting #0 ...
Determining device status: state = dfuIDLE, status = 0
dfuIDLE, continuing
DFU mode device DFU version 011a
Device returned transfer size 4096
DfuSe interface name: "Internal Flash "
Downloading to address = 0x08020000, size = 130884
Download [=========================] 100% 130884 bytes
Download done.
File downloaded successfully
➜ electron dfu-util -d 2b04:d00a -a 0 -s 0x8080000:leave -D tinker-v0.4.8-rc.6-electron.bin
dfu-util 0.9

Copyright 2005-2009 Weston Schmidt, Harald Welte and OpenMoko Inc.
Copyright 2010-2016 Tormod Volden and Stefan Schmidt
This program is Free Software and has ABSOLUTELY NO WARRANTY
Please report bugs to dfu-util / Tickets

dfu-util: Invalid DFU suffix signature
dfu-util: A valid DFU suffix will be required in a future dfu-util release!!!
Opening DFU capable USB device...
ID 2b04:d00a
Run-time device DFU version 011a
Claiming USB DFU Interface...
Setting Alternate Setting #0 ...
Determining device status: state = dfuIDLE, status = 0
dfuIDLE, continuing
DFU mode device DFU version 011a
Device returned transfer size 4096
DfuSe interface name: "Internal Flash "
Downloading to address = 0x08080000, size = 5776
Download [=========================] 100% 5776 bytes
Download done.
File downloaded successfully
➜ electron

Still flashing cyan rapidly … I am suspecting SIM card, it is the only thing I have no control on it … I have given support CCID and device ID … have not heard back yet

– update now we have two orange (amber) blinks, towards end of the video at 1:46

https://drive.google.com/open?id=0B0SsthVR7OaPaXdNR0xFVzVQWTg

Looks like a dns issue or a network level routing issue at particle level ( cellular connection goes through )

0000095890:INFO : void establish_cloud_connection() (213):cloud: connecting
0000095897:DEBUG: int Spark_Connect() (827):sparkSocket Now =-1
0000095904:DEBUG: int Spark_Connect() (846):HAL_FLASH_Read_ServerAddress() = type:1,domain:$id.udp.particle.io,ip: 46.100.105.36, port: 65535
95.919 AT send 56 "AT+UDNSRN=0,“2e0047001951343334363036.udp.particle.io”\r\n"
95.928 AT read + 14 "\r\n+UUSOCL: 0\r\n"
Socket -1: handle 0 closed by remote host
125.939 AT send 56 "AT+UDNSRN=0,“2e0047001951343334363036.udp.particle.io”\r\n"
155.959 AT send 56 "AT+UDNSRN=0,“2e0047001951343334363036.udp.particle.io”\r\n"
157.428 AT read ERR 9 "\r\nERROR\r\n"
0000157433:ERROR: int determine_connection_address(IPAddress&, uint16_t&, ServerAddress&, bool) (793):cloud: unable to resolve IP for 2e0047001951343334363036.udp.particle.io
0000157450:WARN : void establish_cloud_connection() (224):Cloud socket connection failed: -1
0000157460:ERROR: void handle_cfod() (171):Resetting CC3000 due to 2 failed connect attempts
0000157469:DEBUG: int Internet_Test() (654):Internet test socket
socketSocket(TCP)
157.478 AT send 12 "AT+USOCR=6\r\n"
157.493 AT read + 13 "\r\n+USOCR: 0\r\n"
157.508 AT read OK 6 "\r\nOK\r\n"
Socket 0: handle 0 was created
0000157515:DEBUG: int Internet_Test() (656):socketed testSocket=0
0000157522:DEBUG: int Internet_Test() (678):Connect Attempt
socketConnect(0,port:53)
157.531 AT send 25 "AT+USOCO=0,“8.8.8.8”,53\r\n"
0000167547:DEBUG: int Internet_Test() (680):socket_connect()=fail
0000167553:DEBUG: int Internet_Test() (689):Close
socketClose(0)
167.560 AT send 12 "AT+USOCL=0\r\n"
176.085 AT read ERR 9 "\r\nERROR\r\n"
176.089 AT send 9 "AT+CEER\r\n"
176.104 AT read + 32 "\r\n+CEER: “No report available”\r\n"
176.121 AT read OK 6 "\r\nOK\r\n"
socketFree(0)
0000176126:WARN : void manage_network_connection() (99):!! Resetting WLAN due to SPARK_WLAN_RESET

Doing a dig 2e0047001951343334363036.udp.particle.io

2e0047001951343334363036.udp.particle.io. 59 IN CNAME udp-worker.prod-udp-device-service.2c1601ab.svc.dockerapp.io.
udp-worker.prod-udp-device-service.2c1601ab.svc.dockerapp.io. 59 IN A 54.174.165.65
udp-worker.prod-udp-device-service.2c1601ab.svc.dockerapp.io. 59 IN A 52.91.25.61
udp-worker.prod-udp-device-service.2c1601ab.svc.dockerapp.io. 59 IN A 54.86.250.117
udp-worker.prod-udp-device-service.2c1601ab.svc.dockerapp.io. 59 IN A 54.172.108.158

Doing traceroute and taking a guess at particle infrastructure at service discovery ( dynamic subdomain assignment ) layer which bring up a dockor container to manage individual devices there is a slow down, which causes a time out that manifests itself as a domain not resolved … ( or I am completely wrong :slight_smile: )

➜  electron traceroute 2e0047001951343334363036.udp.particle.io
traceroute: Warning: 2e0047001951343334363036.udp.particle.io has multiple addresses; using 54.174.165.65
traceroute to udp-worker.prod-udp-device-service.2c1601ab.svc.dockerapp.io (54.174.165.65), 64 hops max, 52 byte packets
 1  192.168.0.1 (192.168.0.1)  2.618 ms  2.016 ms  1.839 ms
 2  7.11.164.109 (7.11.164.109)  12.662 ms  9.699 ms  10.457 ms
 3  209.148.243.225 (209.148.243.225)  22.109 ms  19.525 ms  29.974 ms
 4  van58-9-230-109.dynamic.rogerstelecom.net (209.148.230.109)  29.928 ms  46.588 ms  23.006 ms
 5  van58-9-230-134.dynamic.rogerstelecom.net (209.148.230.134)  39.811 ms  29.998 ms  29.829 ms
 6  * * *
 7  52.95.62.26 (52.95.62.26)  34.624 ms
    52.95.62.58 (52.95.62.58)  47.313 ms
    52.95.62.26 (52.95.62.26)  39.527 ms
 8  52.95.62.127 (52.95.62.127)  29.648 ms
    52.95.62.79 (52.95.62.79)  39.700 ms
    52.95.62.95 (52.95.62.95)  38.435 ms
 9  54.239.42.61 (54.239.42.61)  49.544 ms  52.821 ms  46.794 ms
10  54.239.42.66 (54.239.42.66)  49.708 ms  49.746 ms  49.288 ms
11  * * *
12  * * *
13  54.239.110.231 (54.239.110.231)  62.308 ms
    54.239.110.223 (54.239.110.223)  69.426 ms
    54.239.110.219 (54.239.110.219)  145.280 ms
14  54.239.110.25 (54.239.110.25)  49.752 ms
    54.239.111.75 (54.239.111.75)  49.750 ms
    54.239.111.73 (54.239.111.73)  49.775 ms
15  205.251.244.193 (205.251.244.193)  49.800 ms  49.660 ms
    205.251.244.191 (205.251.244.191)  46.840 ms
16  * * *
17  * * *
18  * * *
19  * * *
20  * * *
21  ec2-54-174-165-65.compute-1.amazonaws.com (54.174.165.65)  45.619 ms  49.890 ms  50.010 ms

So average resolution takes 2 minutes and 30 seconds. So a longer timeout in the connection settings should be enough.

rapid flashing cyan :smile:

void establish_cloud_connection()
{
if (network.ready() && !SPARK_WLAN_SLEEP && !SPARK_CLOUD_SOCKETED)
{
if (Spark_Error_Count)
handle_cloud_errors();

    SPARK_LED_FADE = 0;
    LED_SetRGBColor(RGB_COLOR_CYAN);
    if (in_cloud_backoff_period())
        return;

    INFO("Cloud: connecting");
    LED_On(LED_RGB);
    int connect_result = spark_cloud_socket_connect();
    if (connect_result >= 0)
    {
        cfod_count = 0;
        SPARK_CLOUD_SOCKETED = 1;
        INFO("Cloud socket connected");
    }
    else
    {
        WARN("Cloud socket connection failed: %d", connect_result);
        SPARK_CLOUD_SOCKETED = 0;
        // if the user put the networkin listening mode via the button,
        // the cloud connect may have been cancelled.
        if (SPARK_WLAN_RESET || network.listening())
            return;

        cloud_connection_failed();
        handle_cfod();
        network.set_error_count(Spark_Error_Count);
    }
}

}

and the culprit … 8 seconds is way too low ( I think ) :smile:

which is used here spark_cloud_socket_connect

I’m not convinced - I can’t even ping using the little debugging app. I think either something got screwed up with the modem firmware somehow when I did an OTA flash for the first time or, and this is more likely, my SIM was somehow paused.

reza - have you tried the interactive ‘electron-troubleshooting’ app? Do either of the ping tests work for you? https://particle.faqt.co/share/o7bavo

1 Like

I used this one

https://particle.faqt.co/share/h867h4

And in the output the cellular connection did get established, I will post sanitized version after this post

I will try that later today
https://particle.faqt.co/share/o7bavo

It seems it joins the cellular network but fails to find a route to particle server

electron particle serial monitor
Opening serial monitor for com port: “/dev/cu.usbmodem1411”
.98V
0000000077:DEBUG: void app_setup_and_loop() (571):Hello fregin ] = = = = = = = =

[ Modem::powerOn ] = = = = = = = = = = = = = =
1.426 AT send 4 "AT\r\n"
2.749 AT send 4 "AT\r\n"
4.072 AT send 4 "AT\r\n"
5.395 AT send 4 "AT\r\n"
6.718 AT send 4 "AT\r\n"
8.041 AT send 4 "AT\r\n"
9.364 AT send 4 "AT\r\n"
10.687 AT send 4 "AT\r\n"
12.010 AT send 4 "AT\r\n"
12.023 AT read OK 6 "\r\nOK\r\n"
12.027 AT send 7 "AT E0\r\n"
12.041 AT read OK 6 "\r\nOK\r\n"
12.045 AT send 11 "AT+CMEE=2\r\n"
12.059 AT read OK 6 "\r\nOK\r\n"
12.063 AT send 19 "AT+CMER=1,0,0,2,1\r\n"
12.078 AT read OK 6 "\r\nOK\r\n"
12.082 AT send 15 "AT+IPR=115200\r\n"
12.097 AT read OK 6 "\r\nOK\r\n"
12.201 AT send 10 "AT+CPIN?\r\n"
12.215 AT read + 16 "\r\n+CPIN: READY\r\n"
12.230 AT read OK 6 “\r\nOK\r\n”

[ Modem::init ] = = = = = = = = = = = = = = =
12.239 AT send 9 "AT+CGSN\r\n"
12.263 AT read UNK 19 "\r\n352252067595\r\n"
12.279 AT read OK 6 "\r\nOK\r\n"
12.283 AT send 9 "AT+CGMI\r\n"
12.297 AT read UNK 10 "\r\nu-blox\r\n"
12.311 AT read OK 6 "\r\nOK\r\n"
12.315 AT send 9 "AT+CGMM\r\n"
12.329 AT read UNK 13 "\r\nSARA-U260\r\n"
12.344 AT read OK 6 "\r\nOK\r\n"
12.348 AT send 9 "AT+CGMR\r\n"
12.362 AT read UNK 9 "\r\n23.20\r\n"
12.376 AT read OK 6 "\r\nOK\r\n"
12.380 AT send 9 "AT+CCID\r\n"
12.394 AT read + 30 "\r\n+CCID: 893407650000262\r\n"
12.411 AT read OK 6 "\r\nOK\r\n"
12.415 AT send 11 "AT+UPSV=1\r\n"
12.429 AT read OK 6 "\r\nOK\r\n"
12.433 AT send 12 "AT+CGREG=2\r\n"
12.448 AT read OK 6 "\r\nOK\r\n"
12.452 AT send 11 "AT+CREG=2\r\n"
12.466 AT read OK 6 "\r\nOK\r\n"
12.470 AT send 11 "AT+CMGF=1\r\n"
12.484 AT read OK 6 "\r\nOK\r\n"
12.488 AT send 13 "AT+CNMI=2,1\r\n"
12.503 AT read OK 6 "\r\nOK\r\n"
12.507 AT send 9 "AT+CIMI\r\n"
12.521 AT read UNK 19 "\r\n214074300552\r\n"
12.537 AT read OK 6 “\r\nOK\r\n”

[ Modem::register ] = = = = = = = = = = = = = =
12.546 AT send 10 "AT+CREG?\r\n"
12.560 AT read + 32 "\r\n+CREG: 2,5,“EA88”,“2D7520”,2\r\n"
12.577 AT read OK 6 "\r\nOK\r\n"
12.581 AT send 11 "AT+CGREG?\r\n"
12.595 AT read + 38 "\r\n+CGREG: 2,5,“EA88”,“2D7520”,2,“01”\r\n"
12.613 AT read OK 6 "\r\nOK\r\n"
12.617 AT send 10 "AT+COPS?\r\n"
12.661 AT read + 43 "\r\n+COPS: 0,0,“CAN Rogers Wireless Inc.”,2\r\n"
12.679 AT read OK 6 "\r\nOK\r\n"
12.683 AT send 9 "AT+CNUM\r\n"
12.727 AT read OK 6 "\r\nOK\r\n"
12.731 AT send 8 "AT+CSQ\r\n"
12.745 AT read + 14 "\r\n+CSQ: 20,4\r\n"
12.760 AT read OK 6 “\r\nOK\r\n”

[ Modem::join ] = = = = = = = = = = = = = = = =
12.769 AT send 12 "AT+CGATT=1\r\n"
12.784 AT read OK 6 "\r\nOK\r\n"
12.788 AT send 14 "AT+UPSND=0,8\r\n"
12.803 AT read + 17 "\r\n+UPSND: 0,8,1\r\n"
12.818 AT read OK 6 "\r\nOK\r\n"
12.822 AT send 14 "AT+UPSND=0,0\r\n"
12.837 AT read + 31 "\r\n+UPSND: 0,0,“10.40.167.220”\r\n"
12.854 AT read OK 6 "\r\nOK\r\n"
0000012859:INFO : virtual void particle::protocol::DTLSProtocol::init(const char*, const SparkKeys&, const SparkCallbac…channel inited
0000012873:INFO : void establish_cloud_connection() (213):cloud: connecting
0000012881:DEBUG: int Spark_Connect() (827):sparkSocket Now =-1
0000012888:DEBUG: int Spark_Connect() (846):HAL_FLASH_Read_ServerAddress() = type:1,domain:$id.udp.particle.io,ip: 46.100.105.36, port: 65535
12.902 AT send 56 "AT+UDNSRN=0,“2e0047001951343334363036.udp.particle.io”\r\n"
42.923 AT send 56 "AT+UDNSRN=0,“2e0047001951343334363036.udp.particle.io”\r\n"
72.943 AT send 56 "AT+UDNSRN=0,“2e0047001951343334363036.udp.particle.io”\r\n"
74.032 AT read ERR 9 "\r\nERROR\r\n"
0000074037:ERROR: int determine_connection_address(IPAddress&, uint16_t&, ServerAddress&, bool) (793):cloud: unable to resolve IP for 2e0047001951343334363036.udp.particle.io
0000074054:WARN : void establish_cloud_connection() (224):Cloud socket connection failed: -1
0000074064:DEBUG: int Internet_Test() (654):Internet test socket
On first socketSocket use, free all open sockets
74.076 AT send 15 "AT+USOCTL=0,1\r\n"
74.091 AT read ERR 37 "\r\n+CME ERROR: operation not allowed\r\n"
74.098 AT send 15 "AT+USOCTL=1,1\r\n"
74.113 AT read ERR 37 "\r\n+CME ERROR: operation not allowed\r\n"
74.120 AT send 15 "AT+USOCTL=2,1\r\n"
74.135 AT read ERR 37 "\r\n+CME ERROR: operation not allowed\r\n"
74.142 AT send 15 "AT+USOCTL=3,1\r\n"
74.157 AT read ERR 37 "\r\n+CME ERROR: operation not allowed\r\n"
74.164 AT send 15 "AT+USOCTL=4,1\r\n"
74.179 AT read ERR 37 "\r\n+CME ERROR: operation not allowed\r\n"
74.186 AT send 15 "AT+USOCTL=5,1\r\n"
74.201 AT read ERR 37 "\r\n+CME ERROR: operation not allowed\r\n"
74.208 AT send 15 "AT+USOCTL=6,1\r\n"
74.223 AT read ERR 37 "\r\n+CME ERROR: operation not allowed\r\n"
socketSocket(TCP)
74.232 AT send 12 "AT+USOCR=6\r\n"
74.247 AT read + 13 "\r\n+USOCR: 0\r\n"
74.262 AT read OK 6 "\r\nOK\r\n"
Socket 0: handle 0 was created
0000074269:DEBUG: int Internet_Test() (656):socketed testSocket=0
0000074276:DEBUG: int Internet_Test() (678):Connect Attempt
socketConnect(0,port:53)
74.285 AT send 25 "AT+USOCO=0,“8.8.8.8”,53\r\n"
0000084301**:DEBUG: int Internet_Test() (680):socket_connect()=fail**
0000084307:DEBUG: int Internet_Test() (689):Close
socketClose(0)
84.314 AT send 12 "AT+USOCL=0\r\n"
92.849 AT read ERR 9 "\r\nERROR\r\n"
92.853 AT send 9 "AT+CEER\r\n"
92.868 AT read + 32 "\r\n+CEER: “No report available”\r\n"
92.885 AT read OK 6 "\r\nOK\r\n"
socketFree(0)
0000095890:INFO : void establish_cloud_connection() (213):cloud: connecting
0000095897:DEBUG: int Spark_Connect() (827):sparkSocket Now =-1
0000095904:DEBUG: int Spark_Connect() (846):HAL_FLASH_Read_ServerAddress() = type:1,domain:$id.udp.particle.io,ip: 46.100.105.36, port: 65535
95.919 AT send 56 "AT+UDNSRN=0,“2e0047001951343334363036.udp.particle.io”\r\n"
95.928 AT read + 14 "\r\n+UUSOCL: 0\r\n"
Socket -1: handle 0 closed by remote host
125.939 AT send 56 "AT+UDNSRN=0,“2e0047001951343334363036.udp.particle.io”\r\n"
155.959 AT send 56 "AT+UDNSRN=0,“2e0047001951343334363036.udp.particle.io”\r\n"
157.428 AT read ERR 9 "\r\nERROR\r\n"
0000157433:ERROR: int determine_connection_address(IPAddress&, uint16_t&, ServerAddress&, bool) (793):cloud: unable to resolve IP for 2e0047001951343334363036.udp.particle.io
0000157450:WARN : void establish_cloud_connection() (224):Cloud socket connection failed: -1
0000157460:ERROR: void handle_cfod() (171):Resetting CC3000 due to 2 failed connect attempts
0000157469:DEBUG: int Internet_Test() (654):Internet test socket
socketSocket(TCP)
157.478 AT send 12 "AT+USOCR=6\r\n"
157.493 AT read + 13 "\r\n+USOCR: 0\r\n"
157.508 AT read OK 6 "\r\nOK\r\n"
Socket 0: handle 0 was created
0000157515:DEBUG: int Internet_Test() (656):socketed testSocket=0
0000157522:DEBUG: int Internet_Test() (678):Connect Attempt
socketConnect(0,port:53)
157.531 AT send 25 "AT+USOCO=0,“8.8.8.8”,53\r\n"
0000167547:DEBUG: int Internet_Test() (680):socket_connect()=fail
0000167553:DEBUG: int Internet_Test() (689):Close
socketClose(0)
167.560 AT send 12 "AT+USOCL=0\r\n"
176.085 AT read ERR 9 "\r\nERROR\r\n"
176.089 AT send 9 "AT+CEER\r\n"
176.104 AT read + 32 "\r\n+CEER: “No report available”\r\n"
176.121 AT read OK 6 "\r\nOK\r\n"
socketFree(0)
0000176126:WARN : void manage_network_connection() (99):!! Resetting WLAN due to SPARK_WLAN_RESET

Yep. This is the exact same error I’m getting.

After a while of trying you’ll get the double yellow flash / timeout, then Electron restarts.

Yes it does. And looking at the code it is what is supposed to happen …

So - the question is do we have SIM/provisioning issue, or both have faulty Electrons?..

1 Like