juergenH87 / python-can-j1939

The package provides SAE J1939 support for Python developers
MIT License
90 stars 51 forks source link

Priority not included in message #74

Closed bwelte34375 closed 3 months ago

bwelte34375 commented 8 months ago

Hi,

I'm trying to send a CAN message with the header '0x08FF3DC8', where the priority is 0x08, the PGN is 0xFF3D, and the source address is 0xC8.

To do this, I'm using the following line of code:

    `ca.send_pgn(data_page=1, pdu_format=0xFF, pdu_specific=0x3D, priority=0x08, data=FF3D_data)`

where ca is the controller application object. But when I probe the can bus to view the message being sent, the message's PGN shows up as '0x01FF3DC8'. Is it not possible to specify a message's priority or am I doing something wrong?

grant-allan-ctct commented 8 months ago

Valid priority values are 0 to 7. A quick Google leads me to this location but there will be others.

grant-allan-ctct commented 6 months ago

@bwelte34375 are you still having trouble with this, or OK now?

grant-allan-ctct commented 3 months ago

@bwelte34375 would you be OK with this issue being closed?

bwelte34375 commented 3 months ago

Yes.

From: gRant @.> Sent: Monday, June 10, 2024 2:18 AM To: juergenH87/python-can-j1939 @.> Cc: Ben Welte @.>; Mention @.> Subject: Re: [juergenH87/python-can-j1939] Priority not included in message (Issue #74)

@bwelte34375 would you be OK with this issue being closed? — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you were mentioned. Message ID: juergenH87/python-can-j1939/issues/74/2157520869@ github. com

@bwelte34375https://urldefense.com/v3/__https:/github.com/bwelte34375__;!!ICUevlz5aoA!tX7HTjtVJ1dzcd5jDclwGhME7m2ZWfCV2N1CrgNZGL6oeTElCNNcRS9R1zT_I73V7uW-_k4SzKj6ABSHcACT75U$ would you be OK with this issue being closed?

— Reply to this email directly, view it on GitHubhttps://urldefense.com/v3/__https:/github.com/juergenH87/python-can-j1939/issues/74*issuecomment-2157520869__;Iw!!ICUevlz5aoA!tX7HTjtVJ1dzcd5jDclwGhME7m2ZWfCV2N1CrgNZGL6oeTElCNNcRS9R1zT_I73V7uW-_k4SzKj6ABSHofGeexk$, or unsubscribehttps://urldefense.com/v3/__https:/github.com/notifications/unsubscribe-auth/BARRUZZFPRILC4R2PBINAHTZGVHKHAVCNFSM6AAAAABJBWQQGSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNJXGUZDAOBWHE__;!!ICUevlz5aoA!tX7HTjtVJ1dzcd5jDclwGhME7m2ZWfCV2N1CrgNZGL6oeTElCNNcRS9R1zT_I73V7uW-_k4SzKj6ABSHlTJnd0o$. You are receiving this because you were mentioned.Message ID: @.***>