azonenberg changed the topic of #scopehal to: ngscopeclient, libscopehal, and libscopeprotocols development and testing | https://github.com/ngscopeclient/scopehal-apps | Logs: https://libera.irclog.whitequark.org/scopehal
aferreira has quit [Ping timeout: 265 seconds]
_whitelogger has joined #scopehal
Degi has quit [Ping timeout: 272 seconds]
Degi has joined #scopehal
aferreira has joined #scopehal
<d1b2> <josHua> ok, I think I haev everything I need to start writing rp2040 firmware. that's... a tomorrow activity.
<d1b2> <robots01> Hi, is there some example data source for the csvstreamer ? I am having hard time getting it to work, it seems to be using some cached values and not capturing new ones.
ALTracer has joined #scopehal
ALTracer has quit [Quit: Quit]
<d1b2> <azonenberg> I have not made a demo app for it, I probably should
<d1b2> <azonenberg> The basic idea is that you connect to a socket that spits out CSV-formatted data as a live stream. The socket needs to be pushing data live without any delays due to e.g. Nagle's algorithm
<d1b2> <azonenberg> (so you'll want to set TCP_NODELAY on your server)
<d1b2> <azonenberg> then at least once when the client connects (it's safe to do at any time if you want to do it at regular intervals or something), you should send a line CSV-NAME,foo,bar to indicate that you have two channels named foo and bar (adjust as needed for your application)
<d1b2> <azonenberg> followed by a line CSV-UNIT,V,A to indicate those channels have values measured in volts and amps, change as appropriate to any supported unit (SI prefixes not accepted, you have to use a base unit)
<d1b2> <azonenberg> then every time a new measurement is available CSV-DATA,1.234,5.678
<d1b2> <azonenberg> any line not beginning with one of those magic strings is ignored (this is intended to allow you to e.g. mix measurements with other log messages on a UART or something)
aferreira has quit [Quit: Leaving]
_whitelogger has joined #scopehal