Author Topic: Failing to factory reset an oak  (Read 10406 times)

exeng

  • Sr. Member
  • ****
  • Posts: 454
Re: Failing to factory reset an oak
« Reply #15 on: December 07, 2016, 05:57:17 pm »
Haven't used this device to restore Oaks but the message you see is usually an indication of the connections between the Oak and FTDI device (serial to USB) not being correct. Also, if you power the Oak via USB, you should be able to get away with connecting only GND, TX and RX between the Oak and FTDI device. That would be GND to GND, TX to RX and RX to TX. Make sure the connections are correct. Is the Wiki diagram correct? Seems the CH340g pins are ordered differently in this .pdf datasheet than what is shown in the Wiki.

http://www.foxdelta.com/products/ST2-0816/ch340g.pdf

That's where I would start.

theevl

  • Newbie
  • *
  • Posts: 5
Re: Failing to factory reset an oak
« Reply #16 on: December 07, 2016, 06:53:32 pm »
this is the USB to serial device that I have.
https://www.aliexpress.com/store/product/CH340G-5V-USB-to-TTL-UART-Serial-Converter/1950989_32524218818.html?spm=2114.12010608.0.0.Ij8R7H

I have never used this kind of device before, can anyone suggest a way to test that it works?  I only bought it to fix my Oaks!

Thanks

PeterF

  • Hero Member
  • *****
  • Posts: 881
Re: Failing to factory reset an oak
« Reply #17 on: December 07, 2016, 07:09:36 pm »
Admittedly this is a partly rehash of what exeng has just said, but regardless of what USB-to-serial you use... the two mains tricks  are to cross over the TX and RX, and to GND P2 so the Oak goes into Serial Upload mode. So GND goes to GND, RX of the USB-to-Serial goes to P4 (TX) of the Oak, and TX of the USB-to-Serial goes to P3 (RX) of the Oak. And P2 goes to GND also. You then power up the Oak via microusb connector or some power supply. and then you run the update script.

To test at your adapter to some extent, you can simply connect TX of the adapter to RX (female to female lead, a jumper, paperclip, whatever), fire up the Arduino IDE and open the serial monitor  (or some other suitable serial terminal program)... making sure you choose the right COM port under Tools -> Port before doing so, and try sending some text. If it echoes back, both transmit and receive on the USB-to-Serial are working. You can confirm this by removing the loopback (jumper/wire), and when you transmit (type and press send/press enter) it shouldn't echo back.

theevl

  • Newbie
  • *
  • Posts: 5
Re: Failing to factory reset an oak
« Reply #18 on: December 09, 2016, 06:53:53 pm »
Thanks for the advice.
You convinced me that I could not trust my crappy CH340G adaptor since it wasn't working the serial monitor.

I have since tried the Inland brand FT232 (FTDI) and it gave a much more robust response.
http://www.microcenter.com/product/432350/FTDI_Adapter_USB_Controller

My connections were sound, and the serial update/restore worked on the first try for both of my previously "dead" units.

Any way, this INLAND adaptor worked great, on a windows 10 PC.

thanks
chris


PeterF

  • Hero Member
  • *****
  • Posts: 881
Re: Failing to factory reset an oak
« Reply #19 on: December 09, 2016, 08:12:48 pm »
Glad you got them working... no more roasted oaks!

Pity the CH340G didn't co-operate... I haven't had any issues with the half-dozen or so I have, but there's always the chance of a dud or some weird incompatibility...  :'(