• icon-webcam
  • icon-germany
  • icon-denmark
Posted on

Xiaomi Mi Router 3C recovery from System Error (Orange/Red LED)

Here’s how to un-brick the Xiaomi Mi Router 3C if it gets stuck in a System Error state (steady orange LED showing on the front of the unit) and upload a fresh firmware to bring it back to life.

Note: For my sanity I will refer to the red LED as orange) as it’s clearly not red.

  1. Visit the MiWiFi website and download the latest firmware (website is in Chinese, I recommend using Google Translate to navigate this website)
    1. Switch to the ROM section
    2. Download the Stable ROM for R3C (latest release at time of writing is 2.12.15)
  1. Connect an ethernet cable to the LAN Port 1 connector (shown as a single dot, beside the other LAN Port with two dots) on the Xiaomi Mi Router 3C
  2. Connect the other end of the ethernet cable to your computer/laptop (if your laptop does not have a ethernet port use a USB to Ethernet adapter)
  3. Find a paper clip and when ready pull the power cable on the Xiaomi Mi Router then press down firmly on the Reset button and re-connect the power supply
  4. Continue to hold down the Reset button for up to 10 seconds or until the front LED colour changes from steady orange (System Error) to flashing orange (Safe Mode)
  5. If the LED colour fails to change to flashing orange after some time rinse and repeat by pulling the power cable and re-connecting until the unit enters Safe Mode
  6. You will need to manually assign a IP address on your computer as the DHCP server on the router is not enabled in Safe Mode, set the following network options for your ethernet connection:
    1. IP address: 192.168.31.5
    2. Subnet mask: 255.255.255.0
    3. Default gateway: 192.168.31.1
    4. Preferred DNS server: 192.168.31.1
  7. Open up your preferred browser and enter http://192.168.31.1 into the address bar
  8. Upload the firmware file you downloaded earlier and wait a few minutes
  9. If the front LED does not change to blue within 5 minutes pull the power cable and put it back in and wait another few minutes for the router to boot up
  10. Check for nearby WiFi SSID’s, the Xiaomi Router should be available to connect and configure
  11. Undo your ethernet connection changes and configure your Xiaomi Router

That’s it.

How to connect the Xiaomi Mi Gateway to Domoticz

Out of the box the Xiaomi Mi Gateway does not allow other network-based devices to integrate with it, with a little bit of effort though you can enable LAN support for integration with Domoticz or other smart home platforms.

