More progress, and good news!
TLDR - I think it works, in both the legacy mode and the main branch when set to 44khz - I must have missed something the first time i checked. I also didnt bother running test.js last time as i saw faults.
But scrolling through the log fully, we can see, on the main branch:
Aug 16 21:19:20 raspberrypi node[574]: 1 15
Aug 16 21:19:20 raspberrypi node[574]: fault 1
Aug 16 21:19:20 raspberrypi node[574]: Error 1 95
Aug 16 21:19:20 raspberrypi node[574]: fault 1
Aug 16 21:19:20 raspberrypi node[574]: fault 1
Aug 16 21:19:20 raspberrypi node[574]: fault 1
Aug 16 21:19:20 raspberrypi node[574]: fault 1
Aug 16 21:19:20 raspberrypi node[574]: fault 1
Aug 16 21:19:20 raspberrypi node[574]: fault 1
Aug 16 21:19:20 raspberrypi node[574]: fault 0
Aug 16 21:19:20 raspberrypi node[574]: fault 1
Aug 16 21:19:20 raspberrypi node[574]: fault 1
Aug 16 21:19:20 raspberrypi node[574]: fault 1
Aug 16 21:19:20 raspberrypi node[574]: fault 1
Aug 16 21:19:20 raspberrypi node[574]: fault 1
Aug 16 21:19:20 raspberrypi node[574]: fault 1
Aug 16 21:19:20 raspberrypi node[574]: fault 1
Aug 16 21:19:20 raspberrypi node[574]: fault 0
Aug 16 21:19:20 raspberrypi node[574]: fault 1
Aug 16 21:19:20 raspberrypi node[574]: fault 1
Aug 16 21:19:20 raspberrypi node[574]: fault 1
Aug 16 21:19:20 raspberrypi node[574]: fault 1
Aug 16 21:19:20 raspberrypi node[574]: fault 1
Aug 16 21:19:20 raspberrypi node[574]: fault 0
Aug 16 21:19:20 raspberrypi node[574]: fault 1
Aug 16 21:19:20 raspberrypi node[574]: fault 1
Aug 16 21:19:20 raspberrypi node[574]: fault 1
Aug 16 21:19:20 raspberrypi node[574]: fault 0
Aug 16 21:19:20 raspberrypi node[574]: fault 0
Aug 16 21:19:20 raspberrypi node[574]: fault 0
Aug 16 21:19:20 raspberrypi node[574]: fault 0
Aug 16 21:19:20 raspberrypi node[574]: fault 1
Aug 16 21:19:20 raspberrypi node[574]: fault 0
Aug 16 21:19:20 raspberrypi node[574]: fault 0
Aug 16 21:19:20 raspberrypi node[574]: fault 0
Aug 16 21:19:21 raspberrypi node[574]: master found
on the legacy branch:
Aug 16 21:10:03 raspberrypi node[572]: 1 15
Aug 16 21:10:03 raspberrypi node[572]: Error 1 91
Aug 16 21:10:04 raspberrypi node[572]: network status up
Aug 16 21:10:04 raspberrypi node[572]: fault 1
Aug 16 21:10:04 raspberrypi node[572]: fault 0
.... // it logs quite a lot of fault 0 or 1 here
Aug 16 21:10:04 raspberrypi node[572]: fault 0
Aug 16 21:10:04 raspberrypi node[572]: fault 0
Aug 16 21:10:04 raspberrypi node[572]: fault 0
Aug 16 21:10:04 raspberrypi node[572]: fault 1
Aug 16 21:10:04 raspberrypi node[572]: fault 1
Aug 16 21:10:04 raspberrypi node[572]: status lost
Aug 16 21:10:04 raspberrypi node[572]: network status up
Aug 16 21:10:04 raspberrypi node[572]: fault 0
Aug 16 21:10:06 raspberrypi node[572]: master found
both branches, when running test.ts will output MOST data:
{
eventType: 'newMessage',
type: 2,
sourceAddrHigh: 1,
sourceAddrLow: 0,
data: {
type: 'Buffer',
data: [
202, 0, 36, 124, 4, 0, 2,
211, 70, 0, 0, 0, 0, 0,
0, 0, 84
]
}
}
{
eventType: 'newMessage',
type: 1,
sourceAddrHigh: 1,
sourceAddrLow: 0,
data: {
type: 'Buffer',
data: [
1, 1, 0, 1, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0,
0, 0, 0
]
}
}
{
eventType: 'newMessage',
type: 2,
sourceAddrHigh: 1,
sourceAddrLow: 0,
data: {
type: 'Buffer',
data: [
202, 0, 36, 124, 4, 0, 2,
211, 70, 0, 0, 0, 0, 0,
0, 0, 85
]
}
}
The cars MOST ring is healthy - when it isn’t the nav system always shows an error and there is no audio - audio plays, and although my original CD changer is disconnected, I have an multimedia box that emulates one can mirror my phone, stream audio and other goodies - it works without issues.
I am actually connecting this in the trunk, where the CD changer is - i have a MOST termination loop there and i remove it and connect the pi for testing - it also has 12 i can use later to permanently power it.
But you can also connect to it if you remove the nav unit - quite involved.
Easiest way is - on the drivers side - in the foot well if you look on top - there is a MOST port with a terminator, that is used by BMW to write software update to the cars modules quickly, vs using k-dcan.
Which btw - can probably be reverse engineered and applied with this board from the Pi
Are you getting some faults before locking in on a signal too? is this expected? - it doesn’t affect anything, just wondering how it is with the jag and land rover.
The legacy branch is slower actually and takes a few second to lock in - the new mode is nearly instant and all faults are logged within the span of 1 second.