LC: Core goes flashing green after keys swap

Hi @kennethlimcp :slight_smile:

Got a new core recently, and I’m also facing the flashing green forever issues.

I tired the method highlighted in this thread.

  1. Did dfu-util -d 1d50:607f -a 0 -s 0x08005000:leave -D cc3000-patch-programmer.bin

Got the following

dfu-util 0.8

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

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 1d50:607f
Run-time device DFU version 011a
Claiming USB DFU Interface...
Setting Alternate Setting #0 ...
Determining device status: state = dfuERROR, status = 10
dfuERROR, clearing status
Determining device status: state = dfuIDLE, status = 0
dfuIDLE, continuing
DFU mode device DFU version 011a
Device returned transfer size 1024
DfuSe interface name: "Internal Flash  "
Downloading to address = 0x08005000, size = 25248
Download	[=========================] 100%        25248 bytes
Download done.
File downloaded successfully
Transitioning to dfuMANIFEST state
  1. Also did dfu-util -d 1d50:607f -a 0 -s 0x08005000:leave -D spark_tinker.bin
    got the following

    dfu-util 0.8

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

    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 1d50:607f
    Run-time device DFU version 011a
    Claiming USB DFU Interface…
    Setting Alternate Setting #0
    Determining device status: state = dfuERROR, status = 10
    dfuERROR, clearing status
    Determining device status: state = dfuIDLE, status = 0
    dfuIDLE, continuing
    DFU mode device DFU version 011a
    Device returned transfer size 1024
    DfuSe interface name: "Internal Flash "
    Downloading to address = 0x08005000, size = 79996
    Download [=========================] 100% 79996 bytes
    Download done.
    File downloaded successfully
    Transitioning to dfuMANIFEST state

after which I got a blinking blue, so I use it with spark setup wifi
the core’s led turn off for a moment
than it start to become solid blue (for a few second)
and goes back to flashing green again

Could I be flashing the core wrong way?

Thank you

edited : video link

Left is the core that is flashing green while right core is the one that flashing green than to red which I ask in another thread.

1.) A quick way to test would be to setup a hotspot using your mobile phone and send in the Wifi credentials via USB.

If this works, that implies the wifi network settings might have some issue we need to look into further.

2.) Make sure the core you use has an antenna attached if you bought the u.fl version

3.) If you have Spark-cli installed, update it to the latest using sudo npm update -g spark-cli and use the command spark flash --usb cc3000 in DFU mode for the patching.

Let me know how it goes :wink:

1 Like

Hi @kennethlimcp

did both

➜  ~  spark flash --usb cc3000
FOUND DFU DEVICE 1d50:607f
checking file  /Users/bosslee/.nvm/v0.10.13/lib/node_modules/spark-cli/binaries/cc3000-patch-programmer.bin
spawning dfu-util -d 1d50:607f -a 0 -i 0 -s 0x08005000:leave -D /Users/bosslee/.nvm/v0.10.13/lib/node_modules/spark-cli/binaries/cc3000-patch-programmer.bin
dfu-util 0.8

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

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 1d50:607f
Run-time device DFU version 011a
Claiming USB DFU Interface...
Setting Alternate Setting #0 ...
Determining device status: state = dfuERROR, status = 10
dfuERROR, clearing status
Determining device status: state = dfuIDLE, status = 0
dfuIDLE, continuing
DFU mode device DFU version 011a
Device returned transfer size 1024
DfuSe interface name: "Internal Flash  "
Downloading to address = 0x08005000, size = 25240
Download	[=========================] 100%        25240 bytes
Download done.
File downloaded successfully
Transitioning to dfuMANIFEST state
Flashed!
➜  ~  spark flash --usb tinker
FOUND DFU DEVICE 1d50:607f
checking file  /Users/bosslee/.nvm/v0.10.13/lib/node_modules/spark-cli/binaries/spark_tinker.bin
spawning dfu-util -d 1d50:607f -a 0 -i 0 -s 0x08005000:leave -D /Users/bosslee/.nvm/v0.10.13/lib/node_modules/spark-cli/binaries/spark_tinker.bin
dfu-util 0.8

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

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 1d50:607f
Run-time device DFU version 011a
Claiming USB DFU Interface...
Setting Alternate Setting #0 ...
Determining device status: state = dfuERROR, status = 10
dfuERROR, clearing status
Determining device status: state = dfuIDLE, status = 0
dfuIDLE, continuing
DFU mode device DFU version 011a
Device returned transfer size 1024
DfuSe interface name: "Internal Flash  "
Downloading to address = 0x08005000, size = 79996
Download	[=========================] 100%        79996 bytes
Download done.
File downloaded successfully
Transitioning to dfuMANIFEST state
Flashed! 

