Giter VIP home page Giter VIP logo

Comments (29)

Chris5020 avatar Chris5020 commented on August 18, 2024 2

Gateway bought 2 weeks ago seems to work, I tried now another serial converter, and I was able to stop boot process. Now I'll try next steps
PCB ist REV1.0.2.7 from 21 19

from lidl-gateway-freedom.

challs avatar challs commented on August 18, 2024 1

I already have a lidl silver crest gateway up and running which I wish to integrate with Home Assistant.

There is a lot of information over at the Home Assistant forum thread. I suggest you look through that. I wrote a small howto for the first stage here.

Note that if you have already connected your gateway to the internet and it has contacted Tuya's cloud, you will might not be able to use the root password extraction method, and you will need to rebuild and flash your root filesystem.

There is also further information in other issues such as here.

Back to your original reason for opening the issue: It probably needs someone to write it all up and propose an updated README. Maybe you have some time to help with that?

from lidl-gateway-freedom.

MattWestb avatar MattWestb commented on August 18, 2024 1

The LIDL version is well snapped and is not so easy getting popping up.
In the corners is one double snapping thug and also in the middle on each side so 8 that is holding the 2 parts together. You need some very thing metal or hard plastic and starting in one corner and snapping all thugs around 3 sides before its popping up.

from lidl-gateway-freedom.

MattWestb avatar MattWestb commented on August 18, 2024 1

Great work done !!

The original was running EZSP 6.5.X firmware on the Zigbee module and its little old and have many bugs that we dont like to have in our system.
If you is adding it in ZHA you is getting the firmware version in the log so you can getting it easy.

If you like flashing the Zigbee module firmware in one easy way you can trying https://github.com/puddly/universal-silabs-flasher that is working good for my after updating my python install in windows.

Edit: If you must replacing the whole firmware ?
The system firmware is not needed if you have getting root access and getting the serial server working then it was the first version patching the root password.

from lidl-gateway-freedom.

fahadshery avatar fahadshery commented on August 18, 2024

which 3.3V TTL serial port device can be used to connect to it? thanks

from lidl-gateway-freedom.

challs avatar challs commented on August 18, 2024

which 3.3V TTL serial port device can be used to connect to it? thanks

I have one that looks like this, which is a FT232RL FTDI

from lidl-gateway-freedom.

fahadshery avatar fahadshery commented on August 18, 2024

Hi @challs,

thanks for your detailed reply.

I already have UART to USB device which looks similar to yours. So I think it should be alright.

Note that if you have already connected your gateway to the internet and it has contacted Tuya's cloud, you will might not be able to use the root password extraction method, and you will need to rebuild and flash your root filesystem.

sadly, I have connected it to the internet prior to all this home automation interest. Now that I have installed HA and connected couple of sensors and CC2531 which I am in the process of replacing with CC2652R, I would love to use this gateway (Presumably, it has better speed and coverage).

Back to your original reason for opening the issue: It probably needs someone to write it all up and propose an updated README. Maybe you have some time to help with that?

I happily volunteer to write up a detailed n00b proof step by step instructions for you. Perhaps with a video tutorial.
The first step is to open up the device. This is where I am stuck at the moment lol. I tried different tools etc. and I am unable to crack open the device. Any ideas?

from lidl-gateway-freedom.

fahadshery avatar fahadshery commented on August 18, 2024

I am making progress!

I have purchased UART to USB device, DuPONT cables and most importantly popped open the case. On Paul's website, I see there are pins sticking out of the Lidl PCB. But in my device there are none. I am assuming its some sort of pin header. Is that true? If it is what is it called?

Here is the picture
PCBTop

thanks

from lidl-gateway-freedom.

MattWestb avatar MattWestb commented on August 18, 2024

The J1 is not populated from the factory but you can soldiering one if you like.
Or you is using DuPont cable with pins and putting i holes and have little pressure so they is having good contact.

Pin 1 is on the inner side to the CPU and the pin 6 is on the side to the border of the PCB.

from lidl-gateway-freedom.

fahadshery avatar fahadshery commented on August 18, 2024

The J1 is not populated from the factory but you can soldiering one if you like.
That's what I hate but might have to do it anyway!

Or you is using DuPont cable with pins and putting i holes and have little pressure so they is having good contact.

or I will give it a shot first.

Pin 1 is on the inner side to the CPU and the pin 6 is on the side to the border of the PCB.

I am not sure what you're trying to say here. I thought I just need to connect three cables i.e. TX, RX and GND?

Lastly, Which software do you use to connect to SERIAL port? I am using putty. I checked what the COM port is i.e. COM3, then set the speed to 38400 and connect.

is this the right method?

from lidl-gateway-freedom.

MattWestb avatar MattWestb commented on August 18, 2024

You can supplying the ZBGW with 3.3 V from the USB-TTL converter (plus the 3 normal GND, RX and TX) and no USB connected or you have the USB power supply connected and using GND, RX and TX.
I was using the 3.3 V from the USB-TTL converter and not the USB power supply.

PuTTY is little old but its working OK as long not need sending files with XModem and in Linux Mini com i the standard.

from lidl-gateway-freedom.

MattWestb avatar MattWestb commented on August 18, 2024

If you have the right comport and the cable OK you shall see the logging from the system boot in the console then its booting and also if you is not having Ethernet connected its trying discovery the network and doing printing that you shall see.
Then you can see the console long you can start trying booting in the boot loader but first you must having the comport working OK or its not working.

from lidl-gateway-freedom.

fahadshery avatar fahadshery commented on August 18, 2024

ok, I just saw the terminal messages for the first time and it lands me at a tuya login prompt looking for a username. is it normal?

from lidl-gateway-freedom.

MattWestb avatar MattWestb commented on August 18, 2024

