mcchas / g2h-camera-mods

Modifying the G2H camera with rtsp, security and not to call home
MIT License
107 stars 14 forks source link

G2H does not start #30

Closed geldelo closed 2 years ago

geldelo commented 2 years ago

Hello. Foolishly deleted the /tmp/out/ folder and the /etc/normal.xml file. The yellow indicator is now on all the time, it does not appear on the network. What can I do?

mcchas commented 2 years ago

It happens. I'd think restoring normal.xml should do trick as the /tmp/out folder is untarred on startup.

normal.xml:

<monitor>
        <process name="/local/bin/property_service">
                <arg desc="loglevel option">-i</arg>
                <arg desc="loglevel 0">/etc/build.prop</arg>
                <arg desc="data path option">-p</arg>
                <arg desc="data path">/mnt/config/prop.dat</arg>
        </process>
        <process name="/tmp/out/mosquitto">
                <arg desc="foreground run"></arg>
        </process>
        <process name="/tmp/out/ha_agent">
                <arg desc="foreground run"></arg>
        </process>
        <process name="/tmp/out/proxy_server">
                <arg desc="foreground run">-D</arg>
        </process>
        <process name="/tmp/out/camera">
                <arg desc="bring up by monitor">-M</arg>
        </process>
        <process name="/tmp/out/ha_master">
                <arg desc="bring up by monitor">-a</arg>
                <arg desc="bring up by monitor">/lib/libha_auto.so </arg>
                <arg desc="bring up by monitor">-G</arg>
                <arg desc="bring up by monitor">/mnt/config</arg>
        </process>
        <process name="/tmp/out/zigbee_agent">
        <arg desc="bring up by monitor">-f</arg>
        <arg desc="bring up by monitor">/etc/zigbeeAgent.conf</arg>
        </process>
        <process name="/tmp/out/ha_driven">
        <arg desc="bring up by monitor">-d</arg>
        <arg desc="bring up by monitor">/mnt/config/ha_driven</arg>
        </process>
</monitor>
geldelo commented 2 years ago

IMG_4858

I soldered the pins to the correct connectors and connected to the Uart device.

When connected to a device via Putty, I used 38400.8n1.

But Putty won't connect. I do not know what to do. Help me please.

mcchas commented 2 years ago

Have you tried other bitrates? It's more likely to be 115200. I usually test by swapping tx and rx as it's easy to get them around the wrong way.

geldelo commented 2 years ago

Thx, i connected. But can't enter any command. On connect error:

123

mcchas commented 2 years ago

That is interesting. The getty on the serial port is usually started from inittab - check your tx connection and ground wiring, you might need to hit a few keys during boot to get a response on the console but would be good to confirm if there are any issues there before trying anything else.