Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RF Bridge: new layout - where to flash? #1126

Closed
binderth opened this issue Nov 4, 2017 · 11 comments
Closed

RF Bridge: new layout - where to flash? #1126

binderth opened this issue Nov 4, 2017 · 11 comments

Comments

@binderth
Copy link

binderth commented Nov 4, 2017

I just received a new(?) Sonoff RF Bridge 433 and I'm wondering, where to Flash this one:
image

The Layout looks different than those pictured here in the Wiki.

What I did:

  1. connected GND, TX, RX und 3v3 at the markings (1)
  2. pressed the Pairing button
  3. connected the USB
  4. Started flashing
  5. but while trying to Flash Atom throws an error.

There are another inputs at (2), but without GND... Should I use those?

Atom - log:

[11/04/17 15:44:37] Processing sonoff (build_flags: -Wl,-Tesp8266.flash.1m0.ld -DMQTT_MAX_PACKET_SIZE=512; lib_deps: PubSubClient, NeoPixelBus, IRremoteESP8266, ArduinoJSON; platform: espressif8266; boa
rd: esp01_1m; framework: arduino; monitor_baud: 115200; board_flash_mode: dout)
 
Verbose mode can be enabled via `-v, --verbose` option
Converting sonoff.ino
Collected 32 compatible libraries
Looking for dependencies...

Library Dependency Graph
|-- <PubSubClient> v2.6
|-- <NeoPixelBus> v2.2.6
|   |-- <SPI> v1.0
|-- <IRremoteESP8266> v1.0.2
|-- <ESP8266HTTPClient> v1.1
|   |-- <ESP8266WiFi> v1.0
|-- <DNSServer> v1.1.0
|   |-- <ESP8266WiFi> v1.0
|-- <ESP8266mDNS>
|   |-- <ESP8266WiFi> v1.0
|-- <ESP8266WiFi> v1.0
|-- <SPI> v1.0
|-- <ArduinoJson> v5.8.3
|-- <Ticker> v1.0
|-- <ESP8266WebServer> v1.0
|   |-- <ESP8266WiFi> v1.0
|-- <OneWire> v2.3.2
|-- <Wire> v1.0
|-- <ESP8266httpUpdate> v1.1
|   |-- <ESP8266HTTPClient> v1.1
|   |   |-- <ESP8266WiFi> v1.0
|   |-- <ESP8266WiFi> v1.0
Compiling .pioenvs\sonoff\src\sonoff.ino.o
Linking .pioenvs\sonoff\firmware.elf
Checking program size
text       data     bss     dec     hex filename
447287     8500   35568  491355   77f5b .pioenvs\sonoff\firmware.elf
Building .pioenvs\sonoff\firmware.bin
Looking for upload port...
Auto-detected: COM5
Uploading .pioenvs\sonoff\firmware.bin
warning: espcomm_sync failed
error: espcomm_open failed
error: espcomm_upload_mem failed
*** [upload] Error -1
 
 [SUMMARY]
Environment sonoff-NL           [SKIP]
Environment sonoff-minimal      [SKIP]
Environment sonoff-ds18x20      [SKIP]
 [ERROR] Took 10.23 seconds
Environment sonoff              [ERROR]
 [ERROR] Took 10.23 seconds

@arendst
Copy link
Owner

arendst commented Nov 4, 2017

Use 1 and turn switch off during programming.

@tom211
Copy link

tom211 commented Nov 4, 2017

Have a look at your marking. I think you marked "SDA GND RX TX".
The last pin, that you have not marked should be the 3V3 pin.

@binderth
Copy link
Author

binderth commented Nov 5, 2017

Thanks! At least I got a step further. going down one pin I get at least the green LED (labelled PWR) lighting. But there's still an error.
What I tried:

  1. connect the pins one further down to match @tom211's description
  2. trying to get the Bridge into flash mode
    2.1) Holding the "Pairing"-Switch closed the whole procedure
    2.2) Holding the "Pairing"-Switch for 10secs, starting uploading afterwards
  3. got the same error in both Scenarios