Here’s how to connect the Xiaomi Mi Gateway to Domoticz:

  1. Supply power to the Xiaomi Mi Gateway (you do not need to hard reset this device to enable LAN support)
  2. Open up the MiHome App (Android and App Store)
  3. From the Profile > Settings screen set to the Location field to “Mainland China”
  4. Open up the device detail screen for the Gateway device
  5. Click the triple dots button in the top-right corner of the screen to open the More screen
  6. Open the About screen
  7. At the bottom of the screen keep tapping the version number until a notice appears
  8. From the same screen open the Local Area Network Communication Protocol screen
  9. Slide the toggle element for “Local Area Network Communication Protocol” to enabled
  10. Note down the Password detail for later use in Domoticz (if the Password detail is blank or shows “password” click Confirm and re-open this screen
  11. Click the Confirm button to save changes and return to the More screen
  12. Open the Network Info screen and note the IP address for later use in Domoticz
  13. Switch to Domoticz and open up the Setup > Hardware screen
  14. From the Add new hardware section select Xiaomi Gateway from the Type list
  15. Set the Remote Address to the Xiaomi Mi Gateway IP address referenced above
  16. Set the Port Number to 9898
  17. Set the Password to the Xiaomi Mi Gateway password detail referenced above
  18. Click Add to add the new Xiaomi Mi Gateway to Domoticz
  19. Open up the Setup > Devices screen and check for new devices

That’s it 🙂

Give it some time for Domoticz to discover the new devices and you’re away, have fun!

Hiding the Bitnami corner banner on new Google Cloud Compute Engine instances

By default new Bitnami instances show a corner banner on all pages. To remove this connect to your Google Cloud Compute Engine instance via SSH and enter the following commands:

  1. sudo /opt/bitnami/apps/wordpress/bnconfig –disable_banner 1
  2. sudo /opt/bitnami/ctlscript.sh restart apache
  3. sudo /opt/bitnami/ctlscript.sh restart nginx

    That’s it! 🙂

How to change the Home address on the Mazda Connect Maps App

Setting the Home address on Mazda’s Connect Navigation App is done during the first-time setup of the navigation App, set it and forget, but it’s not obvious how to change the Home address at a later time.

Here’s how to update the Home address on the MZD Connect Navigation App:

  1. Start your Mazda car and wait for the Mazda Connect platform to load
  2. Open the Navigation App
  3. Select Favourites from the Navigation menu
  4. Highlight the Home menu option
  5. Press and hold down the Commander button down for up to 5 seconds *
  6. Select Edit to update the Home address
  7. Set your City/Suburb, followed by Street and Number
  8. Save your changes

That’s it! 🙂

* The Commander button is shown as the main dial in the lead image above this Post that you use to interact with the Connect platform whilst driving.

Source: Mazdas247.com

Re-map the Calculator keyboard key to Play/Pause on Windows 10

Here’s how to re-map the default Calculator keyboard “shortcut key” to instead send the Play/Pause media command under Windows 10; alot more useful!

This guide is aimed at the Amazonbasics Wired Keyboard but applies to any keyboard making use of the standard Windows media/shortcut key codes. A requirement is that you are using a supported media player including iTunes, Spotify, Windows Media Player or VLC.

  1. Download Command Line Media Controller (it’s free) and copy it to the Program Files (x86) directory
  2. Open up the Registry Editor (regedit64.exe) by clicking the Start button and typing regedit into the search bar
  3. Expand Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\AppKey\18
  4. Create a new String with the Value name: ShellExecute
  5. Set the String Value data to: “C:\Program Files (x86)\Command Line Media Controller\CLMControl.exe” Spotify -pp
  6. Click OK

That’s it! Hit the Calculator keyboard shortcut with Spotify open and it will toggle play/pause. Happy listening! 🙂

Recovering from a “dead” hard disk on the XPS 15 9550

I brought my XPS 15 9550’s hard disk back from the brink today. I hope this will help other affected XPS 15 9550 users or just Windows users in general.

The XPS 15 9550 was powered down as usual and on reboot would go directly from the Dell POST logo to the Dell diagnostic software (Enhanced Pre-Boot System Assessment). That’s not a good sign.

After running through common diagnostic steps with Dell Support a new hard drive was ordered and installation scheduled for the following day (unit was covered under a Next Business Day support contract). As Dell Support put it the hard disk was dead without any chance of recovery… or was there? 😉

Here’s how to recover your Windows instance in the case where the hard disk hardware is still being detected and simply has no UEFI boot entries:

  1. Open BIOS Setup by powering up the XPS 15 and tapping F12
  2. Open the Settings > General > Boot Sequence screen
  3. Ensure that UEFI is selected under Boot List Option
  4. Click Add Boot Option
  5. Provide a Boot Order Name (it can be anything, I used Bootx64)
  6. Select the available File System List
  7. Set the File Name to: \EFI\Boot\bootx64.efi or click the ‘…’ button and expand the EFI > Boot directory and select bootx64.efi before pressing OK
  8. Click OK to create the new EFI boot entry
  9. Select the new EFI boot entry
  10. Click Apply
  11. Click Exit

Fingers crossed! That’s it, I hope you’re back up and running again. 🙂

Step-by-step setup for the Xiaomi Plant Flower Care

Here’s a walkthrough for setting up the Xiaomi Plant Flower Care BLE device on an Android device.

  1. Unpack the device from the packaging
  2. Install the free Mi Home App (Google Play Store/iTunes App Store)
  3. Turn Bluetooth on your Android device
  4. Open the Mi Home App
  5. Sign in or create a new Mi Home account
  6. From the opening My Devices screen click the top right “+” (plus) symbol
  7. Select “Add device” from the dropdown menu
  8. Pull the exposed plastic tab from the Xiaomi Plant Flower Care device to turn it on, if you have previously done this open the cover and unset/re-set the battery
  9. When the “Flower care” device appears select it
  10. Wait while the Bluetooth connection is established and the latest device firmware is installed
  11. From the initial Devices tab select the Flower Care device

That’s it! You’re good to go!

Screenshots

Fixing the loud CPU fan on the Dell XPS 15 9550 (2016)

I’ve had my XPS 15 9550 almost 18 months now, here’s my replacement history so far… all covered under Dell’s Premium Support NBD contract:

  • 5 motherboards
  • 1 battery
  • 2 CPU fan
  • 2 graphics card fan
  • 1 heatsink
  • 1 keyboard

I can put at least 3 of the above motherboard replacements down to me telling them “the CPU fan is too loud” which was blamed by Dell Support and on-site technicians on issues with the motherboard and promptly replaced.

The fix for the loud CPU fan – especially when a Thunderbolt device is connected – is to turn on passive cooling within Power Options and using Intel XTU undervolt the CPU 0.100 V dramatically lowering the thermal profile of the XPS 15 9550 followed by setting Dell Command Power Manager to Quiet.

Showing the thermal profile of the Dell XPS 15 9550 24 hours after applying the Core Voltage Offset change and enabling Passive system cooling.

Today I have a silent machine with no noticeable effect on daily usage or CS:GO gaming performance, that’s with 2 Dell U2414H monitors occupying the HDMI and Thunderbolt connectors. I have multiple Chrome tabs open (10+), Slack and other typical CPU hogs running without the CPU fan attempting to rise off the desk.


Here’s how to fix the loud CPU fan on the Dell XPS 15 9550:

Part 1: Turn on passive CPU cooling

  1. Right click the battery icon in the start taskbar
  2. Select Power Options
  3. Click Change plan settings beside the Balanced power plan
  4. Click Change advanced power settings
  5. Expand the Processor power management list
  6. Expand the System cooling policy list
  7. Set the On battery and Plugged in options to Passive
  8. Click OK to save changes
  9. Click Save Changes on the Edit Plan Settings window to save changes

Part 2: Undervolt the CPU 0.100V

Dropping the Core Voltage Offset -0.100 V significantly lowers the thermal profile of the Dell XPS 15 9550.
  1. Download the Intel Extreme Tuning Utility from the Intel website
  2. Install and open Intel Extreme Tuning Utility (ala Intel XTU)
  3. Open the Advanced Tuning > Core section
  4. Find the Core Voltage Offset slider
  5. To the right of the Core Voltage Offset slider hover over the 0.000 V value to show the decrease/increase toggles
  6. Click the decrease toggle until the Core Voltage Offset indicator shows -0.100 V
  7. Click Apply
  8. Close Intel XTU and restart the computer

Part 3: Dell Command | Power Manager

Dell Command | Power Manager is the holy grail of thermal management tools for Dell units.
  1. Download and install Dell Command | Power Manager from Dell’s website
  2. Open Dell Command Power Manager from the Start menu
  3. Switch to the Thermal Management tab
  4. Set the Thermal Setting to Quiet

That’s it! 😀

How to turn off the Mazda Connect watchdog (auto-reboot)

By default Mazda Connect’s Watchdog service restarts the CMU on any error, to the general public this is a god send as the Watchdog resolves common issues by rebooting the system (e.g. Navi going silent, any screen lock-ups, etc.) but for developers this can have the unintended action of locking us out of SSH access from a simple mistyped character.

Here’s how to turn the Mazda Connect Watchdog service off, keep in mind this command only persists until the Mazda Connect system is rebooted (e.g. after turning the engine off for a short period of time).

echo 1 > /sys/class/gpio/Watchdog\ Disable/value

You can check if the Watchdog service is now inactive by running:

cat /sys/class/gpio/Watchdog\ Disable/value

There are ample instructions online for how to set up the above command to persist even after rebooting but I won’t provide this here.

That’s it! 🙂

Resetting SSH access after “Too many authentication failures for …” on Google Cloud Compute Engine

Locked yourself out of SSH/SFTP access on Google Cloud Compute Engine? Does the below look familiar… Fun times…

Status: Connecting to domain.com...
Status: Connecting to domain.com...
Response: fzSftp started, protocol_version=8
Command: open "...@domain.com" 22
Error: Server sent disconnect message
Error: type 2 (protocol error):
Error: "Too many authentication failures for ... from 125.18.17.115 port 7145 ssh2"
Error: Could not connect to server

Here’s how to increase the number of allowed login attempts within sshd_config and then restart the sshd service so you can get back to work. 🙂

  1. Open up Google Cloud Console
  2. From the Menu button open Compute Engine > VM Instances
  3. Beside your Compute Engine instance hit the SSH button within the Connect column
  4. When your terminal connection is established enter the following:
    sudo nano /etc/ssh/sshd_config
  5. By default the sshd_config file does not have a MaxAuthTries entry but scroll through the file using the up/down keys and check just incase…
  6. I set the maximum number of login attempts to 10, change this number to suit your security needs. Add the following lines anywhere within the sshd_config file:
    # Max login attempts
    MaxAuthTries 10
  7. Save and close the file by using the following keyboard combinations:
    CTRL+O followed by the enter key to save the file changes
    CTRL+X to close the Nano file editor
  8. Reboot the sshd service using the following commands (I’m not sure which one works so let’s do all of them…)
    sudo service sshd restart
    sudo systemctl restart sshd
  9. Try and reconnect to your Compute Engine instance using Putty (SSH) or Filezilla (SFTP)

That’s it 🙂