You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
Running node-matter 0.0.10 and iOS 16.1
Matter devices are discoverable on the network.
Cannot get pass the pairing process in Home App.
No log generated in node-matter.
Will try compiling chip-tool to run additionnal tests
node-matter process
MacBook-Pro ~ % matter
2022-9-0 18:2:43.811 INFO Device [email protected]
2022-9-0 18:2:43.830 INFO Device Listening
Network discovery
17066BB8F282C5E0._matterc._udp.local.
F018989E8D0E0000.local:5540
192.168.10.101:5540
CM = 1
D = 3840
DN = Matter test device
DT = 257
PH = 33
PI =
SAI = 300
SII = 5000
T = 1
VP = 65521+32769
Thanks for reporting this issue!
I will try to get my hand on an iOS 16.1 device to reproduce on my side.
One guess of this bug: node-matter only supports IPv4 but Matter is supposed to be IPv6-only with best-effort IPv4 support.
Maybe iOs 16.1 doesn't like that.
No logs on node-matter since it doesn't even receive the iOs pairing request on IPv6
Any chance you can capture the network packets using wireshark?
That will help to figure out the low level.
Adding IPv6 support for node-matter should be pretty easy.
Did a Wireshark dump.
Can see some iOS device MDNS chatter looking for .matter devices.
No active connection on node-matter UDP 5540 port though ...
Currently building chip-tool on another computer to further test if chip-tool can connect of ipv4 wifi network.
NOTE: the line It says "This accessory is not certified", click "Add anyway" is an amazing news!!!!!
This means that iOs is allowing home-made Matter devices using the normal Home app!
The magic restart trick did work !!!
node-matter crashing after clicking "Add anyway"
ERROR InteractionServerMessenger Error: Unsupported message type 10
You can check out the branch "add-uint8-16-3264T", you should be able to get a little further...
The problem is now in CASE pairing in the message sigma2. iOs replies "bad parameter value" while Android ChipTool is fine with the exact same node-matter build...
It is the crypto stuff, so not easy to debug... It might take me a couple of days.
Hmmm... the official Matter Lighting test device on my Raspberry Pi doesn't work either with iOs 16.1, it crashes at the exact same step, so the problem might not be node-matter but iOS...
Does anyone have succeeded to pair another official Matter device with an iPhone?
I will try to sync the official Lighting test app to HEAD from project-chip: maybe something has been updated on the protocol but I thought I was already at v1.0.
I know that there was a bug around that code that I reported to Matter that makes project-chip not compatible with Matter official specs but it was not on the code path (it was on session resumption).
Getting further after checking out branch add-uint8-16-3264T !
Are official specifications available for Matter protocol or are you using Matter code repository as documentation ?
2022-10-2 21:10:51.070 INFO Device [email protected]
2022-10-2 21:10:51.087 INFO Device Listening
...
2022-10-2 21:11:50.281 ERROR CaseServer An error occured during the commissioning Error: Received error status: 1 0 2
...
I was using Matter code repository before the specs were released but I am using the specs now.
This part were the crash is was written before the specs were release, but by double-checking it seems mostly correct.
I added bunch of logs in the example Lighting app so I can have access to unencrypted message and private keys, which helps a lot for debugging.
If you get a chance, can you try to build one of the example of Matter code repository and see if you can add it on iOs?
For now, it doesn't work for me. If I have a working device where I can add log, it will be easier to fix the issue.
Ok, I now also used an Ubunutu box with "lighting-app" and iOS 16.1 ... my results is this with: project-chip/connectedhomeip#23565@mfucci maybe log interesting for you?
I thought maybe a good idea to open issue there ... lets see if iOS 16.1 is faulty or something else
PR #193 should at least restore the pairing functionality ... but the device stayed unresponsive for me ( but not in my home network ... so I need to retest ... maybe solved then already).
Activity
mfucci commentedon Oct 31, 2022
Thanks for reporting this issue!
I will try to get my hand on an iOS 16.1 device to reproduce on my side.
One guess of this bug: node-matter only supports IPv4 but Matter is supposed to be IPv6-only with best-effort IPv4 support.
Maybe iOs 16.1 doesn't like that.
No logs on node-matter since it doesn't even receive the iOs pairing request on IPv6
Any chance you can capture the network packets using wireshark?
That will help to figure out the low level.
Adding IPv6 support for node-matter should be pretty easy.
NebzHB commentedon Oct 31, 2022
I did the same here, but there is logs and error in it :
EHylands commentedon Oct 31, 2022
Did a Wireshark dump.
Can see some iOS device MDNS chatter looking for .matter devices.
No active connection on node-matter UDP 5540 port though ...
Currently building chip-tool on another computer to further test if chip-tool can connect of ipv4 wifi network.
mfucci commentedon Nov 1, 2022
I was able to install iOs 16.1 on my old iPhone 8 so I will be able to reproduce the issue pretty soon...
node-matter only advertises an A record on MDNS (for IPv4, instead of a AAAA record for IPv6) so maybe iOs doesn't even try to connect.
But the problem can be completely something else, IPv6 issue was just a wild guess. chip-tool works without problem with node-matter on IPv4 only.
mikkmartin commentedon Nov 1, 2022
Same here on iOS 16.1 Maybe this "false payload" 👆 could give a hint on the pairing mismatch.
mfucci commentedon Nov 1, 2022
I just tried and for me, iOs 16.1 sees the node-matter and tries to pair with it but node-matter crashes in the middle.
I am investigating now...
Steps to reproduce:
mfucci commentedon Nov 2, 2022
@EHylands : The 2nd time I did the same step, the iphone did not see node-matter
I restarted the iPhone and it worked again after that
You might to try the "restart" magic trick :-)
mfucci commentedon Nov 2, 2022
NOTE: the line It says "This accessory is not certified", click "Add anyway" is an amazing news!!!!!
This means that iOs is allowing home-made Matter devices using the normal Home app!
EHylands commentedon Nov 2, 2022
The magic restart trick did work !!!
node-matter crashing after clicking "Add anyway"
ERROR InteractionServerMessenger Error: Unsupported message type 10
mfucci commentedon Nov 2, 2022
You can check out the branch "add-uint8-16-3264T", you should be able to get a little further...
The problem is now in CASE pairing in the message sigma2. iOs replies "bad parameter value" while Android ChipTool is fine with the exact same node-matter build...
It is the crypto stuff, so not easy to debug... It might take me a couple of days.
mfucci commentedon Nov 2, 2022
Airplane on/off works as well instead of a full reset
mfucci commentedon Nov 2, 2022
Hmmm... the official Matter Lighting test device on my Raspberry Pi doesn't work either with iOs 16.1, it crashes at the exact same step, so the problem might not be node-matter but iOS...
Does anyone have succeeded to pair another official Matter device with an iPhone?
I will try to sync the official Lighting test app to HEAD from project-chip: maybe something has been updated on the protocol but I thought I was already at v1.0.
I know that there was a bug around that code that I reported to Matter that makes project-chip not compatible with Matter official specs but it was not on the code path (it was on session resumption).
EHylands commentedon Nov 2, 2022
Getting further after checking out branch add-uint8-16-3264T !
Are official specifications available for Matter protocol or are you using Matter code repository as documentation ?
2022-10-2 21:10:51.070 INFO Device [email protected]
2022-10-2 21:10:51.087 INFO Device Listening
...
2022-10-2 21:11:50.281 ERROR CaseServer An error occured during the commissioning Error: Received error status: 1 0 2
...
mfucci commentedon Nov 2, 2022
I was using Matter code repository before the specs were released but I am using the specs now.
This part were the crash is was written before the specs were release, but by double-checking it seems mostly correct.
I added bunch of logs in the example Lighting app so I can have access to unencrypted message and private keys, which helps a lot for debugging.
mfucci commentedon Nov 2, 2022
If you get a chance, can you try to build one of the example of Matter code repository and see if you can add it on iOs?
For now, it doesn't work for me. If I have a working device where I can add log, it will be easier to fix the issue.
18 remaining items
Apollon77 commentedon Nov 5, 2022
wow great stuff ...
Apollon77 commentedon Nov 9, 2022
Ok, I now also used an Ubunutu box with "lighting-app" and iOS 16.1 ... my results is this with: project-chip/connectedhomeip#23565 @mfucci maybe log interesting for you?
I thought maybe a good idea to open issue there ... lets see if iOS 16.1 is faulty or something else
mfucci commentedon Jan 7, 2023
Now master branch is fully compatible with iOs!
Apollon77 commentedon Jan 7, 2023
WWWOOOWWWW ... Cool,I will verify that today with iPhone and Homepod
javierbarellano4v commentedon Jan 12, 2023
Upon attempting to add accessory on iPhone 16.1 using node-matter on a Raspberry PI, popup indicates that I need a HUB to add it. Required?
Apollon77 commentedon Jan 13, 2023
which pairing code do you used? try the QA code ... then still?
javierbarellano4v commentedon Jan 13, 2023
@Apollon77 I tried again with QrCode and this time it started to 'pair' but then ran into error:
Apollon77 commentedon Jan 13, 2023
Copied text would be easier because In fact relevant stuff missing from the log but yes iOS is not working again. Mfucci is already working on it
mfucci commentedon Jan 17, 2023
Reopening this issue: Apple has updated Apple Home app and pairing is not working anymore...
I am on it!
Apollon77 commentedon Jan 17, 2023
PR #193 should at least restore the pairing functionality ... but the device stayed unresponsive for me ( but not in my home network ... so I need to retest ... maybe solved then already).
Apollon77 commentedon Jan 17, 2023
Ok, update .. in home network the device is working (including bridge :-))))
mfucci commentedon Jan 21, 2023
Tested on my side and I confirm that iOs is working again with the code in master branch.
Closing this issue