Macchina

Programs / Tools / Scripts
User avatar
Gampy
Posts: 2331
Joined: Sat Dec 15, 2018 7:38 am

Macchina

Post by Gampy »

These folks have a nice OBD-II breakout ... And a few other goodies!

Thought I would point them out!

https://www.macchina.cc/
Intelligence is in the details!

It is easier not to learn bad habits, then it is to break them!

If I was here to win a popularity contest, their would be no point, so I wouldn't be here!
MudDuck514
Posts: 397
Joined: Wed Jul 05, 2017 8:30 am
cars: 2001 Pontiac Grand AM SE
LD9 2.4l I4, 4T40E
2005 Chevrolet Venture
LA1 3400 V6, 4T65E
Location: North TX, USA

Re: Macchina

Post by MudDuck514 »

Hi all,

Gampy, I have been watching the forums there for a couple of years and so far no one has managed to write a decent firmware for the J1850 VPW protocol.
LOTS of development on CAN BUS!!!

Mike
User avatar
Gampy
Posts: 2331
Joined: Sat Dec 15, 2018 7:38 am

Re: Macchina

Post by Gampy »

No personal status in yesteryear development ...
Intelligence is in the details!

It is easier not to learn bad habits, then it is to break them!

If I was here to win a popularity contest, their would be no point, so I wouldn't be here!
User avatar
NSFW
Posts: 679
Joined: Fri Feb 02, 2018 3:13 pm

Re: Macchina

Post by NSFW »

I was really excited about the Maccina M2 when I first heard about it.

It's a shame that there's no official J1850 VPW support for it yet. RedheadedRod was working on it, but apparently life got in the way. I can relate. :)

There's a J1850-VPW project on GitHub, and it might be possible to port that to the M2:
https://github.com/matafonoff/J1850-VPW ... er-Library

I tried to get that working with an Arduino a few months ago, based on the schematic posted there, but I couldn't get it to read or write. In fact I had to disconnect the write circuit to get a bunch of noise off of the bus so that other devices on the bus could communicate again. I've been over the schematic a dozen times and I still think I have it right... but still no luck. At some point I'll get off my butt and try to get it to at least read.
Please don't PM me with technical questions - start a thread instead, and send me a link to it. That way I can answer in public, and help other people who have the same question. Thanks!
MudDuck514
Posts: 397
Joined: Wed Jul 05, 2017 8:30 am
cars: 2001 Pontiac Grand AM SE
LD9 2.4l I4, 4T40E
2005 Chevrolet Venture
LA1 3400 V6, 4T65E
Location: North TX, USA

Re: Macchina

Post by MudDuck514 »

NSFW wrote:I was really excited about the Maccina M2 when I first heard about it.

It's a shame that there's no official J1850 VPW support for it yet. RedheadedRod was working on it, but apparently life got in the way. I can relate. :)

There's a J1850-VPW project on GitHub, and it might be possible to port that to the M2:
https://github.com/matafonoff/J1850-VPW ... er-Library

I tried to get that working with an Arduino a few months ago, based on the schematic posted there, but I couldn't get it to read or write. In fact I had to disconnect the write circuit to get a bunch of noise off of the bus so that other devices on the bus could communicate again. I've been over the schematic a dozen times and I still think I have it right... but still no luck. At some point I'll get off my butt and try to get it to at least read.
What Arduino were you using? The M2 uses the ARM chip, but I have NO idea what the linked code was written for, or if it even matters.

Mike
User avatar
NSFW
Posts: 679
Joined: Fri Feb 02, 2018 3:13 pm

Re: Macchina

Post by NSFW »

I used an Uno with the GitHub project.

The M2 is compatible with the Arduino API and IDE so I'm hoping that porting the Uno code to it won't take much more than pin changes and timing changes. I mean, after the Uno code works on an Uno, of course. :)

https://docs.macchina.cc/m2-docs/arduino
Please don't PM me with technical questions - start a thread instead, and send me a link to it. That way I can answer in public, and help other people who have the same question. Thanks!
MudDuck514
Posts: 397
Joined: Wed Jul 05, 2017 8:30 am
cars: 2001 Pontiac Grand AM SE
LD9 2.4l I4, 4T40E
2005 Chevrolet Venture
LA1 3400 V6, 4T65E
Location: North TX, USA

Re: Macchina

Post by MudDuck514 »

Hi all,

NSFW, I believe the M2 uses the same processor as the Arduino DUE ( Atmel SAM3X8E ARM Cortex-M3 CPU.)
I do NOT know much about these things as I am not a developer or programmer. However, if the IDE can take the differences in to account then I suppose you should be able to get the code to run on the UNO. I would be most interested in your results as I have an UNO sitting in a box here that I purchased several years ago.

Mike
User avatar
NSFW
Posts: 679
Joined: Fri Feb 02, 2018 3:13 pm

Re: Macchina

Post by NSFW »

Yes, I think you're right. The Arduino IDE and libraries make is pretty easy run the same code on different CPUs, so switching should not be hard. For things where timing is critical, it might be necessary to make some small changes, but the vast majority of the code should just work on any Arduino-compatible board. So I think there's hope.
Please don't PM me with technical questions - start a thread instead, and send me a link to it. That way I can answer in public, and help other people who have the same question. Thanks!
aaronc7
Posts: 53
Joined: Mon Jun 15, 2020 12:35 pm
cars: 2003 C5Z
2017 Audi S3

Re: Macchina

Post by aaronc7 »

I have a Macchina P1 (small linux computer) and A0 (esp32).

Originally used the P1 as an alternative to a raspberry pi / PiCAN, for a small, all in one solution with a better can controller. It's pretty neat really, the processor on the pocket beagle is a little slow, but it works. Good option for those who like linux or something like python over arduino.

I didn't write the firmware, but the A0 has been super awesome for a VW/Audi open source project I've been apart of. Flashing, high speed datalogging over BLE with a phone app. The latest firmware also works with windows via BLE or USB serial protocol.

https://github.com/bri3d/VW_Flash (what started it all, works with SocketCAN, J2534 (openport), A0 USB/BLE)

https://github.com/Switchleg1/esp32-isotp-ble-bridge (A0/esp32 firmware)

https://github.com/Switchleg1/SimosTools (android app mentioned above compatible with A0)

I'm not really a coder, but the products have been very good and highly recommended.
User avatar
antus
Site Admin
Posts: 8237
Joined: Sat Feb 28, 2009 8:34 pm
cars: TX Gemini 2L Twincam
TX Gemini SR20 18psi
Datsun 1200 Ute
Subaru Blitzen '06 EZ30 4th gen, 3.0R Spec B
Contact:

Re: Macchina

Post by antus »

the allpro firmware has an open source j1850 implementation too. its getting harder to find but its still out there. the hardware level stuff needs to change but thats always the case. allpro has 4x speed as well.
Have you read the FAQ? For lots of information and links to significant threads see here: http://pcmhacking.net/forums/viewtopic.php?f=7&t=1396
Post Reply