Pages: [1]
Author Topic: Frame reception problem in Fiat CAN ID 11 bits, 50 kbaud with STN1100 chip  (Read 7220 times)
INMOCARS
Newbie
*

Karma: +0/-0
Offline Offline

Posts: 5



Hello everyone...
I am having problems receiving response frames with an Obdlink SX interface (STN1100 chip)
It's my own code in Delphi and I'm using a serial component (Lazserial from Lazarus IDE) to send and receive frames with AT commands. Same as how ELM327 is used.

If I do monitoring with arduino and canbus shield, the frames of both query and response are seen perfectly.

I have the Obdlink configured with the "ATSPC" protocol, which is the one that corresponds to the protocol that I am using USER2 CAN ID 11 bits, 50 kbaud.

I send:
 
Code:
  lazserial1.WriteData('85 02 10 81 00 00 00 00' + #13#10);
  SLEEP(varSLEEP1);
  listbox1.items.add(lazserial1.ReadData);
  listbox1.Refresh;
  lazserial1.WriteData('85 02 1A 95 00 00 00 00' + #13#10);
  SLEEP(varSLEEP1);
  listbox1.items.add(lazserial1.ReadData);
  listbox1.Refresh;
  lazserial1.WriteData('85 02 1A 94 00 00 00 00' + #13#10);
  SLEEP(varSLEEP1);
  listbox1.items.add(lazserial1.ReadData);
  listbox1.Refresh;
  lazserial1.WriteData('85 30 FF 00 00 00 00 00 ' + #13#10);
  SLEEP(varSLEEP1);
  listbox1.items.add(lazserial1.ReadData);
  listbox1.Refresh;
   
and I don't get any response via lazserial1.ReadData
in frontend console i only get "NO DATA>"
I already tried with different response times and several more configurations...

while at all times in the monitoring with arduino I get the complete frames:

1 - 7B0 85 02 10 81 00 00 00 00
2 - 7C3 F1 02 50 81 00 00 00 00
3 - 7B0 85 02 1A 95 00 00 00 00
4 - 7C3 F1 04 5A 95 01 08 00 00
5 - 7B0 85 02 1A 94 00 00 00 00
6 - 7C3 F1 10 0D 5A 94 30 34 30
7 - 7B0 85 30FF 00 00 00 00 00
8 - 7C3 F1 20 30 30 30 31 32 35
9 - 7C3 F1 21 31 31 00 00 00 00

It is as if the STN1100 or the serial component had some configuration that I am missing in order to receive the frames through the Lazserial serial component.

If there is someone who understands the subject and can give me a hand, I would appreciate it.

Thank you
Logged
H2Deetoo
Sr. Member
****

Karma: +26/-1
Offline Offline

Posts: 257



You need to set a filter so your cable will accept the desired CANID. check the protocol documentatuon of ELM327.

Rgs H2Deetoo
Logged
H2Deetoo
Sr. Member
****

Karma: +26/-1
Offline Offline

Posts: 257



By coincidence I ordered 2 cheap ELM Bluetooth adapters, and start to write some supporting code for it.

I might be able to help you further if you still need some more help.

(My main work is on VAG but I have a Fiat 500 2009 to play with as well.)


Regards,
Bonny
Logged
prj
Hero Member
*****

Karma: +1072/-480
Offline Offline

Posts: 6035



Are you sure it's 50k and not 500k?

The PTCan runs at 500k on these, but maybe you're trying to access something else.
Logged

PM's will not be answered, so don't even try.
Log your car properly - WinOLS database - Tools/patches
H2Deetoo
Sr. Member
****

Karma: +26/-1
Offline Offline

Posts: 257



The FIAT CAN-B does run on 50kbps but it uses pin 1+9 of the OBD connector.

Btw post the initialization code of your ELM compatible device.
Logged
H2Deetoo
Sr. Member
****

Karma: +26/-1
Offline Offline

Posts: 257



Also some of those 50kbps CAN busses are using the "fault tolerant" drivers, which are officially not compatible with the normal can drivers.
However if you remove the 120 ohm resistor you can communicate just fine.


Rgs H2Deetoo
Logged
woj
Hero Member
*****

Karma: +43/-3
Offline Offline

Posts: 500



The only ever actual problem I had with my Fiat and (Chinese) ELM327 was the said resistor, with it on the interface some things were just not working (not with my own software, not with MES). And if my memory serves me right, it was in the slow CAN mode, the fast one worked fine, but that was ages ago, so I perhaps remember it the other way round.

Otherwise, using a terminal program of some sort (PuTTY or something like this) is really much more comfortable in debugging this kind of thing. If it helps you, attached is the initialisation protocol MES used to use for fast CAN with 29bit IDs that I sniffed on some long time ago to enable my own ELM327 games.

(The question mark on the 10 03 request is a leftover from these old times, at the time I did not know what it was for).
« Last Edit: June 05, 2022, 01:16:43 PM by woj » Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by SMF 1.1.21 | SMF © 2015, Simple Machines Page created in 0.025 seconds with 17 queries. (Pretty URLs adds 0.001s, 0q)