htool / RaymarineAPtoFakeNavicoAutoPilot

Faking an AC12 autopilot to unlock autopilot panel/functionality on B&G Triton2 and Vulcan/Zeus
25 stars 4 forks source link

Help with necessary PNGs for Autopilot on Vulcan #5

Open BerndCirotzki opened 2 years ago

BerndCirotzki commented 2 years ago

on my Vulcan Plotter, the Autopilot Dislap not opens. What are the necessary PNS from AC12 to start it. can you help ?

htool commented 2 years ago

Can you tell more about what you did so far?

BerndCirotzki commented 2 years ago

Oh that was fast , thank you very much, OK, Im going to build the same as You did but using an ESP32 with the NMEA2000 library from "timo ttlappalainen". I thing you know it. I yet send the 8 Part 130822 , 65341, 65340, 65302, 130860, 130850, 65303, 130847,127237 . Everything with "Standby" . But the is no effect on my new Vulcan 9 Plotter. The Plotter is at home now, not on Bord, and because of the Roof of my house sometimes without GPS Data. But Ithing this dosn't matter. I Have not yet impemeted The "commision replay". 138045. Do you have an Idee ?!? The Autopilot Window on the Vulcan does not open. :-(

I would be thankful for Help Bernd

htool commented 2 years ago

The source id should match as well. 0 in this case. Do you see the device show up in the device list?

BerndCirotzki commented 2 years ago

Thank you very much .... that was ist not. It missed de PNG 65305. This opens the Window on the Plotter.

jiauka commented 1 year ago

Hi Bernd:

Did you manage to make it work with an ESP32? If so, could you share it?

Thanks a lot jiauka

Leijoma commented 8 months ago

@BerndCirotzki Did you get this to work? I am working on the same thing and if you have some insights to share that would be great.

Leijoma commented 8 months ago

Hi Bernd:

Did you manage to make it work with an ESP32? If so, could you share it?

Thanks a lot jiauka

@jiauka Hi, Did you get this to work? Maybe we could look at it together.

KristianJerpetjon commented 7 months ago

I am trying to emulate an AC12/42 with ESP32 using only the BT-1 / WR-10 controller and a ORCA interface This is to bridge to NKE bus which i have already decoded. The problem i have is that the BT-1 is sending PGN130850 with destination 0xFE . Something tells me the BT-1 either has not detected the AC12 /42 or it needs a extra controller in the system to work. I am not seeing any 65305 Requests 11 3 etc.. @jiauka and @BerndCirotzki think we are all looking for the same. do you have any repo's up ?

BerndCirotzki commented 7 months ago

It is realy a long time ago that I did it. But I think you must make a CommissionReply with PGN 130845 from the BT-1. ... parse the PGN 130845 and also answer with the PGN 130845. How you do it ... you can see in htool's code here. ... tell the BT-1 that your device is an "Autopilot". see here if it helps: https://raw.githubusercontent.com/canboat/canboat/master/analyzer/pgn.h

KristianJerpetjon commented 7 months ago

I dont see any commission requests from the BT-1 only from the is20 displays i currently have connected

KristianJerpetjon commented 7 months ago

But thanks i will look into it

jiauka commented 7 months ago

I am trying to emulate an AC12/42 with ESP32 using only the BT-1 / WR-10 controller and a ORCA interface This is to bridge to NKE bus which i have already decoded. The problem i have is that the BT-1 is sending PGN130850 with destination 0xFE . Something tells me the BT-1 either has not detected the AC12 /42 or it needs a extra controller in the system to work. I am not seeing any 65305 Requests 11 3 etc.. @jiauka and @BerndCirotzki think we are all looking for the same. do you have any repo's up ?

No, I didn't manage to make it work

I do have a b&g autopilot keyboard emu. With the EsP32.

Is it possible that you share the NKE interface?

KristianJerpetjon commented 7 months ago

@jiauka I need to refine the library etc more before i can release it and provide details on the electric interface. But essentially i have most of the sensors decoded and i can send commands to the AP

KristianJerpetjon commented 7 months ago

It is realy a long time ago that I did it. But I think you must make a CommissionReply with PGN 130845 from the BT-1. ... parse the PGN 130845 and also answer with the PGN 130845. How you do it ... you can see in htool's code here. ... tell the BT-1 that your device is an "Autopilot". see here if it helps: https://raw.githubusercontent.com/canboat/canboat/master/analyzer/pgn.h

