sb0 changed the topic of #m-labs to: https://m-labs.hk :: Mattermost https://chat.m-labs.hk :: Logs http://irclog.whitequark.org/m-labs
rohitksingh has quit [Ping timeout: 255 seconds]
rohitksingh has joined #m-labs
mumptai_ has joined #m-labs
mumptai has quit [Ping timeout: 272 seconds]
emilazy has quit [Changing host]
emily has quit [Changing host]
emilazy has joined #m-labs
emily has joined #m-labs
rohitksingh has quit [Ping timeout: 255 seconds]
airwoodix0 has joined #m-labs
airwoodix has quit [Ping timeout: 258 seconds]
airwoodix0 is now known as airwoodix
rohitksingh has joined #m-labs
loxodes has quit [Ping timeout: 252 seconds]
loxodes has joined #m-labs
Dar1us_ has joined #m-labs
Dar1us has quit [Ping timeout: 240 seconds]
Dar1us_ is now known as Dar1us
zng has quit [Ping timeout: 260 seconds]
Zougloub has quit [Ping timeout: 260 seconds]
zng has joined #m-labs
[Matt] has quit [Ping timeout: 260 seconds]
[Matt] has joined #m-labs
Zougloub has joined #m-labs
calle__ has joined #m-labs
mumptai_ has quit [Ping timeout: 272 seconds]
_whitelogger has joined #m-labs
rohitksingh has quit [Ping timeout: 240 seconds]
rohitksingh has joined #m-labs
zkms has quit [Quit: zkms]
zkms has joined #m-labs
rohitksingh has quit [Ping timeout: 240 seconds]
rohitksingh has joined #m-labs
proteus-guy has quit [Quit: Leaving]
m4ssi has joined #m-labs
rohitksingh has quit [Ping timeout: 240 seconds]
_whitelogger has joined #m-labs
Dar1us has quit [Ping timeout: 272 seconds]
Dar1us has joined #m-labs
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] <sb10q> ACTION=="add", SUBSYSTEM=="tty", ENV{ID_SERIAL}=="FTDI_Quad_RS232-HS",ENV{ID_PATH}=="pci-0000:00:14.0-usb-0:5:1.1", SYMLINK+="ttyUSB_sayma-1_0"
<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> ```
<mtrbot-ml> [mattermost] <dpn> /dev/ttyUSB15
<mtrbot-ml> [mattermost] <dpn> desc: Quad RS232-HS
<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]
X-Scale` is now known as X-Scale
X-Scale has quit [Quit: HydraIRC -> http://www.hydrairc.com <- Wibbly Wobbly IRC]
lkcl has joined #m-labs
rohitksingh has joined #m-labs
m4ssi has quit [Remote host closed the connection]
alexhw has quit [Ping timeout: 255 seconds]
alexhw has joined #m-labs
rohitksingh has quit [Ping timeout: 260 seconds]
X-Scale has joined #m-labs
rohitksingh has joined #m-labs
mumptai has joined #m-labs
rohitksingh has quit [Remote host closed the connection]
rohitksingh has joined #m-labs
rohitksingh has quit [Ping timeout: 255 seconds]
rohitksingh has joined #m-labs
lkcl has quit [Ping timeout: 272 seconds]
mumptai has quit [Quit: Verlassend]