-
-
Notifications
You must be signed in to change notification settings - Fork 354
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
blazer_soi: blazer driver, serial port over tcp/ip #116
base: master
Are you sure you want to change the base?
Conversation
Thanks for submitting this - it seems useful. However, the blazer driver will eventually be replaced by nutdrv_qx. Rather than add this code to individual drivers, what if it went into the core driver code? There was an old patch which got misplaced during our move to Git. It allows the "port=" option in ups.conf to take a hostname:port pair to specify a TCP connection. I haven't compared the details of the code, but would this work with your device? https://github.com/networkupstools/nut/tree/netport-on-2.7.1 Either way, we would need to provide a bit more documentation for end users. |
Hi Charles, If the community thinks that would be useful, and we find out the best On 04/04/2014 14:39, Charles Lepple wrote:
|
Would it make sense to simply bypass ioctls/terminal-related actions? |
@zykh sorry I haven't had more time to comment on this, but the new netport branch looks good. We may want to have a few upsdebugx() calls during the netport setup, in case someone has a typo in their dev node name, and isn't expecting the network calls. Also, did you happen to see why belkinunv was not using the serial.c shared code? |
Added a debug line and removed fatal* calls. belkinunv - there are 2 sets of functions:
@alezz, can you test blazer_ser/nutdrv_qx from the following branch? |
Hi @zykh . Sorry for my big delay in answering. Unfortunately due to lots of work to do I was not able to test it out and I'm not sure when I will have some minute to do that. |
Hi all, given that this adds a standalone driver, there seems to at least be no code-wise conflict with this PR despite its age. But the points raised in review earlier about possibly sharing and unifying code with other NUT parts, and parsing "port" commonly as an "IP:PortNum" value in particular, make sense. So I need some team consensus: is this good to merge "as is" to add a new driver and refine later when someone is annoyed (e.g. also regarding new Also seems I can not update the source branch of this PR, to merge the current NUT master into it and have Travis CI take a bite. |
@jimklimov As you mentioned, the original PR adds a standalone driver, but it is resurrecting the blazer_* code that we were trying not to maintain in parallel with @zykh's nutdrv_qx codebase, and it does not have a man page to describe the differences between it and the original blazer_ser driver. I think if someone is truly interested in supporting serial-to-TCP adapters, they need to be willing to start from more recent code (such as @zykh's netport branch), and then test against actual hardware. I have neither the time nor the hardware to do it myself, so maybe take my comments with a grain of salt. |
New jenkins lib (only agent label)
This is a version of blazer that allows the use of a ethernet to serial device, also called YPort.
Such a device allows a serial port to be connected to an existing ethernet network, and uses tcp to access the serial port. An example of this device is provided by Ethersex Project (http://www.ethersex.de); this driver extension has been tested with it.