I tried doing it with the htool AC but the BT-1 still didn't work.. but maybe i have to run the htool at a specific address for it to be recognized ?

KristianJerpetjon commented 7 months ago

Best 130845 decoding i have seen thus far https://github.com/htool/ESP32_Precision-9_compass/blob/main/ESP32_Precision-9_compass.ino#L798

Leijoma commented 7 months ago

I spent some time a month ago trying to emulate the AC12 on a ESP32 based on the RaymarineAPtoFakeNavicoAutoPilot https://github.com/htool/RaymarineAPtoFakeNavicoAutoPilot. I used my Vulcan and Triton to verify that it worked. I could establish communication between the units so that the vulcan and Triton recognized the AP, but had a hard time getting the mode switching to work. When i tried to just send the same pgn's as in the RaymarineAPtoFakeNavicoAutoPilot https://github.com/htool/RaymarineAPtoFakeNavicoAutoPilot it sort of worked, but when i tried to put together my own pgn content i could not make it work. When i tried to base the pgn content on the description in the Canboat documentation it just got worse and in the end i ran out of time.

I would still love to get the emulation to work so if we can do this together i would love to be able to help.

/Magnus

On Wed, Jan 31, 2024 at 11:08 PM Kristian Jerpetjøn < @.***> wrote:

Best 130845 decoding i have seen thus far https://github.com/htool/ESP32_Precision-9_compass/blob/main/ESP32_Precision-9_compass.ino#L798

— Reply to this email directly, view it on GitHub https://github.com/htool/RaymarineAPtoFakeNavicoAutoPilot/issues/5#issuecomment-1920060060, or unsubscribe https://github.com/notifications/unsubscribe-auth/AODDQGKPE7ACYAPKXQPWIS3YRK6HXAVCNFSM5NJRO4O2U5DIOJSWCZC7NNSXTN2JONZXKZKDN5WW2ZLOOQ5TCOJSGAYDMMBQGYYA . You are receiving this because you commented.Message ID: @.***>

KristianJerpetjon commented 7 months ago

Ok i will go to my boat and do some captures there if i can.. I think the essential problem is how does a controller detect an AP. So What i will try is to run the BT-1 only with my AP connected and see what PGN's pass by.

Orca has made an attempt but they simply listen to the 65305.
However this pgn should be issued by controllers to request status from the AP afaik. With the 3 and 11 for status request and mode request respectfully.

Maybe we should start a FakeSimradAp repo that uses https://github.com/ttlappalainen/NMEA2000 ? I think ttlappalinen has been looking into the same things.

Leijoma commented 6 months ago

For me both the Vulcan and the Triton detects the AP. I can unlock the AP display on the Vulcan, but it's changing mode and course that is a problem. The Triton also displays AP error in some cases.

Som good log files would probably be really valuable.

It would be good to document what is being sent by the controller when a button is pressed.

Den fre 2 feb. 2024 10:05Kristian Jerpetjøn @.***> skrev:

Ok i will go to my boat and do some captures there if i can.. I think the essential problem is how does a controller detect an AP. So What i will try is to run the BT-1 only with my AP connected and see what PGN's pass by.

Orca has made an attempt but they simply listen to the 65305. However this pgn should be issued by controllers to request status from the AP afaik. With the 3 and 11 for status request and mode request respectfully.

Maybe we should start a FakeSimradAp repo that uses https://github.com/ttlappalainen/NMEA2000 ? I think ttlappalinen has been looking into the same things.

— Reply to this email directly, view it on GitHub https://github.com/htool/RaymarineAPtoFakeNavicoAutoPilot/issues/5#issuecomment-1923371667, or unsubscribe https://github.com/notifications/unsubscribe-auth/AODDQGN6PSVCZ3JTGNEDVHTYRST6XAVCNFSM5NJRO4O2U5DIOJSWCZC7NNSXTN2JONZXKZKDN5WW2ZLOOQ5TCOJSGMZTOMJWGY3Q . You are receiving this because you commented.Message ID: @.***>

KristianJerpetjon commented 6 months ago

