-
-
Notifications
You must be signed in to change notification settings - Fork 82
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
Ethernet Support for HDX #240
Comments
I am facing a similar issue and we are looking into implementing communication via Ethernet for an OceanHDX spectrometer. I am currently looking into how much effort it would be to do this through the @lovelesh-mis, have you started with the implementation yet? |
I was able to get it working to some using Ethernet with static IP. I used @Dargaud's C Library for OceanHDX for reference. I designed my commands exactly as per his library. Socket library in windows and linux is platform agnostic and very reliable. Also, there is no driver issues as compared to USB. Wth my current setup, I can use Oceanview and my python code simultaneously. I compared pyseabreeze commands to the C library mentioned above and they are exactly the same. So, I think one need to develop a mechanism to send the commands through an IP socket. I didnt have much idea about the pyseabreeze backend, so I went with standalone approach. |
Oh, thanks for the hint with Dargaud's library! That looks promising :) Do you know whether the library supports buffered readout? That is a feature we would particularly like to use in the future, once all basic functionality is there. I have started to implement IPv4 socket communication into |
Hello everyone, I wasn't aware of that library, we should link to it in the README for reference. If someone could test if the USB implementation in dargauds library is working reliably on windows, we might be able to find the issue with pyusb that causes issues for seabreeze. If there's interest in developing a ethernet backend for pyseabreeze, I can help with some guidance on how it would fit into the current module design. python-seabreeze/src/seabreeze/pyseabreeze/types.py Lines 51 to 131 in f4365c6
Also, that being said, it's probably easier to start with a minimal working example, and then take that and squeeze it into the correct structure for integration into python-seabreeze. Cheers, |
Hej Andreas! Thanks for the pointer -- I have made proof-of-concept implementation and would really appreciate your comments on that. It is far from done, but I would like to get your feedback on whether that approach is compatible with the structure of python-seabreeze. Thanks! :) |
Thank you for adding the support but I haven't been able to connect to spectrometer using the code snippet given in readme. I also used the proof of concept by @hperrey in #234
The spectrometer works fine using the GUI via the ethernet. I have assigned static ip address.
|
spectrometer and system information
I am facing the same issue of USB timeout as in #133. I have tested with Flame-T and everything works fine but I get a timeout error with HDX. I am wondering if there is a mechanism to connect to HDX using Ethernet. pyseabreeze has
add_ipv4_device_location
function but is not implemented.Can you provide how to set started with this implementation? I feel we can bypass the pyusb drivers issue in Linux by implementing ethernet based drivers.
The text was updated successfully, but these errors were encountered: