Hello.
I'm trying to configure the LIN I/O slave UJA1023.
Following the instructions of the datasheet, I send this LIN-Message to the slave:
SB SF 3C 60 06 B1 11 00 00 00 04 D2 // Assign frameID, default NAD used and ID(PxReq) = 04,ID(PxResp) = 05
I would expect to receive to following answer (as described in the datasheet):
SB SF 7D 60 01 F1 FF FF FF FF FF AC // Positive response
But I get no response from the slave.
I've also tried other messages. My NAD is 0x60 (HEX) -> C1, C2, C3 to GND. The LIN-Bus is ok (Power, no failure). I can send valid frames and monitor them with a "LIN-Sniffer". I've tried three different UJA's. No success.
Does anyone have an idea, where the problem could be? Maybe I do something wrong?
Thank you very much for any hint/answer!
Best regards
M. Bohle
Hi Michael,
So the master is sending a frame to assign an ID, i.e.
SB SF 3C 60 06 B1 11 00 00 00 04 D2 // Assign frameID, default NAD used and ID(PxReq) = 04,ID(PxResp) = 05
Then master sends a LIN header, SB SF 7D, and waiting for slave response.
No data (expected 60 01 F1 FF FF FF FF FF AC) is received.
Could you please share a scope picture of LIN bus signal, to see the real data on the bus? Also analyzer data could be fine.
What is the state of INH pin? Is this still high? Or goes to High-z which indicate low power mode?
BR, Petr
PetrS Perhaps you can help; I am also trying to work through the data sheet example for the UJA1023; I am seeing responses, but the IO pins do not seem to be changing state at all.
I have a test script that is sending the following frame data over LIN to the UJA1023 from my master; it is the only slave on the bus:
Sending Assign frameID, default NAD used and ID(PxReq) = 04,ID(PxResp) = 05: SB SF 3C 60 06 B1 11 00 00 00 04 D2 RET Data positive response: 55 7D 60 01 F1 FF FF FF FF FF AC Sending Datadump1, 8 x LSE: SB SF 3C 60 06 B4 00 00 FF 00 00 E4 RET Data config: 55 7D 60 06 F4 00 00 FF 00 00 A4 Sending Datadump2, no capture and threshold select (optional) SB SF 3C 60 06 B4 40 00 00 00 00 A4: RET Data config 2: 55 7D 60 06 F4 40 00 00 00 00 64 Sending Datadump3, LHvalue=0x55, default PWM = 0x10 (optional) SB SF 3C 60 04 B4 80 55 10 FF FF 01: RET Data config 3: 55 7D 60 04 F4 80 55 10 FF FF C0 Sending Read by identifier request (optional) SB SF 3C 60 06 B2 00 11 00 00 00 D5: RET Data id request positive response: 55 7D 60 06 F2 11 00 00 00 04 91 Sending P0 on: SB SF C4 01 80 7E Sending P1 on: SB SF C4 02 80 7D Sending P2 on: SB SF C4 04 80 7B Sending P3 on: SB SF C4 08 80 77 Sending P4 on: SB SF C4 10 80 6F Sending P5 on: SB SF C4 20 80 5F Sending P6 on: SB SF C4 40 80 3F Sending P7 on: SB SF C4 80 80 FE
Up until the Read ID command, the responses all seem to match the ones on the data sheet. But when I send the PxReq frames, I don't see any changes on the P0-P7 (they always just measure 0v, instead of cascading to +Vio like I would expect). Any ideas?
Thanks Michael. I tried HSE as well as push/pull and still got 0v. *However* I learned that I was operating the UJA1023 out of spec (V+ of 4.8V DC). Once I moved to a higher voltage power supply the outputs started working properly as expected.
Hi Petr,
thanks for your response.
I’ve solved the „problem“ yesterday. My interpretation of the LIN-Bus specification was wrong. I thought the slave would send a whole message (incl. header) after a request by the master.
Now I’m sending a header (as you have written) after the request and get the answer I’ve expected from the slave.
Again, thanks for your effort.
Best regards
Michael
Von: PetrS
Gesendet: Dienstag, 28. März 2017 13:29
An: Michael Bohle <michael.bohle@rtb-elektronik.de>
Betreff: Re: - Re: UJA1023 Configuration
<https://community.freescale.com/resources/statics/1000/35400-NXP-Community-Email-banner-600x75.jpg> NXP Community
Re: UJA1023 Configuration
reply from Petr Stancik <https://community.nxp.com/people/PetrS?et=watches.email.thread> in Other NXP Solutions - View the full discussion <https://community.nxp.com/message/891533?commentID=891533&et=watches.email.thread#comment-891533>