calle__ has quit [Remote host closed the connection]
lkcl__ has quit [Ping timeout: 255 seconds]
lkcl__ has joined #m-labs
<mtrbot-ml>
[mattermost] <sb10q> what is YAC?
<mtrbot-ml>
[mattermost] <sb10q> there are several channels on the Kasli USB port, make sure you are using the right one
<mtrbot-ml>
[mattermost] <sb10q> and you can also connect the Kasli straight to a computer if you think there maybe an issue with your network settings
<mtrbot-ml>
[mattermost] <hichichris> Ah sorry i meant YAT (Yet another terminal). According to the manual I switched the drivers of Interface 0 to the WinUSB ones. I can see just one COM port which seems to talk properly with the artiq_flash script. I guess thats also the Port to listen to, isnt it? I'll try to connect the kasli dircetly to one of the computers and will update you. Thanks in advance
<mtrbot-ml>
[mattermost] <sb10q> no, artiq_flash uses the JTAG channel, the UART is on another one
<mtrbot-ml>
[mattermost] <sb10q> on Linux you have ttyUSB0-3, and artiq_flash will take ttyUSB0 and UART ttyUSB2
<mtrbot-ml>
[mattermost] <sb10q> also make sure the comms settings are correct, 115200 8-bit data no flow control 1 stop bit
<mtrbot-ml>
[mattermost] <dpn> Btw does anyone (@sb10q?) have a way to consistently figure out which port of the quad-FTDI chip on Kasli is which? Whatever that subdevice identifier is that indexes them in the Linux driver subsystem seems to be assigned fairly arbitrarily (by extension then also leading to random /dev/ttyUSB* orderings)
<mtrbot-ml>
[mattermost] <sb10q> I haven't seem random ttyUSB* orderings with a freshly plugged FTDI-chip (when there are no other allocated port numbers on the system)
<mtrbot-ml>
[mattermost] <dpn> Interesting. On some of our nodes, we have > 20 USB to serial devices
<mtrbot-ml>
[mattermost] <dpn> We have serial numbers configured, so disambiguation between devices isn't an issue, just finding the right port for the shell is.
<mtrbot-ml>
[mattermost] <dpn> Sometimes :1 will be the UART, sometimes :3, etc.
<mtrbot-ml>
[mattermost] <sb10q> use a udev rule like:
<mtrbot-ml>
[mattermost] <dpn> artiq_flash (or rather openocd, I suppose) seems to work without issues, though, so the information might actually exist
<mtrbot-ml>
[mattermost] <dpn> Hmm, I'll have a look
<mtrbot-ml>
[mattermost] <sb10q> yep it exists; for artiq_flash you can use -t ftdi_device x:y
<mtrbot-ml>
[mattermost] <sb10q> x:y can be determined with lsusb -t iirc
<mtrbot-ml>
[mattermost] <dpn> Take e.g. the output of `python -m serial.tools.list_ports -v`, which will print something like:
<mtrbot-ml>
[mattermost] <dpn> hwid: USB VID:PID=0403:6011 SER=kasli_101 LOCATION=1-8.2:1.3
<mtrbot-ml>
[mattermost] <dpn> ```
<mtrbot-ml>
[mattermost] <dpn> Which of the 1.<n> the UART is will change
<mtrbot-ml>
[mattermost] <sb10q> udev uses another numbering (of course!) that can be obtained with udevadm info -q all /dev/ttyUSBX
<mtrbot-ml>
[mattermost] <sb10q> the 3 at the end is the channel within the FTDI chip and it is consistent AFAICT
<mtrbot-ml>
[mattermost] <dpn> It isn't, unfortunately. Driver bug, then?
<mtrbot-ml>
[mattermost] <sb10q> really?
<mtrbot-ml>
[mattermost] <sb10q> I have only used udevadm, idk about pyserial
<mtrbot-ml>
[mattermost] <sb10q> note that if you use a udev rule like the one above, you will need to plug the Kasli into the same USB port of your machine every time
<mtrbot-ml>
[mattermost] <dpn> I'm pretty sure I've seen it change, because I wanted to write a wrapper thing to avoid the problem, but then discovered that I couldn't seem to rely on what I assume is the same string from the sys tree that udevadm also prints
<mtrbot-ml>
[mattermost] <sb10q> I've used udev rules like above (also to differentiate between multiple boards on the same machine) and never had issues
<mtrbot-ml>
[mattermost] <sb10q> it always worked consistently when unplugging, replugging, rebooting, etc.
<mtrbot-ml>
[mattermost] <dpn> To differentiate between multiple boards, we just flash the ID to `kasli_101` or whatever; this way, ports can change, etc. without issues. Good to know it's stable for you, though; I'll have another more systematic look at some points
<mtrbot-ml>
[mattermost] <sb10q> flash the ID?
<mtrbot-ml>
[mattermost] <sb10q> you mean change the USB IDs in the EEPROM?
<mtrbot-ml>
[mattermost] <dpn> Serial I mean, sorry
<mtrbot-ml>
[mattermost] <sb10q> serial?
<mtrbot-ml>
[mattermost] <dpn> The one programmed into the FTDI chip, via FT_Prog
<mtrbot-ml>
[mattermost] <dpn> udev/… picks that up
<mtrbot-ml>
[mattermost] <sb10q> ah I see
<mtrbot-ml>
[mattermost] <sb10q> so yes, eeprom
<mtrbot-ml>
[mattermost] <dpn> Sure, yes, apologies for the inaccurate language
<mtrbot-ml>
[mattermost] <dpn> Then just `'ftdi_serial …'` for openocd; works nicely with > 5 Kaslis on a PC
lkcl__ has quit [Read error: Connection reset by peer]
lkcl__ has joined #m-labs
<mtrbot-ml>
[mattermost] <dpn> (which isn't the USB VID/PID, which I thought you were referring to)
mauz555 has joined #m-labs
mauz555 has quit []
X-Scale has quit [Ping timeout: 268 seconds]
X-Scale` has joined #m-labs
lkcl__ has quit [Read error: Connection reset by peer]