# AB BLE Gateway V4, Msgpack alternative

**URL:** <https://bbs.aprbrother.com/t/ab-ble-gateway-v4-msgpack-alternative/1585>\
**Category:** BLE Gateway\
**Created:** [February 3, 2020, 11:18am UTC](https://bbs.aprbrother.com/t/ab-ble-gateway-v4-msgpack-alternative/1585 "2020-02-03T11:18:26Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Lhusoey](https://bbs.aprbrother.com/letter_avatar_proxy/v4/letter/l/f6c823/32.png) [@Lhusoey](https://bbs.aprbrother.com/u/Lhusoey)\
**Post date:** [February 3, 2020, 11:18am UTC](https://bbs.aprbrother.com/t/ab-ble-gateway-v4-msgpack-alternative/1585/1 "2020-02-03T11:18:26Z")

</div>

Hi

I bought a AB BLE gateway to track ibeaons and to hopefully intergrate to my Homey home automation system. On this system i have an MQTT boker and client but my problem is that it apparently cannot raed Msgpack strings. Can something be done to send the messages not as masgpack or use a parser.?

Best regards  
Lidvar

---

<div class="post-metadata">

**Author:** ![aprilpea](https://bbs.aprbrother.com/user_avatar/bbs.aprbrother.com/aprilpea/32/9_2.png) [@aprilpea](https://bbs.aprbrother.com/u/aprilpea)\
**Post date:** [February 7, 2020, 2:21am UTC](https://bbs.aprbrother.com/t/ab-ble-gateway-v4-msgpack-alternative/1585/2 "2020-02-07T02:21:41Z")

</div>

Please check [msgpack.org](https://msgpack.org/). Here’re some exists library for parsing msgpack.

Is this helpful? or do you need a parser tool instead?

---

<div class="post-metadata">

**Author:** ![Lhusoey](https://bbs.aprbrother.com/letter_avatar_proxy/v4/letter/l/f6c823/32.png) [@Lhusoey](https://bbs.aprbrother.com/u/Lhusoey)\
**Post date:** [February 7, 2020, 1:02pm UTC](https://bbs.aprbrother.com/t/ab-ble-gateway-v4-msgpack-alternative/1585/3 "2020-02-07T13:02:16Z")

</div>

Hi,

Thank you for the answer. What I am as you suggest looking for a parser tool. That can parse the code sent from the gateway live, and that my broker can pick up.  
Do you know of any out of the box solution for this?  
I have a Rpi3 that maybe i can use for this job.  
I guess there is no way to change the outgoing message from the Gateway directly?

-Lidvar

---

<div class="post-metadata">

**Author:** ![aprilpea](https://bbs.aprbrother.com/user_avatar/bbs.aprbrother.com/aprilpea/32/9_2.png) [@aprilpea](https://bbs.aprbrother.com/u/aprilpea)\
**Post date:** [February 8, 2020, 3:36am UTC](https://bbs.aprbrother.com/t/ab-ble-gateway-v4-msgpack-alternative/1585/4 "2020-02-08T03:36:51Z")

</div>

We made a tool [ble viewer](https://wiki.aprbrother.com/en/Software_AB_BLE_Gateway_V4.html#ble-viewer) which can subscribe message from MQTT broker and parse message from gateway.

You can also find the source code there. The tool is written in nodejs + electron.

---

<div class="post-metadata">

**Author:** ![Johntdyer](https://bbs.aprbrother.com/user_avatar/bbs.aprbrother.com/johntdyer/32/400_2.png) [@Johntdyer](https://bbs.aprbrother.com/u/Johntdyer)\
**Post date:** [February 19, 2020, 7:39pm UTC](https://bbs.aprbrother.com/t/ab-ble-gateway-v4-msgpack-alternative/1585/5 "2020-02-19T19:39:25Z")

</div>

The overwhelming theme I see in these forums are you are a strong advocate for msgPack and everyone else its a giant pain in the a\*\* for them and would like another option. Is there any chance you would consider an optional non-msgpack mode for those of us that would rather not put up w/ that format would just want simple text/json ?

---

<div class="post-metadata">

**Author:** ![aprilpea](https://bbs.aprbrother.com/user_avatar/bbs.aprbrother.com/aprilpea/32/9_2.png) [@aprilpea](https://bbs.aprbrother.com/u/aprilpea)\
**Post date:** [February 20, 2020, 1:37am UTC](https://bbs.aprbrother.com/t/ab-ble-gateway-v4-msgpack-alternative/1585/6 "2020-02-20T01:37:57Z")

</div>

The packet size of JSON is much larger than msgpack (400%). It should be a performance problem.

---

<div class="post-metadata">

**Author:** ![Johntdyer](https://bbs.aprbrother.com/user_avatar/bbs.aprbrother.com/johntdyer/32/400_2.png) [@Johntdyer](https://bbs.aprbrother.com/u/Johntdyer)\
**Post date:** [February 20, 2020, 4:05pm UTC](https://bbs.aprbrother.com/t/ab-ble-gateway-v4-msgpack-alternative/1585/7 "2020-02-20T16:05:21Z")

</div>

ok, but in small environments it would still work… I think you should leave this up to the user rather then forcing an opinionated binary codec down everyone’s throat

---

<div class="post-metadata">

**Author:** ![aprilpea](https://bbs.aprbrother.com/user_avatar/bbs.aprbrother.com/aprilpea/32/9_2.png) [@aprilpea](https://bbs.aprbrother.com/u/aprilpea)\
**Post date:** [February 21, 2020, 2:05am UTC](https://bbs.aprbrother.com/t/ab-ble-gateway-v4-msgpack-alternative/1585/8 "2020-02-21T02:05:33Z")

</div>

Thanks for your suggestion. We’ll try to add the feature in future.

---

<div class="post-metadata">

**Author:** ![Johntdyer](https://bbs.aprbrother.com/user_avatar/bbs.aprbrother.com/johntdyer/32/400_2.png) [@Johntdyer](https://bbs.aprbrother.com/u/Johntdyer)\
**Post date:** [March 9, 2020, 11:34am UTC](https://bbs.aprbrother.com/t/ab-ble-gateway-v4-msgpack-alternative/1585/9 "2020-03-09T11:34:08Z")

</div>

Any idea when ?

---

<div class="post-metadata">

**Author:** ![aprilpea](https://bbs.aprbrother.com/user_avatar/bbs.aprbrother.com/aprilpea/32/9_2.png) [@aprilpea](https://bbs.aprbrother.com/u/aprilpea)\
**Post date:** [March 10, 2020, 6:13am UTC](https://bbs.aprbrother.com/t/ab-ble-gateway-v4-msgpack-alternative/1585/10 "2020-03-10T06:13:20Z")

</div>

New firmware will be available in next week.

---

<div class="post-metadata">

**Author:** ![aprilpea](https://bbs.aprbrother.com/user_avatar/bbs.aprbrother.com/aprilpea/32/9_2.png) [@aprilpea](https://bbs.aprbrother.com/u/aprilpea)\
**Post date:** [March 12, 2020, 5:00am UTC](https://bbs.aprbrother.com/t/ab-ble-gateway-v4-msgpack-alternative/1585/12 "2020-03-12T05:00:34Z")

</div>

hello,

We pushed the beta firmware to OTA server today. Please use our Android config tool to try the firmware

How to upgrade

- Open the config app and connect the gateway
- Tap on Advanced
- Choose beta branch and tap on “update”

Please download [the new configure tool for laptop](https://drive.google.com/open?id=1YWOjHxTpWzLFDkDYzCuxmVCemz0sxvcv) . (Ignore the MQTTS and HTTPS option). This new tool support new option “Request Format”

Let me know if this works for you

---

<div class="post-metadata">

**Author:** ![aprilpea](https://bbs.aprbrother.com/user_avatar/bbs.aprbrother.com/aprilpea/32/9_2.png) [@aprilpea](https://bbs.aprbrother.com/u/aprilpea)\
**Post date:** [March 12, 2020, 5:02am UTC](https://bbs.aprbrother.com/t/ab-ble-gateway-v4-msgpack-alternative/1585/13 "2020-03-12T05:02:36Z")

</div>

The max number of advertising data is 90 for JSON format.

---

<div class="post-metadata">

**Author:** ![Johntdyer](https://bbs.aprbrother.com/user_avatar/bbs.aprbrother.com/johntdyer/32/400_2.png) [@Johntdyer](https://bbs.aprbrother.com/u/Johntdyer)\
**Post date:** [March 12, 2020, 2:11pm UTC](https://bbs.aprbrother.com/t/ab-ble-gateway-v4-msgpack-alternative/1585/14 "2020-03-12T14:11:16Z")

</div>

first off let me thank you for turning this around so quickly, I really do appreciate it !!!

Second I noticed the beta client link you sent was windows only… Do you happen to have a build for Linux / OSX ?

---

<div class="post-metadata">

**Author:** ![Johntdyer](https://bbs.aprbrother.com/user_avatar/bbs.aprbrother.com/johntdyer/32/400_2.png) [@Johntdyer](https://bbs.aprbrother.com/u/Johntdyer)\
**Post date:** [March 12, 2020, 2:13pm UTC](https://bbs.aprbrother.com/t/ab-ble-gateway-v4-msgpack-alternative/1585/15 "2020-03-12T14:13:05Z")

</div>

I also dont have an android… I did use the old config tool, did `yarn start` and then ran update firmware… It said it updated but i am not sure if it actually did.

Currently it says its running Firmware Version 1.2.5.17

So how do I proceed given that I dont have a Windows machine or a Android phone ?

---

<div class="post-metadata">

**Author:** ![Johntdyer](https://bbs.aprbrother.com/user_avatar/bbs.aprbrother.com/johntdyer/32/400_2.png) [@Johntdyer](https://bbs.aprbrother.com/u/Johntdyer)\
**Post date:** [March 13, 2020, 12:57am UTC](https://bbs.aprbrother.com/t/ab-ble-gateway-v4-msgpack-alternative/1585/16 "2020-03-13T00:57:52Z")

</div>

@aprilpea So I managed to get a windows machine and run the tool but it doesnt seem to accept / save the JSON option. I have tried restarting it several times and i have even tried simultaneously changing the mqtt topic and the message format and I see the new topic used but w/ the msgPack format…

 ![image](https://bbs1.aprbrother.com/uploads/default/original/1X/c718b10c6e001859cd79b8ebae9eb4dffa201eeb.png)

notice the default topic was `ab/hello` and the new one was clearly `ab/device`

---

<div class="post-metadata">

**Author:** ![aprilpea](https://bbs.aprbrother.com/user_avatar/bbs.aprbrother.com/aprilpea/32/9_2.png) [@aprilpea](https://bbs.aprbrother.com/u/aprilpea)\
**Post date:** [March 13, 2020, 2:41am UTC](https://bbs.aprbrother.com/t/ab-ble-gateway-v4-msgpack-alternative/1585/17 "2020-03-13T02:41:19Z")

</div>

Sorry. I forgot to note the firmware version is v1.2.5.21. This version firmware supports JSON format.

> [@Johntdyer](#):
>
> I also dont have an android

The android app can switch to testing branch for gateway. You must do this first. Can you use `curl` command? I will send private message about how to switch to testing branch by command line.

---

<div class="post-metadata">

**Author:** ![Johntdyer](https://bbs.aprbrother.com/user_avatar/bbs.aprbrother.com/johntdyer/32/400_2.png) [@Johntdyer](https://bbs.aprbrother.com/u/Johntdyer)\
**Post date:** [March 13, 2020, 12:26pm UTC](https://bbs.aprbrother.com/t/ab-ble-gateway-v4-msgpack-alternative/1585/18 "2020-03-13T12:26:22Z")

</div>

Thank you , this is great !

---

<div class="post-metadata">

**Author:** ![Lhusoey](https://bbs.aprbrother.com/letter_avatar_proxy/v4/letter/l/f6c823/32.png) [@Lhusoey](https://bbs.aprbrother.com/u/Lhusoey)\
**Post date:** [March 29, 2020, 8:35pm UTC](https://bbs.aprbrother.com/t/ab-ble-gateway-v4-msgpack-alternative/1585/19 "2020-03-29T20:35:05Z")

</div>

Hi, witch android app are you refferring to? i can not seem to find it.

---

<div class="post-metadata">

**Author:** ![Lhusoey](https://bbs.aprbrother.com/letter_avatar_proxy/v4/letter/l/f6c823/32.png) [@Lhusoey](https://bbs.aprbrother.com/u/Lhusoey)\
**Post date:** [March 29, 2020, 8:53pm UTC](https://bbs.aprbrother.com/t/ab-ble-gateway-v4-msgpack-alternative/1585/20 "2020-03-29T20:53:39Z")

</div>

Hi,

How did you switch to testing branch for gateway?  
I have same issue as you, by not getteing higher firware thea v.1.2.5.17  
@aprilpea is reffering to an android app, but i am not able to find this.

---

<div class="post-metadata">

**Author:** ![aprilpea](https://bbs.aprbrother.com/user_avatar/bbs.aprbrother.com/aprilpea/32/9_2.png) [@aprilpea](https://bbs.aprbrother.com/u/aprilpea)\
**Post date:** [March 30, 2020, 2:20am UTC](https://bbs.aprbrother.com/t/ab-ble-gateway-v4-msgpack-alternative/1585/21 "2020-03-30T02:20:45Z")

</div>

Please check the [Gateway Configure Tool v1.0.5 For Android](https://wiki.aprbrother.com/en/Software_AB_BLE_Gateway_V4.html#download)

[Next page](https://bbs.aprbrother.com/t/ab-ble-gateway-v4-msgpack-alternative/1585.md?page=2)