Then you only need reboot the ZBGW and pressing "ESC" for landing in the bootloader :-)))

from lidl-gateway-freedom.

MattWestb avatar MattWestb commented on August 18, 2024

The password you must "extract" from the bootloader then you can logging in on the "normal" mode.

from lidl-gateway-freedom.

MattWestb avatar MattWestb commented on August 18, 2024

https://paulbanks.org/projects/lidl-zigbee/root.html

from lidl-gateway-freedom.

fahadshery avatar fahadshery commented on August 18, 2024

All done

Thanks very much.

I think I will change the README and do a PR.

Cheers

from lidl-gateway-freedom.

MattWestb avatar MattWestb commented on August 18, 2024

Great work done !!

I can recommending using the Release-1.2 of the binaries that have more functions and fixes that the linked from the main hacking page.

from lidl-gateway-freedom.

fahadshery avatar fahadshery commented on August 18, 2024

Great work done !!

I can recommending using the Release-1.2 of the binaries that have more functions and fixes that the linked from the main hacking page.

I downloaded everything using this page.

I have no idea which version I installed

from lidl-gateway-freedom.

fahadshery avatar fahadshery commented on August 18, 2024

ok I just checked the md5 hash for both binaries and they are the same :)

md5 serialgateway
MD5 (serialgateway) = 4bb59358e6db08192e8aeda3f8d0e646

md5 serialgateway.bin
MD5 (serialgateway.bin) = 4bb59358e6db08192e8aeda3f8d0e646

from lidl-gateway-freedom.

MattWestb avatar MattWestb commented on August 18, 2024

Its the original version that have problem doing updating of the Zigbee module.
The newer is larger if you is looking on the file size.

I can also recommending updating the firmware on the Zigbee module but only if you is not planing to connecting the ZBGW to tuya cloud then its not (easy) to reverting the firmware update.

Edit: I was downloading the serialgateway for 2 weeks ago and its was the old version but i can being updated on the web site.
Is the size the same on your hard disk if yes then its the same (and the MD5 is also the same).

from lidl-gateway-freedom.

Chris5020 avatar Chris5020 commented on August 18, 2024

I always stuck on stopping the boot process into the bootloader.
I'm connected to the gateway with putty and I see the messages. I tried normal ESC, also STRG+4, STRG+5 and STRG++, which I also found as escape chars, but nothing happens.
Anyone a hint for me please?

regards, chris

from lidl-gateway-freedom.

MattWestb avatar MattWestb commented on August 18, 2024

Important is flow control is set to non (no hardware or software flow control) if i remember right.
Also on Windows 10 with extra ptty the normal ESC is the right one for stopping the bootloader.

One warning is that tuya have released new versions with Matter support but i dont knowing if they have blocking our hacks or only updated there application they is running on the hardware. Also not all brands dont like paying for the upgrade so all ZBGW devices of different brands is not getting it but we dont knowing if / now and then if its happening.

from lidl-gateway-freedom.

Gianniva avatar Gianniva commented on August 18, 2024

Las year I have hacked 2 of the lidl zigbee gateway, went very smooth. I just bought a new gateway from lidl and now is impossible to stop loading linux. esc doesn't work anymore

from lidl-gateway-freedom.

banksy-git avatar banksy-git commented on August 18, 2024

Is it the same still as this device? https://www.lidl.it/p/smart-home/gateway-lidl-home/p60735 ; Maybe they changed the bootloader break sequence - or disabled it altogether. Are there any physical differences you can see (labels, etc)?

I'll check in Lidl next time I'm there and buy another. I'm sure we can find another way! 😃

from lidl-gateway-freedom.

MattWestb avatar MattWestb commented on August 18, 2024

LIDL have one new version certificated but is running the same version of the APP (1.0.6) and both is having hardware version 100 = not grantee that the bootloader is changed.
They have getting one update to 1.0.9 09/08/2021.

The tuya version is original HW 1.0.2 and APP 1.1.14 and one HW 1.0.3 is running the same APP as 08/13/2021.

But is one updated HW V1.0.4 as 11/01/2022 that is running APP V2.0.0 and is Matter certificated and not Zigbee but i think its not being used of our rebranded devices then its very new.

I think they have updating the bootloader or the setting for it in the device so its not easy hacking it.

By the way great to see you Paul !!

from lidl-gateway-freedom.

Chris5020 avatar Chris5020 commented on August 18, 2024

OK, I followed the manual from here
https://paulbanks.org/projects/lidl-zigbee/ha/
almost everything worked fine, but I had a bug transfering the serialgateway via ssh from windows, the destination file has wrong size and generates a segmentation fault.
-rwxr-xr-x 1 root 0 69485 Dec 8 2022 serialgateway-defect
-rwxr-xr-x 1 root 0 69197 Jan 1 00:19 serialgateway

now I was able to integrate it into my HomeAssistant.

One thing I'm not sure If the steps in the other howto with replacing the whole firmware is also required, or this is enough?
https://paulbanks.org/projects/lidl-zigbee/

Thanks to all for your responses

from lidl-gateway-freedom.

Gianniva avatar Gianniva commented on August 18, 2024

from lidl-gateway-freedom.

jf2020 avatar jf2020 commented on August 18, 2024

OK, I followed the manual from here https://paulbanks.org/projects/lidl-zigbee/ha/ almost everything worked fine, but I had a bug transfering the serialgateway via ssh from windows, the destination file has wrong size and generates a segmentation fault. -rwxr-xr-x 1 root 0 69485 Dec 8 2022 serialgateway-defect -rwxr-xr-x 1 root 0 69197 Jan 1 00:19 serialgateway

I had the same issue. Doing the transfer using WSL worked fine.

from lidl-gateway-freedom.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.