Comments (2)
That should be fine - the default constructor doesn't even bind() as client_ip_address is None. And even when you do specify a source IP address to choose the correct NIC we pass in 0 for the port to bind() which should tell the OS to choose any available source port in the ephemeral range. For UDP we use SO_REUSEADDR which may cause what you're seeing though you can just re-use the original client for things like discovery - you only need a new client for handling the TCP state.
from python-doipclient.
I ended up resolving my issue by making a custom connector class for udsoncan where I could instantiate one connector for each ECU I wanted to communicate with and had the connector basically modify the specific_send() function to send that ECU's logical address. Then each connector used the same doipclient instance to communicate with the ECU through the gateway.
Not entirely certain what you are describing, but to describe the issue I had in more detail each instance of doipclient opened a new socket connection to the vehicle's gateway (which happens regardless of whether bind() is called). The gateway at least on the Polestar 2 would stop accepting TCP comms over the first socket after a second socket was connected.
I'm relatively noobish with networking stuff still, but my solution worked fine so I think I'll go ahead and close this now.
from python-doipclient.
Related Issues (20)
- request_vehicle_identification HOT 8
- help for using python-uds HOT 2
- help me about DID scanning HOT 2
- Gateway Configuration HOT 4
- help me about the DIDpayload HOT 6
- help: network management HOT 2
- help: send doip packet only on UDP HOT 1
- help: [OSError] : Diagnostic request rejected with negative acknowledge code: 3 HOT 2
- How to customize the connection timeout? HOT 1
- Allow source_interface selection when using get_entity and await_vehicle_announcement HOT 2
- ConnectionRefusedError HOT 1
- Error when using encrypted communication with preconfigured SSL context HOT 2
- import SomeLib.SomeCar.SomeModel as MyCar Error HOT 1
- [WinError 10061] when creating a DoipClient with client_ip_address != None HOT 1
- question about doipclient documentation HOT 1
- how to find more than 1 ECU at the same time by classmethod get_entity ?
- How to choose network interface for DoIp client HOT 2
- The A_PROCESSING_TIME in constants.py is not effective when using a TCP connection? HOT 2
- DoIPClient.get_entity() with ipv6 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from python-doipclient.