![]() Convert each pair to decimal (if converting 3rd/4th and adding is hard, could just convert 4th as that would be up to 255 and more than enough for snooker)Ĥ. Retrieve and store the 10 or 11 hex pairs sent in replyģ. I notice that OBS scripts are Python ( ) so, is it possible to script up: -Ģ. I have been given a python script to do this, but it won't work due to syntax in my install of Python (it doesn't see the serial command, I think I need to add serial support) ![]() I know which pair represents what: -ĩth pair - 01 if player 1 at table, 00 if player 2 at table Now, using "Serial Port Monitor", if I send a zero to the COM port (I have a USB to serial converter) the scoreboard replies with 10 or 11 hex pairs. All Windows desktop/server 32-bit and 64-bit platforms starting from Windows Vista. This software-based USB protocol analyzer allows you to monitor the data transferred between USB applications and devices connected to your computer via USB interfaces. ![]() However MANY referees have a particular type of electronic scoreboard with an RJ45 connector on it, which is in fact an RS232 port Free USB Analyzer is a non-intrusive software USB sniffer and protocol analyzer for Windows. For those occasions I do not have it, I use another package. Whilst some of what I do utilises a specific bespoke software package for scoring, this isn't always available to me. More complicated solutions using select are not worth it, IMO, because unless you do some black magick (I don't even know how) your thing can easily deadlock: suppose one client sends several packets before waiting for any responses (but is listening for responses anyway, so without your proxy everything would work OK), the other client receives and process one packet and tries to send a response, but your proxy is waiting for him to read the second or third packet (depending on his buffer size).I've been using OBS to stream snooker videos for a very long time. If your problem is how to move the data around, the easiest way is to just spawn two threads, one reads data from one socket and writes it to another, the second does the same in the opposite direction, bam, done! Or if you're acting as a sort of a NAT traversal proxy, then you listen on both ports but don't read any data until both ports have been connected to. you're listening on port 666, when the connection is accepted you connect to the target IP:port (through some randomly assigned local port). If how a connection is made, then if you're acting as a proxy then one of the sides should initiate it, i.e. The problem comes into play when I try to wrap my head around full-duplex port redirection. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |