Skip to content

No outputs for get_info.py with BSC203 and NRT150 #12

@mxochicale

Description

@mxochicale

Hi

I am wondering if anyone (i.e. @freespace, @dorox, @matteoschiav, @mn14tm, @PawelDefee, @pumphaus, @raouf-barboza, @teletoby, @vascotenner, @victorliu, @weinshec, @yuriy-kozlov, etc. ) have tested pyAPT under Ubuntu 18.04x6x with Controller BSC203 and linear stages NRT150/M?. I am asking that as I have been facing some communication problems and perhaps you have some advice. Let me share how I am setting the USB port, library installation and then show the terminal output for get_info.py

USB setting up

First, *ftdi.rules have been setup as follow

/etc/udev/rules.d/11-ftdi.rules

SUBSYSTEM=="usb", ATTRS{idVendor}=="0403", ATTRS{idProduct}=="faf0", GROUP="dialout", MODE="0666"

/etc/udev/rules.d/99-libftdi.rules

SUBSYSTEMS=="usb", ATTRS{idVendor}=="0403", ATTRS{idProduct}=="faf0", GROUP="dialout", MODE="0666"

Also, it has been changed the permissions and its group of the USB port of the controller as shown below.

$ ls -la /dev/ttyUSB0
crw-rw-rw- 1 root dialout 188, 0 Dec  3 08:09 /dev/ttyUSB0
$ groups
pyapt tty dialout sudo

Library requirements

pip install -r requirements.txtin (linearstages) virtual environment with python3 using a standard user (i.e. no root user).

Issue the python get_info.py just get stuck:

I am not sure what I am missing perhaps you have some hints for the following bug:

(linearstages) pyapt@$MACHINE:$HOME/pyAPT$ python get_info.py 
Looking for APT controllers
Found b'Thorlabs' b'APT Stepper Motor Controller' S/N: b'70112214'
###  TESTING get_info.py  ####
serial=    b'70112214'
pyAPT.Controller(70112214) =    Controller(serial=70112214, device=<pylibftdi.device.Device object at 0x7f0847d4c5c0>)
message.MGMSG_HW_GET_INFO= 6
reqmsg= Message(messageID=5, param1=0, param2=0, dest=80, src=1, data=None)
6

Any ideas?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions