Skip to content

K-Line Board Design 1.0 Beta#2

Open
spcrxj wants to merge 7 commits intoHerrRiebmann:masterfrom
spcrxj:master
Open

K-Line Board Design 1.0 Beta#2
spcrxj wants to merge 7 commits intoHerrRiebmann:masterfrom
spcrxj:master

Conversation

@spcrxj
Copy link

@spcrxj spcrxj commented Feb 3, 2020

Added K-Line Board Design 1.0 Beta

Added K-Line Board Design 1.0 Beta
@HerrRiebmann
Copy link
Owner

Hi, thank you for participating on the PCB design :)
I currently have no idea how to open those files...
Would you mind to add some images or a more common PCB format?

@spcrxj
Copy link
Author

spcrxj commented Feb 13, 2020

image

@spcrxj
Copy link
Author

spcrxj commented Feb 13, 2020

image

@spcrxj
Copy link
Author

spcrxj commented Feb 13, 2020

Hi, thank you for your time too :)
The pcb design is made by Kicad 5.1.5 which it can be download at
https://www.kicad-pcb.org/

Recently I am trying to make a board for my Ninja 300 project, this is why I design a pcb : )
I follow the schematic from your Github to draw the pcb, this is my first pcb drawing that's why I marked it as "beta" version. I am about to print it and I will improve the design and submit here during my project : )

@spcrxj
Copy link
Author

spcrxj commented Feb 13, 2020

Sorry this is my first time to use github , I am trying to add those images into this pull, thanks : )

@spcrxj
Copy link
Author

spcrxj commented Feb 13, 2020

Readme.md added.
Overview images added.

: )

@Heiner1967
Copy link

Hi, I have a similar but slightly different project and I am rather coding beginner.

I have a 1998 Porsche 996 converted into a full Electric car. That works so far, but I like to optimise now the Klima System. That one communicates via K-Line and KWP2000.

Many other engine related ECU's have been removed from the car because they became obsolete.

I hope with your code to recieve the Klima ECU PID and then some Infos in behind so that idealy I am able, to react acordingly. I have for exampel a manual electric heating, idealy it could be switched via K-Line if the Klimasystem demand heat and rather adjust the airflaps to get more engine heat ( which is not there). Same in regards to cold temperatures and the switch of the aircon, instead of the rather mechanicl switch of the belt connected aircon.

Ragrding the Code for the ECU Reader, am i right that you decided for the K-Line Pins to be on RX and TX so that USB Monitoring of the Nano would imidiatly show whatever is recieved?

I ask as I neither have a Bluetooth device nor need one.

Thanks for letting me know

@HerrRiebmann
Copy link
Owner

Hi, I have a similar but slightly different project and I am rather coding beginner.

[...]
Ragrding the Code for the ECU Reader, am i right that you decided for the K-Line Pins to be on RX and TX so that USB Monitoring of the Nano would imidiatly show whatever is recieved?

Hello Heiner,
sounds like a very ambitious project!
I´ve taken the hardware-serial (Nano´s RX & TX) rather then a software-serial, for two and a half reasons:

  1. It is more reliable because of it´s internal features, like a hardware buffer
  2. The software serial library is limited to stock baudrates
  3. Due to the need of the H-C06 Bluetooth module, I´d still need a second serial connection

The second problem could be overcome by modifying the stock library to enable 10417 baud.
By transferring the ECU data to my phone or any OBD2/ELM327 compatible device, I do need two serial connections. The Nano only got one, so I needed to solve that by a serial emulation with regular pins.

What I understand from your request is, that you need to find out whats happening between the climatic controlling unit and the removed main ECU?
So your goal would be to emulate the missing ECU, to force the clima to act like you want to?

I personally see two possible attempts:

  • Find enough documentation to blindcode the correct responses
  • Create a device to record the protocol between those devices

I reccomend to go for the last one. Take an Arduino Mega, which has the advance of two hardware serial ports. Connect the L9637D (K-Line to serial converter) to Serial2.
Then just put the signal through to a computer and identify the SID, PID and data.

@Heiner1967
Copy link

Hi, thanks for your reply.
I do have the wirering plan and see that the car has to K - Pins, one is connected to 3 devices the other to 16 I can consequentialy not detect anything like a MAIN Device and would expect all of them work somehow in parrallel, have a different Address and thats it. Hence it should be possible to just listen to the Devices which still exist.

In principle I would expect such ELM327 App, where I can select my car, but do not have a fitting dongle ( as it is K-Lead and not CAN Bus, that the ECU's have fixed adresses and most parameter shall be readable.

Am i right that such programm like torque light, shall connect to the HC-06 and request the initialisation to happen, and then would scan for the PID's, once that has happened, I should get as well parameter and value from insight of each PID.

Thats what is needed and with it I can take actions, like stoping the electrical heating because the inside Temp is ok already, The onboard Aircon would just change the flaps to get more fresh air, and reduce the fan, which is ok, but less important then stopping the electric heating......

What I do not get however is why on both Serial Ports you connect TX with TX and RX with RX instead of TX to Rx and RX to TX which in my understanding would be correct....

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants