Closed keelung-yang closed 5 years ago
It's a bug for single frame message. According to 'ISO 15765-2:2011(E) 9.4.2.1 CAN frame data padding':
If this solution is used, the DLC is always set to 8, even if the N_PDU to be transmitted is shorter than 8 bytes. The sender has to pad any unused bytes in the frame. In particular, this can be the case for an SF, FC frame or the last CF of a segmented message
I tested iso15765_example.py, changed number_of_bytes to 4 and 9, the output:
@keelung-yang Sorry I missed all your issue reports, seems like my email notifications aren't working like they should anymore...
I have a lot on my list currently, hopefully sometime in January I can check everything off my list.
I'm encountering this issue as well. Thanks for the update @drebbe-intrepid
My device under test handles non-padded frames for some messages (tester present, read data by ID) but not others (security access)
@syntroniks Can you provide more details? icsneo40.dll version, python version, what intrepid hardware you are using, and OS version would be greatly appreciated.
Windows
1709 Build 16299.611
Python:
python
Python 2.7.15 (v2.7.15:ca079a3ea3, Apr 30 2018, 16:30:26) [MSC v.1500 64 bit (AMD64)] on win32
icsneo40.dll (wow, 17MB!):
File Version: 3.7.1.87
Hardware:
ValueCAN 3
I'm willing to test, as always :)
@syntroniks Thank you for the information. I'll let you know, if I find anything. If you are in possession of any other devices like a FIRE2, testing on those would be appreciated.
Yes, I've got one of your higher-end interfaces. I'll give that a shot first thing in January and report back.
On Wed, Dec 19, 2018 at 2:50 PM David Rebbe notifications@github.com wrote:
@syntroniks https://github.com/syntroniks Thank you for the information. I'll let you know, if I find anything. If you are in possession of any other devices like a FIRE2, testing on those would be appreciated.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/intrepidcs/python_ics/issues/28#issuecomment-448739072, or mute the thread https://github.com/notifications/unsubscribe-auth/AFNgES8-_SjEz6uf4XTZf38KEdUoPRvUks5u6qaJgaJpZM4XzPq7 .
@syntroniks Please update to at least 3.8.2.111. This should hopefully fix your issue.
@keelung-yang It looks like you are using the same device and neoVI Server. This shouldn't work correctly with the example, can you please provide full source to your modifications?
closing this out due to lack of activity. Please re-open if needed.
Thanks for updating David, I don't have a license current enough to upgrade to that version of Vehicle Spy. I'll try once we renew and I suspect everything will work as intended.
Again, thanks for your investigation and assistance.
We were able to repeat this with python 2.7 with the latest version of VSpy 3.9.1.27 and DLLs. Can try on a new ValueCAN4 if that would help. Just set the demo script to 2.
Note that the padding does fill out in the Flow Control Frame.
Opening Device ValueCAN3 135678 (Open Client handles: 0)... Opened Device ValueCAN3 135678. Opening Device ValueCAN3 133157 (Open Client handles: 0)... Opened Device ValueCAN3 133157. Setting up iso15765 message on ValueCAN3 133157... Setup iso15765 message on ValueCAN3 133157. Transmitting iso15765 message on ValueCAN3 135678... Transmitted iso15765 message on ValueCAN3 135678. Received 1 messages with 0 errors. Message #1 ArbID: 0x7e0L Data: ['0x2', '0x0', '0x1']
Name: python-ics Version: 4.3 Summary: Library for interfacing with Intrepid devices in Python Home-page: https://github.com/intrepidcs/python_ics/
Here is my code which modified from iso15765_example.py
`@dataclass class ECU: name: str txid: int rxid: int
`
` def main(args): logfmt = '%(asctime)s %(message)s' logging.basicConfig(level=args.logLevel, format=logfmt)