News for hackers. Stuff that matters.
Re:Air Con: $1697 for an on/off switch by gstar on Wednesday August 28, 2024 @11:56PM (#41387144)
Oh, and you just need one of these and a TTL to RS422 converter off aliexpress to replicate the interface:

https://www.aliexpress.com/item/1005005918675239.html

The connectors on the small RJ45 daughter board are JST-SH 1.0

The yellow lead puts out 4.2v to replicate a Li-Ion battery (as far as I can tell). You can ignore this.

Red is positive

Black is negative

Green is usb d+

Blue is usb d-

Re:Air Con: $1697 for an on/off switch by ranebo on Thursday August 29, 2024 @12:52AM (#41387448)
This is all fantastic info. I have included the details and a link to these comments at the bottom of the post. Great work!
Re:Air Con: $1697 for an on/off switch by Nursie on Thursday August 29, 2024 @02:51AM (#41388045)
Hey - As the owner of a similar system I have a question for you - do you use their phone app to control your system from your phone in/out of the house, and did it still work after this?
Re:Air Con: $1697 for an on/off switch by ranebo on Thursday August 29, 2024 @03:15AM (#41388180)
I use the home assistant plugin with it personally, but I have tried the apps and they still work fine both locally and remote.
Re:Air Con: $1697 for an on/off switch by Nursie on Thursday August 29, 2024 @03:18AM (#41388194)
Cool, that's all I needed to know, I'll be following in your footsteps at some point, thanks for taking the leap and doing all this :)

Now back to connecting an orange-pi zero to the petcube cam someone bought me for Christmas. I've found TTL pins on there and I want to know what's going on...

Re:Air Con: $1697 for an on/off switch by saylisteins on Thursday August 29, 2024 @04:35AM (#41388622)
Tiny QOL change without too much work, you could install something like teamviewer on the tablet, and now you're able to control your AC remotely from your PC, your phone, or anywhere!
Re:Air Con: $1697 for an on/off switch by selcuka on Thursday August 29, 2024 @06:07AM (#41389143)
The MyAir (or e-Zone) app can already be accessed remotely. You install the app on your phone and pair it with your system by connecting to the same LAN. After the initial pairing it can be used from everywhere.
Re:Air Con: $1697 for an on/off switch by emilfihlman on Thursday August 29, 2024 @06:22AM (#41389231)
Using which reverse service, though?
Re:Air Con: $1697 for an on/off switch by selcuka on Thursday August 29, 2024 @06:32AM (#41389295)
From memory it connects to Firebase, possibly using the Realtime Database to sync state.
Re:Air Con: $1697 for an on/off switch by lucioperca on Thursday August 29, 2024 @05:37AM (#41388964)
Tip: Instead of soldering I use splicing connectors with levers for testing stuff like this out. For example:

https://www.wago.com/de-en/c/installation-terminal-blocks-an...

Re:Air Con: $1697 for an on/off switch by dt3ft on Thursday August 29, 2024 @07:00AM (#41389486)
Wago has great stuff.
Re:Air Con: $1697 for an on/off switch by nehz on Thursday August 29, 2024 @02:22AM (#41387902)
Would you have the RJ45 pinout too? Thanks!
Re:Air Con: $1697 for an on/off switch by gstar on Thursday August 29, 2024 @02:30AM (#41387940)
No, sorry - I may be able to buzz one out of the a/c controller later on.

I do, have 2 spare USB-C to JST-SH adapters that suit the round advantage air circuit board if anyone wants one (Perth, Free). Email in profile.

Re:Air Con: $1697 for an on/off switch by FLT8 on Thursday August 29, 2024 @05:24AM (#41388905)
This is from my earlier notes, hope it helps some.

  Pin 1: RS422 +/B
  Pin 2: RS422 -/A
  Pin 3: ? - appears to be unused; connected to unpopulated pad on PCB
  Pin 4: GND
  Pin 5: ~14.2v DC unloaded
  Pin 6: GND
  Pin 7: ?
  Pin 8: ?
  Shield: GND
Note: the RS422 protocol has a basic bus arbitration built-in to allow both ends to communicate. The control unit sends <U>Ping</U=xx> messages, after which it opens a slot for the Tablet to communicate back to it. At least on my system xx represents a simple CRC value that can be used to validate message authenticity. I haven't seen any AES encryption in use, messages I've seen are all plaintext, maybe the AES encryption was introduced in a later revision.
Re:Air Con: $1697 for an on/off switch by binary_slinger on Thursday August 29, 2024 @06:54AM (#41389448)
Wouldn't RS422 need 2 TX and 2 RX?
Re:Air Con: $1697 for an on/off switch by upofadown on Thursday August 29, 2024 @07:59AM (#41389905)
Normally, yes. Perhaps this could be more properly termed RS-485 operating in 2 wire (half duplex) mode:

* https://en.wikipedia.org/wiki/RS-485

Re:Air Con: $1697 for an on/off switch by gstar on Thursday August 29, 2024 @07:27AM (#41389685)
Not always - if it's used as a bus, it's 2 wire.
Re:Air Con: $1697 for an on/off switch by gstar on Thursday August 29, 2024 @07:26AM (#41389668)
I have something slightly different

1 is RS422 B

2 is RS422 A

3 & 5 - GND

4 & 6 - VCC

Not sure what 7 and 8 do.

Re:Air Con: $1697 for an on/off switch by FLT8 on Thursday August 29, 2024 @08:36AM (#41390161)
Interesting, not sure what's going on there then.. how recently was your system installed? Maybe they have updated the pinout on newer models? I'll go back and check though.
Re:Air Con: $1697 for an on/off switch by gstar on Thursday August 29, 2024 @09:18AM (#41390509)
You're right! The serial bus isn't encrypted!

I got inspired, and have plugged in my scope, and then an RS422 to serial adapter, and I'm getting XML encoded (weird) CAN messages, which I presume are the same as what's on the CAN bus exposed on some of the control box's ports. I'll get out the can analyser tomorrow and check.

Now the trick will be to reverse engineer this protocol. Here's a tiny sample:

  <U>setCAN 0201000000236000000000000 </U=ce><U>getCAN 1 </U=00><U>Ping</U=db> <U>ackCAN 1</U=aa><U>Ping</U=db> <U>setCAN </U=b2><U>getCAN 1 </U=00><U>Ping</U=db> <U>ackCAN 1</U=aa><U>Ping</U=db> <U>setCAN </U=b2><U>getCAN 1 </U=00><U>Ping</U=db> <U>ackCAN 1</U=aa><U>Ping</U=db> <U>setCAN </U=b2><U>getCAN 1 </U=00><U>Ping</U=db> <U>ackCAN 1</U=aa><U>Ping</U=db> <U>setCAN </U=b2><U>getCAN 1 </U=00><U>Ping</U=db> <U>ackCAN 1</U=aa><U>Ping</U=db>
Re:Air Con: $1697 for an on/off switch by nehz on Thursday August 29, 2024 @10:50AM (#41391376)
The AES encryption might be related to the android intent messages that are sent to the AAservice. I recall they had an encrypted mode and a "signed app" mode that AAservice will respond to
Re:Air Con: $1697 for an on/off switch by FLT8 on Thursday August 29, 2024 @02:46PM (#41394062)
I have reached out to your email address (as described in your profile) with some additional information that I've been putting together. Let me know if you didn't receive my mail.
Re:Air Con: $1697 for an on/off switch by selcuka on Thursday August 29, 2024 @08:49PM (#41396811)
I have decompiled the apk and it produced a somewhat useful (but incomplete) package of Java source files, which can be useful for reverse engineering the serial protocol. For example:

    <string name="parse_block_tag_ping">&lt;U&gt;Ping&lt;/U=db&gt;</string>
    ...
    private static final byte[] f2305f = "getCAN ".getBytes(Charset.defaultCharset());
    private static final byte[] g = MyApp.a().getString(R.string.parse_block_tag_ping).getBytes(Charset.defaultCharset());
    private static final byte[] h = MyApp.a().getString(R.string.parse_block_tag_startu).getBytes(Charset.defaultCharset());
    private static final byte[] i = "<request>Unknown</request>".getBytes(Charset.defaultCharset());
You can do the same, or alternatively ping me if you'd like me to email you the source package.