I got the second blue LED (labelled WiFi) lighting at some point - but that didn't do the trick either...
edit: It seems, if that happens, the Bridge just started "Normally", so it connects with my WiFi and boots the original firmware.

some ideas for flash mode on this platine layout?

[platformio]
src_dir = sonoff
 
; Uncomment one of the lines below to build/upload only one environment
env_default = sonoff
;env_default = sonoff-NL
;env_default = sonoff-minimal
;env_default = sonoff-ds18x20
 

28.6 s
platformio run --target upload
|   |-- <ESP8266WiFi> v1.0
|-- <OneWire> v2.3.2
|-- <Wire> v1.0
|-- <ESP8266httpUpdate> v1.1
|   |-- <ESP8266HTTPClient> v1.1
|   |   |-- <ESP8266WiFi> v1.0
|   |-- <ESP8266WiFi> v1.0

Compiling .pioenvs\sonoff\src\sonoff.ino.o
Linking .pioenvs\sonoff\firmware.elf
Checking program size
text       data     bss     dec     hex filename
447287     8500   35568  491355   77f5b .pioenvs\sonoff\firmware.elf
Building .pioenvs\sonoff\firmware.bin
Looking for upload port...
Auto-detected: COM5
Uploading .pioenvs\sonoff\firmware.bin
warning: espcomm_sync failed
error: espcomm_open failed
error: espcomm_upload_mem failed
*** [upload] Error -1
 [ERROR] Took 27.21 seconds
 
 [SUMMARY]
Environment sonoff-NL           [SKIP]
Environment sonoff-minimal      [SKIP]
Environment sonoff-ds18x20      [SKIP]
Environment sonoff              [ERROR]
 [ERROR] Took 27.21 seconds

@binderth
Copy link
Author

binderth commented Nov 5, 2017

GOT IT!
I didn't understand @arendst's comment fully at first, but "turn Switch off" was not meant to release the Pairing-Switch - but the OFF / ON Switch on the platine. after turning that to OFF, I could Flash now.

Hint: no need to press the pairing Switch the whole time, just as usual after connecting the USB writer

ToDo:

  1. connect those Pins
  2. turn Switch to OFF
  3. connect USB writer while Holding down the Pairing-button
  4. flashing - and enjoy!
    image

@binderth binderth closed this as completed Nov 5, 2017
@kajmaj
Copy link

kajmaj commented Oct 12, 2018

Another version of RF Bridge R2?:

img_20181012_104329
img_20181012_132247
img_20181012_132254
It is necessary to peel the big flat LED off, switch (2) and pin header (1) is located under it.
Flashing procedure is the same.

@SteveDinn
Copy link

I have the version labelled "R2 v1.0" and "2017.11.23", but I have been unable to get it to flash. I have the switch off, holding the button down when I connect the wires, then nothing. Are there any further instructions or steps for this version of the board?

@kajmaj
Copy link

kajmaj commented Dec 1, 2018

Try to change RX and TX

@Kobo2002
Copy link

I have the version labelled "R2 v1.0" and "2017.11.23", but I have been unable to get it to flash. I have the switch off, holding the button down when I connect the wires, then nothing. Are there any further instructions or steps for this version of the board?

could you flash ?? and how did it ??

@SteveDinn
Copy link

Nope, I have not as yet been able to even get it into programming mode. It just doesn't want to do it.

@Kobo2002
Copy link

Nope, I have not as yet been able to even get it into programming mode. It just doesn't want to do it.

I reflash yesterday after many attempts

@SteveDinn
Copy link

Good news (well, bad news for me). I now believe that my FTDI adapter has stopped working, so it may not be the fault of the Sonoff RF Bridge at all. I went back to re-flash an old Sonoff Basic, and I saw the same behaviour. I've ordered a couple of new FTDI adapters, so I'll try to flash it again once they arrive.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants