# \[APP\]\[Pro\] Global Caché - Connect IR, Serial, and Relay to Almost Any Network

**URL:** https://community.homey.app/t/app-pro-global-cache-connect-ir-serial-and-relay-to-almost-any-network/2338
**Category:** Apps
**Created:** [October 1, 2018, 8:41pm UTC](https://community.homey.app/t/app-pro-global-cache-connect-ir-serial-and-relay-to-almost-any-network/2338 "2018-10-01T20:41:43Z")
**Posts on this page:** 20
**Page:** 2

<div class="post-metadata">

### Author: ![pln](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/pln/32/1191_2.png) [@pln](https://community.homey.app/u/pln)
#### Post date: [October 7, 2018, 9:46am UTC](https://community.homey.app/t/app-pro-global-cache-connect-ir-serial-and-relay-to-almost-any-network/2338/29 "2018-10-07T09:46:36Z")

</div>

Ok, can you try escaping the backslash as its JSON. i.e put double

\\x02POF\\x03\\0D

. Also have you verified that the baud rate and the other settings are correct for your connected device?

---

<div class="post-metadata">

### Author: ![Moek](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/moek/32/3728_2.png) [@Moek](https://community.homey.app/u/Moek)
#### Post date: [October 7, 2018, 9:51am UTC](https://community.homey.app/t/app-pro-global-cache-connect-ir-serial-and-relay-to-almost-any-network/2338/30 "2018-10-07T09:51:10Z")

</div>

Double backslash also doesn’t work I’m afraid.  
Setting on the WF2SL are correct as far as I can tell  
 ![49](https://us1.discourse-cdn.com/flex025/uploads/athom/original/2X/7/7630abc68da09e00c8c8a2ab347ba3e249e4e13a.png)

---

<div class="post-metadata">

### Author: ![pln](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/pln/32/1191_2.png) [@pln](https://community.homey.app/u/pln)
#### Post date: [October 7, 2018, 10:09am UTC](https://community.homey.app/t/app-pro-global-cache-connect-ir-serial-and-relay-to-almost-any-network/2338/31 "2018-10-07T10:09:45Z")

</div>

I was referring the config in the apps JSON, my understanding is that overrides the stuff configured on the iTach.  
However I found one issue with the config cmd sent and also put in some debug logging. Can you have another go after updating the app?

EDIT: one more fix pushed

---

<div class="post-metadata">

### Author: ![Moek](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/moek/32/3728_2.png) [@Moek](https://community.homey.app/u/Moek)
#### Post date: [October 7, 2018, 10:30am UTC](https://community.homey.app/t/app-pro-global-cache-connect-ir-serial-and-relay-to-almost-any-network/2338/32 "2018-10-07T10:30:35Z")

</div>

Oh , you meant these settings?  
 ![25](https://us1.discourse-cdn.com/flex025/uploads/athom/original/2X/1/19df648dc29bede507145cc25ca322bdc4f96565.png)  
Seems like they are ok as well.  
I also tried renaming “PARITY\_NO” to “PARITY\_NONE” because that’s what the setting is called on the WF2SL but that didn’t help.  
Just installed the latest version but it’s still not working.  
What I did notice looking through your code is that in device.js in master/drivers/ip2sl/device.js it says “class ITach **IP2IR** Device extends ITachDevice” while the IP2CC has “class ITach **IP2CC** Device extends ITachDevice”.  
Should it say “class ITach **IP2SL** Device extends ITachDevice”?  
Mind you, I have no coding experience what so ever so please excuse me if I’m talking bullsh\*t 😉

---

<div class="post-metadata">

### Author: ![pln](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/pln/32/1191_2.png) [@pln](https://community.homey.app/u/pln)
#### Post date: [October 7, 2018, 10:37am UTC](https://community.homey.app/t/app-pro-global-cache-connect-ir-serial-and-relay-to-almost-any-network/2338/33 "2018-10-07T10:37:38Z")

</div>

Oh, you’re totally right, i’ve pushed another fix… not sure if that was a problem though but perhaps, it depends how homey loads the classes as it was under the correct driver directory. Did you get any new output log?

---

<div class="post-metadata">

### Author: ![Moek](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/moek/32/3728_2.png) [@Moek](https://community.homey.app/u/Moek)
#### Post date: [October 7, 2018, 10:48am UTC](https://community.homey.app/t/app-pro-global-cache-connect-ir-serial-and-relay-to-almost-any-network/2338/34 "2018-10-07T10:48:44Z")

</div>

Now it crashes right after I run the flow.  
 ![10](https://us1.discourse-cdn.com/flex025/uploads/athom/original/2X/6/6ba5ab53b82b223bc1ba60389cd2ebf98be7d648.png)  
And below is the output log:

✓ Validating app…  
✓ Homey App validated successfully against level `debug`  
✓ Packing Homey App…  
✓ Installing Homey App on `Homey` ([http://192.168.3.88:80](http://192.168.3.88:80))…  
✓ Homey App `com.globalcache` successfully installed  
✓ Running `com.globalcache`, press CTRL+C to quit  
─────────────── Logging stdout & stderr ───────────────  
2018-10-07 12:39:26 [log] [MyApp] MyApp is running…  
listening on 0.0.0.0:9131  
2018-10-07 12:39:35 [log] [ManagerDrivers] [ip2ir] Device found: iTachWF2SL @ [http://192.168.3.171](http://192.168.3.171)  
2018-10-07 12:41:05 [log] [ManagerDrivers] [ip2sl] Device found: iTachWF2SL @ [http://192.168.3.171](http://192.168.3.171)  
{ ir: { devices: [[Object], [Object] ] },  
serial:  
{ baudrate: ‘9600’,  
flowcontrol: ‘FLOW\_NONE’,  
parity: ‘PARITY\_NO’,  
cmds: [[Object], [Object], [Object], [Object] ] } }  
2018-10-07 12:41:15 [log] [ManagerDrivers] [ip2ir] Device found: iTachWF2SL @ [http://192.168.3.171](http://192.168.3.171)  
2018-10-07 12:41:15 [log] [ManagerDrivers] [ip2cc] Device found: iTachWF2SL @ [http://192.168.3.171](http://192.168.3.171)  
2018-10-07 12:41:15 [log] [ManagerDrivers] [ip2sl] Device found: iTachWF2SL @ [http://192.168.3.171](http://192.168.3.171)  
{ ir: { devices: [[Object], [Object] ] },  
serial:  
{ baudrate: ‘9600’,  
flowcontrol: ‘FLOW\_NONE’,  
parity: ‘PARITY\_NO’,  
cmds: [[Object], [Object], [Object], [Object] ] } }  
sending config set\_SERIAL,1:1,9600,FLOW\_NONE,PARITY\_NO  
/drivers/ip2sl/device.js:47  
payloadClient.connect(this.\_serialPort, this.\_deviceData.ip, function () {  
^

TypeError: Cannot read property ‘ip’ of undefined  
at Socket. (/drivers/ip2sl/device.js:47:64)  
at emitOne (events.js:116:13)  
at Socket.emit (events.js:211:7)  
at addChunk (\_stream\_readable.js:263:12)  
at readableAddChunk (\_stream\_readable.js:250:11)  
at Socket.Readable.push (\_stream\_readable.js:208:10)  
at TCP.onread (net.js:594:20)

— INFO: com.globalcache has been killed —  
2018-10-07 12:42:16 [log] [MyApp] MyApp is running…  
listening on 0.0.0.0:9131  
2018-10-07 12:42:16 [log] [ManagerDrivers] [ip2sl] [0] device init  
2018-10-07 12:42:16 [log] [ManagerDrivers] [ip2sl] [0] name: iTachWF2SL (192.168.3.171)  
2018-10-07 12:42:16 [log] [ManagerDrivers] [ip2sl] [0] class: other  
{ ir: { devices: [[Object], [Object] ] },  
serial:  
{ baudrate: ‘9600’,  
flowcontrol: ‘FLOW\_NONE’,  
parity: ‘PARITY\_NO’,  
cmds: [[Object], [Object], [Object], [Object] ] } }  
{ ir: { devices: [[Object], [Object] ] },  
serial:  
{ baudrate: ‘9600’,  
flowcontrol: ‘FLOW\_NONE’,  
parity: ‘PARITY\_NO’,  
cmds: [[Object], [Object], [Object], [Object] ] } }  
2018-10-07 12:42:25 [log] [ManagerDrivers] [ip2ir] Device found: iTachWF2SL @ [http://192.168.3.171](http://192.168.3.171)  
2018-10-07 12:42:45 [log] [ManagerDrivers] [ip2sl] Device found: iTachWF2SL @ [http://192.168.3.171](http://192.168.3.171)  
{ ir: { devices: [[Object], [Object] ] },  
serial:  
{ baudrate: ‘9600’,  
flowcontrol: ‘FLOW\_NONE’,  
parity: ‘PARITY\_NO’,  
cmds: [[Object], [Object], [Object], [Object] ] } }  
2018-10-07 12:42:55 [log] [ManagerDrivers] [ip2ir] Device found: iTachWF2SL @ [http://192.168.3.171](http://192.168.3.171)  
2018-10-07 12:42:55 [log] [ManagerDrivers] [ip2cc] Device found: iTachWF2SL @ [http://192.168.3.171](http://192.168.3.171)  
2018-10-07 12:42:55 [log] [ManagerDrivers] [ip2sl] Device found: iTachWF2SL @ [http://192.168.3.171](http://192.168.3.171)  
{ ir: { devices: [[Object], [Object] ] },  
serial:  
{ baudrate: ‘9600’,  
flowcontrol: ‘FLOW\_NONE’,  
parity: ‘PARITY\_NO’,  
cmds: [[Object], [Object], [Object], [Object] ] } }  
sending config set\_SERIAL,1:1,9600,FLOW\_NONE,PARITY\_NO  
/drivers/ip2sl/device.js:47  
payloadClient.connect(this.\_serialPort, this.\_deviceData.ip, function () {  
^

TypeError: Cannot read property ‘ip’ of undefined  
at Socket. (/drivers/ip2sl/device.js:47:64)  
at emitOne (events.js:116:13)  
at Socket.emit (events.js:211:7)  
at addChunk (\_stream\_readable.js:263:12)  
at readableAddChunk (\_stream\_readable.js:250:11)  
at Socket.Readable.push (\_stream\_readable.js:208:10)  
at TCP.onread (net.js:594:20)

— INFO: com.globalcache has been killed —  
2

---

<div class="post-metadata">

### Author: ![pln](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/pln/32/1191_2.png) [@pln](https://community.homey.app/u/pln)
#### Post date: [October 7, 2018, 10:53am UTC](https://community.homey.app/t/app-pro-global-cache-connect-ir-serial-and-relay-to-almost-any-network/2338/35 "2018-10-07T10:53:00Z")

</div>

ok sorry my fault , new version again 🙂

---

<div class="post-metadata">

### Author: ![Moek](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/moek/32/3728_2.png) [@Moek](https://community.homey.app/u/Moek)
#### Post date: [October 7, 2018, 11:01am UTC](https://community.homey.app/t/app-pro-global-cache-connect-ir-serial-and-relay-to-almost-any-network/2338/36 "2018-10-07T11:01:13Z")

</div>

No problem!  
Just installed the latest but unfortunately it’s still not working.  
Below is the log.

✓ Validating app…

✓ Homey App validated successfully against level `debug`

✓ Packing Homey App…

✓ Installing Homey App on `Homey` ([http://192.168.3.88:80](http://192.168.3.88:80))…

✓ Homey App `com.globalcache` successfully installed

✓ Running `com.globalcache`, press CTRL+C to quit

─────────────── Logging stdout & stderr ───────────────

2018-10-07 12:55:15 [log] [MyApp] MyApp is running…

listening on 0.0.0.0:9131

2018-10-07 12:55:25 [log] [ManagerDrivers] [ip2ir] Device found: iTachWF2SL @ [http://192.168.3.171](http://192.168.3.171)

2018-10-07 12:55:25 [log] [ManagerDrivers] [ip2cc] Device found: iTachWF2SL @ [http://192.168.3.171](http://192.168.3.171)

2018-10-07 12:57:25 [log] [ManagerDrivers] [ip2sl] Device found: iTachWF2SL @ [http://192.168.3.171](http://192.168.3.171)

{ ir: { devices: [[Object], [Object] ] },

serial:

{ baudrate: ‘9600’,

flowcontrol: ‘FLOW\_NONE’,

parity: ‘PARITY\_NO’,

cmds: [[Object], [Object], [Object], [Object] ] } }

2018-10-07 12:57:35 [log] [ManagerDrivers] [ip2ir] Device found: iTachWF2SL @ [http://192.168.3.171](http://192.168.3.171)

2018-10-07 12:57:35 [log] [ManagerDrivers] [ip2cc] Device found: iTachWF2SL @ [http://192.168.3.171](http://192.168.3.171)

2018-10-07 12:57:35 [log] [ManagerDrivers] [ip2sl] Device found: iTachWF2SL @ [http://192.168.3.171](http://192.168.3.171)

{ ir: { devices: [[Object], [Object] ] },

serial:

{ baudrate: ‘9600’,

flowcontrol: ‘FLOW\_NONE’,

parity: ‘PARITY\_NO’,

cmds: [[Object], [Object], [Object], [Object] ] } }

sending config set\_SERIAL,1:1,9600,FLOW\_NONE,PARITY\_NO

sending payload |02|PON|03|0D

{ ir: { devices: [[Object], [Object] ] },

serial:  
{ baudrate: ‘9600’,  
flowcontrol: ‘FLOW\_NONE’,  
parity: ‘PARITY\_NO’,  
cmds: [[Object], [Object], [Object], [Object] ] } }  
sending config set\_SERIAL,1:1,9600,FLOW\_NONE,PARITY\_NO  
sending payload \x02POF\x03\0D  
2018-10-07 12:57:45 [log] [ManagerDrivers] [ip2ir] Device found: iTachWF2SL @ [http://192.168.3.171](http://192.168.3.171)

---

<div class="post-metadata">

### Author: ![Moek](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/moek/32/3728_2.png) [@Moek](https://community.homey.app/u/Moek)
#### Post date: [October 7, 2018, 11:03am UTC](https://community.homey.app/t/app-pro-global-cache-connect-ir-serial-and-relay-to-almost-any-network/2338/37 "2018-10-07T11:03:00Z")

</div>

Ps, I’ll skip the “Device found” lines in the next log. Sorry for cluttering…😉

---

<div class="post-metadata">

### Author: ![pln](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/pln/32/1191_2.png) [@pln](https://community.homey.app/u/pln)
#### Post date: [October 7, 2018, 11:07am UTC](https://community.homey.app/t/app-pro-global-cache-connect-ir-serial-and-relay-to-almost-any-network/2338/38 "2018-10-07T11:07:15Z")

</div>

Ok at least everything looks correct now. I need to go out for a while but can have another look this evening.

---

<div class="post-metadata">

### Author: ![Moek](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/moek/32/3728_2.png) [@Moek](https://community.homey.app/u/Moek)
#### Post date: [October 7, 2018, 11:08am UTC](https://community.homey.app/t/app-pro-global-cache-connect-ir-serial-and-relay-to-almost-any-network/2338/39 "2018-10-07T11:08:17Z")

</div>

Sure, I’ll check in later to see if you need anything.  
Thanks again for your efforts!

---

<div class="post-metadata">

### Author: ![pln](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/pln/32/1191_2.png) [@pln](https://community.homey.app/u/pln)
#### Post date: [October 7, 2018, 2:35pm UTC](https://community.homey.app/t/app-pro-global-cache-connect-ir-serial-and-relay-to-almost-any-network/2338/40 "2018-10-07T14:35:23Z")

</div>

ok I possible found a problem , can you try the new version.

Also on your second command I think the last char should be \\x0D

I think the only format thats supported now is the second command in your example (on2), if you need those control characters.

---

<div class="post-metadata">

### Author: ![Moek](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/moek/32/3728_2.png) [@Moek](https://community.homey.app/u/Moek)
#### Post date: [October 7, 2018, 7:13pm UTC](https://community.homey.app/t/app-pro-global-cache-connect-ir-serial-and-relay-to-almost-any-network/2338/41 "2018-10-07T19:13:44Z")

</div>

Sorry, still no response from my projector.  
Also tried the \x0D but didn’t help.  
Below is the log (without all the excess “device found” lines 😉 )

✓ Validating app…  
✓ Homey App validated successfully against level `debug`  
✓ Packing Homey App…  
✓ Installing Homey App on `Homey` ([http://192.168.3.88:80](http://192.168.3.88:80))…  
✓ Homey App `com.globalcache` successfully installed  
✓ Running `com.globalcache`, press CTRL+C to quit  
─────────────── Logging stdout & stderr ───────────────  
2018-10-07 21:03:57 [log] [MyApp] MyApp is running…  
listening on 0.0.0.0:9131  
2018-10-07 21:03:57 [log] [ManagerDrivers] [ip2ir] Device found: iTachWF2SL @ [http://192.168.3.171](http://192.168.3.171)  
2018-10-07 21:04:40 [log] [ManagerDrivers] [ip2sl] [0] device init  
2018-10-07 21:04:40 [log] [ManagerDrivers] [ip2sl] [0] name: iTachWF2SL (192.168.3.171)  
2018-10-07 21:04:40 [log] [ManagerDrivers] [ip2sl] [0] class: other  
2018-10-07 21:04:40 [log] [ManagerDrivers] [ip2sl] [0] device added  
2018-10-07 21:04:47 [log] [ManagerDrivers] [ip2ir] Device found: iTachWF2SL @ [http://192.168.3.171](http://192.168.3.171)  
{ ir: { devices: [[Object], [Object] ] },  
serial:  
{ baudrate: ‘9600’,  
flowcontrol: ‘FLOW\_NONE’,  
parity: ‘PARITY\_NO’,  
cmds: [[Object], [Object], [Object], [Object], [Object] ] } }  
{ ir: { devices: [[Object], [Object] ] },  
serial:  
{ baudrate: ‘9600’,  
flowcontrol: ‘FLOW\_NONE’,  
parity: ‘PARITY\_NO’,  
cmds: [[Object], [Object], [Object], [Object], [Object] ] } }  
{ ir: { devices: [[Object], [Object] ] },  
serial:  
{ baudrate: ‘9600’,  
flowcontrol: ‘FLOW\_NONE’,  
parity: ‘PARITY\_NO’,  
cmds: [[Object], [Object], [Object], [Object], [Object] ] } }  
sending config set\_SERIAL,1:1,9600,FLOW\_NONE,PARITY\_NO  
config response \<Buffer 53 45 52 49 41 4c 2c 31 3a 31 2c 39 36 30 30 2c 46 4c 4f 57 5f 4e 4f 4e 45 2c 50 41 52 49 54 59 5f 4e 4f 0d\>  
sending payload \x02POF\x03\x0D  
2018-10-07 21:07:07 [log] [ManagerDrivers] [ip2ir] Device found: iTachWF2SL @ [http://192.168.3.171](http://192.168.3.171)  
{ ir: { devices: [[Object], [Object] ] },  
serial:  
{ baudrate: ‘9600’,  
flowcontrol: ‘FLOW\_NONE’,  
parity: ‘PARITY\_NO’,  
cmds: [[Object], [Object], [Object], [Object], [Object] ] } }  
2018-10-07 21:07:18 [log] [ManagerDrivers] [ip2ir] Device found: iTachWF2SL @ [http://192.168.3.171](http://192.168.3.171)  
{ ir: { devices: [[Object], [Object] ] },  
serial:  
{ baudrate: ‘9600’,  
flowcontrol: ‘FLOW\_NONE’,  
parity: ‘PARITY\_NO’,  
cmds: [[Object], [Object], [Object], [Object], [Object] ] } }  
sending config set\_SERIAL,1:1,9600,FLOW\_NONE,PARITY\_NO  
config response \<Buffer 53 45 52 49 41 4c 2c 31 3a 31 2c 39 36 30 30 2c 46 4c 4f 57 5f 4e 4f 4e 45 2c 50 41 52 49 54 59 5f 4e 4f 0d\>  
sending payload \x02POF\x03\0D  
{ ir: { devices: [[Object], [Object] ] },  
serial:  
{ baudrate: ‘9600’,  
flowcontrol: ‘FLOW\_NONE’,  
parity: ‘PARITY\_NO’,  
cmds: [[Object], [Object], [Object], [Object], [Object] ] } }  
2018-10-07 21:07:27 [log] [ManagerDrivers] [ip2ir] Device found: iTachWF2SL @ [http://192.168.3.171](http://192.168.3.171)  
{ ir: { devices: [[Object], [Object] ] },  
serial:  
{ baudrate: ‘9600’,  
flowcontrol: ‘FLOW\_NONE’,  
parity: ‘PARITY\_NO’,  
cmds: [[Object], [Object], [Object], [Object], [Object] ] } }  
sending config set\_SERIAL,1:1,9600,FLOW\_NONE,PARITY\_NO  
config response \<Buffer 53 45 52 49 41 4c 2c 31 3a 31 2c 39 36 30 30 2c 46 4c 4f 57 5f 4e 4f 4e 45 2c 50 41 52 49 54 59 5f 4e 4f 0d\>  
sending payload |02|PON|03|0D  
2018-10-07 21:07:38 [log] [ManagerDrivers] [ip2ir] Device found: iTachWF2SL @ [http://192.168.3.171](http://192.168.3.171)

Edit: just saw that I copied my POF codes instead of PON and corrected it in my flows but still no response from the projector.

---

<div class="post-metadata">

### Author: ![pln](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/pln/32/1191_2.png) [@pln](https://community.homey.app/u/pln)
#### Post date: [October 7, 2018, 7:21pm UTC](https://community.homey.app/t/app-pro-global-cache-connect-ir-serial-and-relay-to-almost-any-network/2338/42 "2018-10-07T19:21:51Z")

</div>

Ok, just to double check , the only command in logs above that I think is supported right now has power off (POF)  
instead of power on PON

sending payload \x02POF\x03\x0D

Is this correct?

---

<div class="post-metadata">

### Author: ![Moek](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/moek/32/3728_2.png) [@Moek](https://community.homey.app/u/Moek)
#### Post date: [October 7, 2018, 7:27pm UTC](https://community.homey.app/t/app-pro-global-cache-connect-ir-serial-and-relay-to-almost-any-network/2338/43 "2018-10-07T19:27:42Z")

</div>

Yeah I noticed it send POF instead of PON just after posting but changing it to PON didn’t make a difference.  
I kept forgetting to change the text-file I copy from but just changed it so it won’t happen again 😉

Every test I tried 3 codes and after your suggestion now 4 codes:  
PON  
\x02PON\x03\x0D  
\x02PON\x03\0D  
|02|PON|03|0D

None work unfortunately.

---

<div class="post-metadata">

### Author: ![pln](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/pln/32/1191_2.png) [@pln](https://community.homey.app/u/pln)
#### Post date: [October 7, 2018, 7:33pm UTC](https://community.homey.app/t/app-pro-global-cache-connect-ir-serial-and-relay-to-almost-any-network/2338/44 "2018-10-07T19:33:08Z")

</div>

Ok, its very strange that it doesn’t work. I have even set up iTest now and debugged what that one is sending against a mock server (simulating the iTach) and its exactly same as from the app from what I can see. Can you post a screenshot on a working iTest example with a working command. Its running on port 4999 (Serial 1), right?

---

<div class="post-metadata">

### Author: ![Moek](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/moek/32/3728_2.png) [@Moek](https://community.homey.app/u/Moek)
#### Post date: [October 7, 2018, 7:38pm UTC](https://community.homey.app/t/app-pro-global-cache-connect-ir-serial-and-relay-to-almost-any-network/2338/45 "2018-10-07T19:38:16Z")

</div>

This is what works using iTest.  
Indeed port4999 (serial 1).  
In the screenshot the literal button is highlighted but I use mixed button to send the command

 ![40](https://us1.discourse-cdn.com/flex025/uploads/athom/original/2X/c/cd8492da34a4fdbff6f087edc6185e8875ca15d1.png)

---

<div class="post-metadata">

### Author: ![pln](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/pln/32/1191_2.png) [@pln](https://community.homey.app/u/pln)
#### Post date: [October 7, 2018, 7:44pm UTC](https://community.homey.app/t/app-pro-global-cache-connect-ir-serial-and-relay-to-almost-any-network/2338/46 "2018-10-07T19:44:44Z")

</div>

Can you try with this format instead:

\u0002PON\u0003\u000D

Use _single backslashes_

Special codes (hex) needs to be \u and 4 digits, so just prefix them with 00 as its coming from JSON, my fault, should have thought about that earlier 🙂

---

<div class="post-metadata">

### Author: ![Moek](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/moek/32/3728_2.png) [@Moek](https://community.homey.app/u/Moek)
#### Post date: [October 7, 2018, 7:56pm UTC](https://community.homey.app/t/app-pro-global-cache-connect-ir-serial-and-relay-to-almost-any-network/2338/47 "2018-10-07T19:56:27Z")

</div>

YES!!! It works!  
Power on, power off, lensmemories, 3d settings 🎉  
Man, I’m am so happy 😋  
Thank you so much for your efforts and help!!  
Please don’t forget to add a donate button as soon as your submit you app to the app store.  
Just, just…wow

---

<div class="post-metadata">

### Author: ![pln](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/pln/32/1191_2.png) [@pln](https://community.homey.app/u/pln)
#### Post date: [October 7, 2018, 8:02pm UTC](https://community.homey.app/t/app-pro-global-cache-connect-ir-serial-and-relay-to-almost-any-network/2338/48 "2018-10-07T20:02:24Z")

</div>

Great news! I guess I could add support of other types of format like iTest support. Can you paste in a log now when some command is successful. I’m a bit worried that the client doesn’t disconnect and that may cause a problem after a while.

[Previous page](https://community.homey.app/t/app-pro-global-cache-connect-ir-serial-and-relay-to-almost-any-network/2338.md?page=1)

[Next page](https://community.homey.app/t/app-pro-global-cache-connect-ir-serial-and-relay-to-almost-any-network/2338.md?page=3)