I plan on going to one of my boats to do some recordings hopefully next weekend. .. I might also bring my MFD back to see if it works better. I am a bit unsure if the BT-1 can work stand alone with AC12.. -Kristian

On Mon, 12 Feb 2024 at 15:38, Leijoma @.***> wrote:

For me both the Vulcan and the Triton detects the AP. I can unlock the AP display on the Vulcan, but it's changing mode and course that is a problem. The Triton also displays AP error in some cases.

Som good log files would probably be really valuable.

It would be good to document what is being sent by the controller when a button is pressed.

Den fre 2 feb. 2024 10:05Kristian Jerpetjøn @.***> skrev:

Ok i will go to my boat and do some captures there if i can.. I think the essential problem is how does a controller detect an AP. So What i will try is to run the BT-1 only with my AP connected and see what PGN's pass by.

Orca has made an attempt but they simply listen to the 65305. However this pgn should be issued by controllers to request status from the AP afaik. With the 3 and 11 for status request and mode request respectfully.

Maybe we should start a FakeSimradAp repo that uses https://github.com/ttlappalainen/NMEA2000 ? I think ttlappalinen has been looking into the same things.

— Reply to this email directly, view it on GitHub < https://github.com/htool/RaymarineAPtoFakeNavicoAutoPilot/issues/5#issuecomment-1923371667>,

or unsubscribe < https://github.com/notifications/unsubscribe-auth/AODDQGN6PSVCZ3JTGNEDVHTYRST6XAVCNFSM5NJRO4O2U5DIOJSWCZC7NNSXTN2JONZXKZKDN5WW2ZLOOQ5TCOJSGMZTOMJWGY3Q>

. You are receiving this because you commented.Message ID: @.***>

— Reply to this email directly, view it on GitHub https://github.com/htool/RaymarineAPtoFakeNavicoAutoPilot/issues/5#issuecomment-1938802197, or unsubscribe https://github.com/notifications/unsubscribe-auth/AKI53X5AIJDJRSM5YM33NH3YTISPZAVCNFSM5NJRO4O2U5DIOJSWCZC7NNSXTN2JONZXKZKDN5WW2ZLOOQ5TCOJTHA4DAMRRHE3Q . You are receiving this because you commented.Message ID: @.***>

-- Kristian Jerpetjøn +4792822774 Email: @.***

Alyavin commented 5 months ago

Hi all. Was anyone able to open the pilot panel on Lowrance using the Timo library for Esp32?

htool commented 3 months ago

There's also the commissioning part that needs to happen. I've only upgraded to SignalK v2 yesterday and I see it still works as is. But, I'll look into moving it:

  1. Into SignalK using the SimpleCan approach, to offload some of the packet handling.
  2. Look into splitting it out between the AP12 part and the st6001 part, so it can work as a 'backend' for multiple 'frontends'

That split should make it easier to see how to move emulation into ESP32.

Leijoma commented 3 months ago

I think it's a really good approach. The main challenge for everyone that wants to build an Autopilot or just replace their old will be to create the physical interface. If it is possible to create a "middleware" that can translate between different manufacturers protocols it would be really valuable.

Den mån 20 maj 2024 16:04Hans @.***> skrev:

There's also the commissioning part that needs to happen. I've only upgraded to SignalK v2 yesterday and I see it still works as is. But, I'll look into moving it:

  1. Into SignalK using the SimpleCan approach, to offload some of the packet handling.
  2. Look into splitting it out between the AP12 part and the st6001 part, so it can work as a 'backend' for multiple 'frontends'

That split should make it easier to see how to move emulation into ESP32.

— Reply to this email directly, view it on GitHub https://github.com/htool/RaymarineAPtoFakeNavicoAutoPilot/issues/5#issuecomment-2120530517, or unsubscribe https://github.com/notifications/unsubscribe-auth/AODDQGMNS6EJBVD2LFKSDHDZDH7GPAVCNFSM5NJRO4O2U5DIOJSWCZC7NNSXTN2JONZXKZKDN5WW2ZLOOQ5TEMJSGA2TGMBVGE3Q . You are receiving this because you commented.Message ID: @.***>

htool commented 3 months ago

The idea is that SignalK is the middleware and the v2 api can be the way commands can be sent/received.