Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Configure issue : stmin #71

Closed
Kallappambk opened this issue Dec 18, 2020 · 2 comments
Closed

Configure issue : stmin #71

Kallappambk opened this issue Dec 18, 2020 · 2 comments

Comments

@Kallappambk
Copy link

hello,
I am trying to configure the parameter stmin to 1miliseconds for my connection. but getting the following error.

connection :
my_connection = IsoTPSocketConnection('vcan0', rxid=0x74F, txid=0x74E,stmin =1000)

Error :
Could not import vxlapi: module 'ctypes' has no attribute 'windll'
Let me know whether I am doing it correctly or is there any way to configure it.
so kindly help here, I am new to these things.
thanks in advance.

@pylessard
Copy link
Owner

pylessard commented Dec 29, 2020

Hi, Sorry for the delay in the response.
Where did you see that you can pass a parameter called "stmin" to the Connection object? Successive arguments are passed to the socket bind method which expect an address only. If you want to configure the stmin parameter, you need to use the socket.set_fc_opts method which needs to be set before binding the address.

In your case, you will need to make your socket first with a istop.socket object, then set stmin and finally give the socket to the connection object.

Regards

@pylessard
Copy link
Owner

Can I close this issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants