<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Andy Hwang on Medium]]></title>
        <description><![CDATA[Stories by Andy Hwang on Medium]]></description>
        <link>https://medium.com/@andy.hwang?source=rss-afa4f5a4f033------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*dmbNkD5D-u45r44go_cf0g.png</url>
            <title>Stories by Andy Hwang on Medium</title>
            <link>https://medium.com/@andy.hwang?source=rss-afa4f5a4f033------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 02 Dec 2026 17:27:33 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@andy.hwang/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Vivitar DVR923KIT-BLK]]></title>
            <link>https://medium.com/@andy.hwang/vivitar-dvr923kit-blk-68b9a12111d8?source=rss-afa4f5a4f033------2</link>
            <guid isPermaLink="false">https://medium.com/p/68b9a12111d8</guid>
            <category><![CDATA[action-camera]]></category>
            <category><![CDATA[cheap-gadgets]]></category>
            <category><![CDATA[busybox]]></category>
            <dc:creator><![CDATA[Andy Hwang]]></dc:creator>
            <pubDate>Sat, 01 Jul 2023 20:41:03 GMT</pubDate>
            <atom:updated>2023-07-01T20:41:03.825Z</atom:updated>
            <content:encoded><![CDATA[<p>it is a really bad camera even for $10, but it might be interesting for some people.</p><p>I got my bundle from Walmart for $10, it came with 2 batteries, a 64 GB(?!) microSD card, a mini tripod and a lot of accessories. The image quality is really bad as the photos taken by this camera contains no details, and the photos are blurry except for the 10% area in the center.</p><p>it’s not worth $10 if you want an action cam.</p><p>on the package it says this camera has a 20M sensor, but I feel like the sensor is probably only capable of less 8M. Don’t try to take 60fps videos, 60fps can make the video quality even worse for some reason.</p><p>&gt;60fps vs 30fps image quality</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*N9kjDagNQOukXaNp_Ja3CQ.png" /><figcaption>snapshots from 4k60(left) and 4k30(right)</figcaption></figure><p>so what’s the interesting part?</p><p>if you connect it to a PC via microUSB, it can be a webcam.</p><p>and if you connect to it via wifi, you can give it http commands to make it take a picture or do other things. it also has a RTSP server running, that you can use VLC to watch realtime video feeds from.</p><p>…and you can have root access.</p><p>====================================================</p><p>what can I do with root access?</p><p>I added (or fixed) the wifi client mode to it, so it can connect to my wifi network. I can control multiple cameras since I can have multiple of them connect to my network. I also time synced it with a NTP server, so I can technically control multiple cameras to take photos at the exact same moment.</p><p>how to get into the camera?</p><p>telnet. install a telnet client, like the windows built-in one, and connect to 192.168.1.1 when you connect to it via wifi. put root as the username, and there is no password. press ctrl-c right after the password. have fun.</p><p>====================================================</p><p>http commands</p><ul><li>mode 4 is for still image taking</li><li><a href="http://192.168.1.1/cgi-bin/Config.cgi?action=set&amp;property=sysworkmode&amp;value=MODE4">http://192.168.1.1/cgi-bin/Config.cgi?action=set&amp;property=sysworkmode&amp;value=MODE4</a></li><li>take a picture</li><li><a href="http://192.168.1.1/cgi-bin/Config.cgi?action=set&amp;property=Video&amp;value=capture">http://192.168.1.1/cgi-bin/Config.cgi?action=set&amp;property=Video&amp;value=capture</a></li><li>list of files?</li><li>see the picture</li><li><a href="http://192.168.1.1/mnt/mmc/DCIM/100MEDIA/IMG-0028-A.jpg">http://192.168.1.1/mnt/mmc/DCIM/100MEDIA/IMG-0028-A.jpg</a></li></ul><p>rtsp stream</p><ul><li><a href="http://192.168.1.1/cgi-bin/Config.cgi?action=set&amp;property=StreamStatus&amp;value=ON">http://192.168.1.1/cgi-bin/Config.cgi?action=set&amp;property=StreamStatus&amp;value=ON</a></li><li>rtsp://192.168.1.1:554/liveRTSP/av4</li></ul><p>====================================================</p><p>telnet log in: root, no password</p><ul><li>ctrl-c right after logging in</li></ul><p>rom and mounted flash</p><ul><li>/customer is located in the flash (writable)</li></ul><p>wifi station/client mode</p><ul><li>edit sta.sh because it’s missing the command to turn the wifi module on</li><li>set up SSID and password</li><li>use apsta.sh to switch to wifi client (station) mode</li></ul><p>time sync</p><ul><li>it has ntpd client built-in</li><li>time sync with time.google.com: ntpd -p 216.239.35.4</li><li>check time sync with time.google.com: ntpd -w -p 216.239.35.4</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=68b9a12111d8" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[ttyS0 permission denied on ubuntu mate 18.04 on raspberry pi 3b+]]></title>
            <link>https://medium.com/@andy.hwang/ttys0-permission-denied-on-ubuntu-mate-18-04-on-raspberry-pi-3b-3230ad303e96?source=rss-afa4f5a4f033------2</link>
            <guid isPermaLink="false">https://medium.com/p/3230ad303e96</guid>
            <category><![CDATA[serial-port]]></category>
            <category><![CDATA[ubuntumate]]></category>
            <category><![CDATA[ttys0]]></category>
            <category><![CDATA[raspberry-pi]]></category>
            <dc:creator><![CDATA[Andy Hwang]]></dc:creator>
            <pubDate>Sun, 06 Dec 2020 19:20:05 GMT</pubDate>
            <atom:updated>2020-12-06T19:20:05.722Z</atom:updated>
            <content:encoded><![CDATA[<p>I had been trying to connect to my gps module through the serial pins on the raspberry pi io bay. I goal is to publish fix messages using ros, and that’s why I’m using ubuntu mate — I don’t want to compile ros on raspberry pi os. The ttyS0 on my raspberry pi 3b+ works without changing any of the permission settings when I’m using rpi os, so it’s unlikely to be a hardware issue. And here is the problem I went into.</p><p>The ttyS0 access gets reset every 30 seconds or so.</p><p>I used sudo chmod 666 /dev/ttyS0 to gain access to the default user, pi, and it will work right away with cat /ttyS0 and any other program I’m using. However, the access will be changed by something just in a few seconds. My user, pi, is in the dialout and tty group, and the raspberry pi serial interface setting in sudo raspi-config is set to login shell disabled and serial interface enabled. well, it didn’t work.</p><p>The fix, or to be more precise the workaround, is to use ttyAMA0.</p><p>Following the instructions on <a href="https://roboticsbackend.com/raspberry-pi-hardware-permissions/">https://roboticsbackend.com/raspberry-pi-hardware-permissions/</a> , the ttyAMA0 can be set to use the GDIO pins. The steps are:</p><p>add “dtoverlay=pi3-disable-bt” into “/boot/config.txt”</p><p>remove “console=serial0,115200” and “console=tty1” in “/boot/cmdline.txt”</p><p>add the user to the dialout group “sudo adduser your_username dialout”</p><p>The result is that /dev/ttyAMA0 will listen to GPIO14 and GPIO15, Tx and Rx without asking for permissions, and the permission won’t get reset.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3230ad303e96" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>