After I finished this 2 steps, the core is blinking blue
I did the following

  1. spark setup wifi
  2. key in the details
  3. spark led goes off
  4. spark led goes to blue
  5. spark goes back to blinking green

Did you try this:

Trying that right now :smiley:

I using an iphone 5.
I set it to hotspot
what do I choose for the following?

Security 0=unsecured, 1=WEP, 2=WPA, 3=WPA2: 


Serial said: Awesome. Now we'll connect!

If you see a pulsing cyan light, your Spark Core
has connected to the Cloud and is ready to go!

If your LED flashes red or you encounter any other problems,
visit https://www.spark.io/support to debug.

    Spark <3 you!


Done!  Your core should now restart.

I tried it with WPA2
and it goes back to the same thing. (flashing green)

Are you using a white or black core? It should probably be WPA or WPA2 so give both a shot.

Edit: Apple says WPA2

Also, just to be sure, you did not mess with the core or server keys?

I did I was trying out with the local cloud setup
but after I failed to get the local cloud up
I did the following from this link
http://support.spark.io/hc/en-us/articles/203038434-How-do-I-backup-restore-change-my-Core-s-Key-

I followed step 3 How to Change your Key:
I have also successfully sent the key

If that’s the case, place the core in DFU mode and run this command spark keys doctor CORE_ID

This will revert the core back a the spark :cloud: public key as well as submit a new core public key to the cloud.

Hi @kennethlimcp

Thanks for helping
As per your instruction I did the following
I put it to DFU, than I did as you instructed
after the final statement of "your core should restart."
the core went back to flashing green

➜  ~  spark keys doctor 54ff6c066678574924440167
running dfu-util -l
FOUND DFU DEVICE 1d50:607f
running openssl genrsa -out 54ff6c066678574924440167_new.pem 1024
running openssl rsa -in 54ff6c066678574924440167_new.pem -pubout -out 54ff6c066678574924440167_new.pub.pem
running openssl rsa -in 54ff6c066678574924440167_new.pem -outform DER -out 54ff6c066678574924440167_new.der
New Key Created!
running dfu-util -l
FOUND DFU DEVICE 1d50:607f
running dfu-util -l
FOUND DFU DEVICE 1d50:607f
running dfu-util -d 1d50:607f -a 1 -s 0x00002000:1024 -U pre_54ff6c066678574924440167_new.der
running openssl rsa -in pre_54ff6c066678574924440167_new.der -inform DER -pubout  -out pre_54ff6c066678574924440167_new.pub.pem
Saved!
checking file  54ff6c066678574924440167_new.der
spawning dfu-util -d 1d50:607f -a 1 -i 0 -s 0x00002000:leave -D 54ff6c066678574924440167_new.der
dfu-util 0.8

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

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 1d50:607f
Run-time device DFU version 011a
Claiming USB DFU Interface...
Setting Alternate Setting #1 ...
Determining device status: state = dfuIDLE, status = 0
dfuIDLE, continuing
DFU mode device DFU version 011a
Device returned transfer size 1024
DfuSe interface name: "SPI Flash : SST25x"
Downloading to address = 0x00002000, size = 608
Download	[=========================] 100%          608 bytes
Download done.
File downloaded successfully
Transitioning to dfuMANIFEST state
Saved!
attempting to add a new public key for core 54ff6c066678574924440167
submitting public key succeeded!
Okay!  New keys in place, your core should restart.

1.) Awesome! We sorted the keys issue

2.) Seems like your core has some issues trying to connect to the cloud successfully

3.) Can you perform a factory reset and connect to any Wifi network that the core originally worked properly with?

1 Like

I did a factory reset.
this is a new core, have yet to work with existing wifi.

initially, I wanted to try and set up the new core with local cloud.

however this my wifi info

is it of any help?

Update:
1 Factory reset and try to connect back to home network

Same thing happen, after spark setup wifi
led goes off
led goes to blue
led goes to flashing green

2 Factory reset and try to connect back to hotspot network

Same thing happen, after spark setup wifi
led goes off
led goes to blue
led goes to flashing green

Hi @bosslee,

If you’ve patched that flashing green core, and it simply won’t get on the network, but your other core will, it’s possible that unit might be damaged. If you can’t get it to work, can you email us at hello@spark.io, and we can maybe arrange a replacement?

Thanks,
David

Thanks @Dave

I would give it one more try and if it does not work out I would email in.

Thanks for the help and thanks @kennethlimcp for his prompt support.

1 Like

Let me know if local support would help (non spark related) and I can probably take a look at the core.

@kennethlimcp that would be awesome If you have some time. I can head down to SUTD if that works for you. Looking to learn more stuff from you :smile: Maybe we can take this via pm. Messaging you from there.