Mi / Xiaomi Scooter Error codes

Scooter beeping? – check out these codes for a hint at what might be wrong…
Error codeDescriptionMalfunction part
10Dashboard and control board communication abnormal,check connected cableDashboard、control board
11Motor A phase current abnormal ,check control boardcontrol board
12Motor B phase current abnormal ,check control boardcontrol board
13Motor C phase current abnormal ,check control boardcontrol board
14Throttle hall abnormal,check electric throttle、dashboard and connected cabledashboard 、electric throttle
15Brake hall abnormal,check electric barke、dashboard and connected cabledashboard、electric brake
16Battery change MOS abnormal,check control boardcontrol board
17External battery change MOS abnormal,check control boardcontrol board
18motor hall abnormal,check motor、control board、connected cable.control board、motor
19Battery voltage abnormal,check battery、control board、connected cable.control board、battery
20External battery voltage abnormal,check battery、control board、connected cable.control board、battery
21Battery communication failed,check battery、control board、connected cablebattery
22Battery code failed,change batterybattery
23Battery default serial number,change batterybattery
24System voltage test abnormal,check control boardcontrol board、battery、external battery
25Undefined 
26Flash saving error,check control boardcontrol board
27Control code error,change control boardcontrol board
28Motor driver mos up-bridge short circuitcontrol board
29Motor driver mos down-bridge short circuitcontrol board
30Undefined 
31Program skip error,check control boardcontrol board
32Undefined 
33Undefined 
34Undefined 
35Unit has default serial number,change control boardcontrol board
36Undefined 
37Undefined 
38Undefined 
39Battery temperature sensor abnormal,change batterybattery
40Control board temperature abnormal,check control boardcontrol board、battery
41Exteral battery temperature abnormal,change external batteryexternal battery
42Exteral battery communication error,check external battery、control board、connected cabelcontrol board、external battery
43Exteral battery code error,change external batteryexternal battery
44External has default serial number,change external batteryexternal battery

Brave Browser – another non-ad web alternative?

 Brave is a web browser that has been about for while, but i only happened across it when it made its way onto the android platform.

It presents another concept which supports web content creators without subjecting viewers to horrendous ads, both in their content and in their speed detriment.

Check their site out here – https://brave.com

Crypto mining failed me (see coin hive here), ads are annoying and more and more likely to be blocked via various plugins and tools. The Brave browser blocks all ads by default and builds up a profile on where you are spending your time on the web. Contributions are then made to the various sites if they are registered to the “BAT” system, which is a way of rewarding the content providers.

My very brief experience so far has been positive, a fast browser which support all my chrome plugins – but with all ad-blocking etc built in. For the extra paranoid it also includes a private mode that utilizes ToR network. Oh and it has a web torrent client built in.

A pretty good summary / review here – https://coiniq.com/brave-browser-review/

Update;

It seems ad’s may be coming to the browser, but so far it looks as though they are “opt-in”. I’ve updated brave link above with referral ;)

Caching Forged Alliance Forever downloads

In additional to this post here about caching steam games

I’ve run a few LAN parties where downloading updates from the FAF servers can take a while. This is no fault of the FAF servers, just i’ll have up to 10 people hitting the same mod and we all sit there watching progress bars as it downloads.

solution : modify the steamcache container image to also cache downloads for FAF
added benefit : takes load off the faf servers

If you want to give it a go, all you need to do;
(you’ll need a bit of experience with docker / containers)

  • download and run steamcache/steamcache container. This is effectively a reverse proxy running nginx. You can download the image form here https://hub.docker.com/r/steamcache/steamcache/
  • modify /etc/nginx/sites-available/steamcache.conf file in the container. Add the following directly below the existing “location /depot/” entry (for steam) to cache all /faf/ URI requests;
location /faf/ {
try_files $uri @mirror;
access_log /data/logs/access.log steamcache-local;
}
  • redirect local DNS queries for content.faforever.com to your local server (above). I entered a host entry on my local DNS (pfsense : resolver)
  • profit

There is a built-in script /scripts/watchlog.sh that displays access.log and highlights in green any cache HITS (why i’ve left logging classified as “steamcache-local”)

Update : above breaks server side code (php pages), ensure they are not cached.

time to disable coinhive – hysteria ensues

See my previous post here – https://sigtar.com/2017/10/13/coinhive-alternative

So the trial of coinhive and associated monero browser mining has come to an end. It seems most corporate firewalls and security appliances detect and block access to my domain just being associated with the coinhive java-script.

Even though i was being a polite net citizen and disclosing it on the site – firewalls with strict polices dont give it a chance. Several public DNS servers have also block listed the site – hopefully this will be undone soon.

There is a lot of fear around the word “crypto” due to the more malicious crypto-locker virus and it seems that coinhive has been associated to similar hysteria and panic.

Note : the amount of “wasted CPU” is trivial as i would only expect people visiting my site to be donating some cycles. i.e. in most cases i wouldn’t expect and entire company / business behind a firewall to browse my website and be under threat of  mass “CPU stealing”

 

moving wordpress to http2 (via https)

    

I just moved my wordpress site to http2 (via https). Some advice on steps to moving your site ;

  • Run it behind nginx + lets encrypt – offload ssl certs and get http2 performance
  • Setup nginx default to redirect all http -> https
  • update your WordPress site to correct URL (via admin / settings / general)  i.e. https://sigtar.com
  • Run WP plug-in to change all media / links to new https links. Else you get mixed secuirty (some http, some https)