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:
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