ceene | is there a socat like program or library which is BSD-like licensed? | 08:50 |
---|---|---|
inz | Probably not one that would do all, but if there's some specific part of socat you need, then probably yes. | 08:56 |
ceene | yeah, I wouldn't need the whole functionality, just something more basic like opening files, tcp connections and maybe serial ports, without anything fancy at all | 08:58 |
ceene | truth is, my needs are pretty basic so I could really write it myself, but you know, if there's something already there, why would I write it from scratch? | 09:02 |
inz | netcat can do unix, udp and tcp sockets | 09:03 |
inz | (but not serial) | 09:03 |
inz | And you probably want the one from openbsd (unfortunately there is no portable version though) | 09:06 |
ceene | mmm I think I'm gonna need to write my own thing | 09:10 |
ceene | I've just realized I need more than read() and write() over those open descriptors | 09:10 |
ceene | I'd like this to also interface with SPI drivers and also some custom rs232-spi converter | 09:11 |
inz | Maybe you should write multiple things :) | 09:16 |
ceene | I don't know exactly what I should write | 09:17 |
KotCzarny | multitool | 09:17 |
inz | Reimplement everything! | 09:17 |
ceene | we're developing a new signal generator board based on an analog devices chip that is programmed by spi | 09:17 |
ceene | we are using it via a custom fpga board too, which has a proper spi controller that will communicate with the chip | 09:18 |
ceene | so I program it using spidev's linux interface from userspace | 09:18 |
ceene | but this same board, will also be interfaced via a rs232-spi converter, so I won't be able to use spidev interface, but a series of ascii commands that will translate to spi transactions | 09:19 |
ceene | so... same device, but interfaced via two different systems | 09:19 |
ceene | https://github.com/agamez/libARTio | 15:52 |
ceene | welp | 15:52 |
ceene | that's the start of it | 15:52 |
ceene | this is going to be a not complete reimplementation of socat in the form of a library | 15:54 |
ceene | so totally a different thing lol | 15:54 |
ceene | but I'm gonna try to use the same addressing as socat, so this socat's example should work in the end $ socat readline /dev/ttyS0,raw,echo=0,crlf | 15:55 |
ceene | but it'll probably be a very simple thing with just a couple of controllers: generic open, serial port, tcp client and the propietary code we use for the rs232-spi converter | 15:57 |
Generated by irclog2html.py 2.17.0 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!