Skip to content
This repository has been archived by the owner on Feb 26, 2019. It is now read-only.

linux pre-build broken #6

Open
pip010 opened this issue Apr 23, 2017 · 4 comments
Open

linux pre-build broken #6

pip010 opened this issue Apr 23, 2017 · 4 comments

Comments

@pip010
Copy link

pip010 commented Apr 23, 2017

the prebuild linux binary is broken:
2017/04/23 09:55:11 - Found available ports: ['/dev/ttyS0', '/dev/ttyUSB0']
2017/04/23 09:55:11 - Error in asynchronous task
Traceback (most recent call last):
File "/home/jorge/repos/web2board/src/libs/Decorators/Asynchronous.py", line 44, in overFunction
File "/home/jorge/repos/web2board/src/frames/Web2boardWindow.py", line 210, in __getPorts
File "/home/jorge/repos/web2board/src/libs/CompilerUploader.py", line 178, in getPort
CompilerException: No port found, check the board: "bt328" is connected

BTW I am not jorge :)

bt328 is connected and visible at /dev/ttyUSB0

dmesg:

[53994.317594] usb 5-1: new full-speed USB device number 4 using ohci-pci
[53994.499648] usb 5-1: New USB device found, idVendor=0403, idProduct=6001
[53994.499659] usb 5-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[53994.499667] usb 5-1: Product: FT232R USB UART
[53994.499672] usb 5-1: Manufacturer: FTDI
[53994.499678] usb 5-1: SerialNumber: AH03SA92
[53994.505753] ftdi_sio 5-1:1.0: FTDI USB Serial Device converter detected
[53994.505848] usb 5-1: Detected FT232RL
[53994.509851] usb 5-1: FTDI USB Serial Device converter now attached to ttyUSB0

@avalero
Copy link
Contributor

avalero commented Apr 23, 2017

Clearly a local path of the developer :)

@adumont
Copy link

adumont commented Oct 7, 2017

I am having same issue. Been using it fine for 1 hour, uploading the program to the board, and all fine. THen suddenly imposible to continue, I was getting the same error:

2017/10/07 12:30:05 - Found available ports: ['/dev/ttyUSB0']
2017/10/07 12:30:08 - Error in asynchronous task
Traceback (most recent call last):
File "/home/jorge/repos/web2board/src/libs/Decorators/Asynchronous.py", line 44, in overFunction
File "/home/jorge/repos/web2board/src/frames/Web2boardWindow.py", line 210, in __getPorts
File "/home/jorge/repos/web2board/src/libs/CompilerUploader.py", line 178, in getPort
CompilerException: No port found, check the board: "bt328" is connected

dmesg shows:
[...]
[ 4292.476047] usb 2-5: new full-speed USB device number 4 using ohci-pci
[ 4292.692063] usb 2-5: New USB device found, idVendor=0403, idProduct=6001
[ 4292.692074] usb 2-5: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 4292.692080] usb 2-5: Product: FT232R USB UART
[ 4292.692085] usb 2-5: Manufacturer: FTDI
[ 4292.692089] usb 2-5: SerialNumber: A6007ZGE
[ 4292.700214] ftdi_sio 2-5:1.0: FTDI USB Serial Device converter detected
[ 4292.700309] usb 2-5: Detected FT232RL
[ 4292.706223] usb 2-5: FTDI USB Serial Device converter now attached to ttyUSB0

$ lsusb
Bus 001 Device 003: ID 0bda:0111 Realtek Semiconductor Corp. RTS5111 Card Reader Controller
Bus 001 Device 002: ID 045e:0779 Microsoft Corp. LifeCam HD-3000
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 004: ID 0403:6001 Future Technology Devices International, Ltd FT232 USB-Serial (UART) IC
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub

Any idea?? That's frustrating :(

@adumont
Copy link

adumont commented Oct 7, 2017

Putting web2board in debug mode gives that output:

2017/10/07 12:36:13 - init web2board with options: {'logLevel': 10, 'testing': 'none', 'update2version': None, 'host': u'', 'board': 'uno', 'port': 9877, 'proxy': u''}, and args: []
2017/10/07 12:36:13 - Enviromental data:
2017/10/07 12:36:13 - {
"LC_NUMERIC": "en_US.UTF-8",
"GOOGLE_API_KEY": "AIzaSyAQfxPJiounkhOjODEO5ZieffeBv6yft2Q",
"QT_QPA_PLATFORMTHEME": "lxqt",
"_LXSESSION_PID": "2624",
"XDG_GREETER_DATA_DIR": "/var/lib/lightdm-data/adumont",
"QT4_IM_MODULE": "",
"QT_PLATFORM_PLUGIN": "lxqt",
"LC_MEASUREMENT": "en_US.UTF-8",
"UPSTART_EVENTS": "started xsession",
"XDG_CURRENT_DESKTOP": "LXDE",
"XDG_MENU_PREFIX": "lxde-",
"XDG_SESSION_TYPE": "x11",
"QT_IM_MODULE": "",
"LOGNAME": "adumont",
"USER": "adumont",
"HOME": "/home/adumont",
"XDG_VTNR": "7",
"GNOME_KEYRING_CONTROL": "",
"DISPLAY": ":0.0",
"SSH_AGENT_PID": "2603",
"LANG": "en_US.UTF-8",
"SHELL": "/bin/bash",
"XDG_SESSION_PATH": "/org/freedesktop/DisplayManager/Session0",
"XAUTHORITY": "/home/adumont/.Xauthority",
"LANGUAGE": "en",
"INSTANCE": "",
"LC_MONETARY": "en_US.UTF-8",
"QT_LINUX_ACCESSIBILITY_ALWAYS_ON": "1",
"MANDATORY_PATH": "/usr/share/gconf/Lubuntu.mandatory.path",
"CLUTTER_IM_MODULE": "",
"LD_LIBRARY_PATH": "/home/adumont/opt/bitbloq-offline/resources/app/app/res/web2board/linux",
"UPSTART_INSTANCE": "",
"QT_ACCESSIBILITY": "1",
"SESSION": "Lubuntu",
"EDITOR": "vi",
"SESSIONTYPE": "lxsession",
"IM_CONFIG_PHASE": "1",
"platformioBoard": "uno",
"GPG_AGENT_INFO": "/home/adumont/.gnupg/S.gpg-agent:0:1",
"GDMSESSION": "Lubuntu",
"XDG_SESSION_DESKTOP": "Lubuntu",
"SAL_USE_VCLPLUGIN": "gtk",
"XDG_RUNTIME_DIR": "/run/user/1000",
"LC_IDENTIFICATION": "en_US.UTF-8",
"LC_ADDRESS": "en_US.UTF-8",
"SSH_AUTH_SOCK": "/tmp/ssh-WQ8nmbrbrfjS/agent.2592",
"JAVA_HOME": "/usr/lib/jvm/java-8-oracle",
"J2SDKDIR": "/usr/lib/jvm/java-8-oracle",
"PATH": "/home/adumont/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/usr/lib/jvm/java-8-oracle/bin:/usr/lib/jvm/java-8-oracle/db/bin:/usr/lib/jvm/java-8-oracle/jre/bin",
"XMODIFIERS": "",
"UPSTART_JOB": "lxsession",
"XDG_DATA_DIRS": "/etc/xdg/lubuntu:/usr/local/share:/usr/share:/usr/share/gdm:/var/lib/menu-xdg:/usr/share/Lubuntu:/usr/local/share/:/usr/share/:/var/lib/snapd/desktop",
"XDG_SEAT_PATH": "/org/freedesktop/DisplayManager/Seat0",
"XDG_SESSION_ID": "c2",
"DBUS_SESSION_BUS_ADDRESS": "unix:abstract=/tmp/dbus-xfYXim8GOB",
"DEFAULTS_PATH": "/usr/share/gconf/Lubuntu.default.path",
"GTK_IM_MODULE": "",
"DESKTOP_SESSION": "Lubuntu",
"UPSTART_SESSION": "unix:abstract=/com/ubuntu/upstart-session/1000/2475",
"XDG_CONFIG_DIRS": "/etc/xdg/lubuntu:/etc/xdg/xdg-Lubuntu:/usr/share/upstart/xdg:/etc/xdg",
"GNOME_KEYRING_PID": "",
"XDG_CONFIG_HOME": "/home/adumont/.config",
"GDM_LANG": "en",
"LC_TELEPHONE": "en_US.UTF-8",
"PAPERSIZE": "letter",
"SHLVL": "0",
"PWD": "/home/adumont",
"DERBY_HOME": "/usr/lib/jvm/java-8-oracle/db",
"DESKTOP_STARTUP_ID": "lxpanel-2649-denia-/home/adumont/opt/bitbloq-offline/Bitbloq-0_TIME655275",
"SSH_AGENT_LAUNCHER": "upstart",
"LC_PAPER": "en_US.UTF-8",
"LC_NAME": "en_US.UTF-8",
"JOB": "dbus",
"LC_TIME": "en_US.UTF-8",
"J2REDIR": "/usr/lib/jvm/java-8-oracle/jre",
"XDG_SEAT": "seat0"
}
2017/10/07 12:36:13 - Working directory: /home/adumont/opt/bitbloq-offline/resources/app/app/res/web2board/linux
2017/10/07 12:36:13 - CONFIG_PATH: /home/adumont/opt/bitbloq-offline/resources/app/app/res/web2board/web2board-config.json
2017/10/07 12:36:13 - COPY_PATH: /home/adumont/opt/bitbloq-offline/resources/app/app/res/web2board/web2board_copy
2017/10/07 12:36:13 - EXECUTABLE_PATH: /home/adumont/opt/bitbloq-offline/resources/app/app/res/web2board/linux
2017/10/07 12:36:13 - MAIN_PATH: /home/adumont/opt/bitbloq-offline/resources/app/app/res/web2board/linux
2017/10/07 12:36:13 - ORIGINAL_PATH: /home/adumont/opt/bitbloq-offline/resources/app/app/res/web2board/web2board
2017/10/07 12:36:13 - PLATFORMIO_INI_PATH: /home/adumont/opt/bitbloq-offline/resources/app/app/res/web2board/linux/res/platformioWorkSpaceSkeleton/platformio.ini
2017/10/07 12:36:13 - PLATFORMIO_PACKAGES_PATH: /home/adumont/opt/bitbloq-offline/resources/app/app/res/web2board/linux/res/pp
2017/10/07 12:36:13 - PLATFORMIO_WORKSPACE_PATH: /home/adumont/opt/bitbloq-offline/resources/app/app/res/web2board/linux/res/platformioWorkSpaceSkeleton
2017/10/07 12:36:13 - PROGRAM_PATH: /home/adumont/.web2board
2017/10/07 12:36:13 - RES_BOARDS_PATH: /home/adumont/opt/bitbloq-offline/resources/app/app/res/web2board/linux/res/boards.txt
2017/10/07 12:36:13 - RES_ICONS_PATH: /home/adumont/opt/bitbloq-offline/resources/app/app/res/web2board/linux/res/icons
2017/10/07 12:36:13 - RES_ICO_PATH: /home/adumont/opt/bitbloq-offline/resources/app/app/res/web2board/linux/res/Web2board.ico
2017/10/07 12:36:13 - RES_LOGGING_CONFIG_PATH: /home/adumont/opt/bitbloq-offline/resources/app/app/res/web2board/linux/res/logging.json
2017/10/07 12:36:13 - RES_PATH: /home/adumont/opt/bitbloq-offline/resources/app/app/res/web2board/linux/res
2017/10/07 12:36:13 - RES_PLATFORMIO_PATH: /home/adumont/opt/bitbloq-offline/resources/app/app/res/web2board/linux/platformio
2017/10/07 12:36:13 - RES_SCONS_ZIP_PATH: /home/adumont/opt/bitbloq-offline/resources/app/app/res/web2board/linux/res/sconsRes.zip
2017/10/07 12:36:13 - SCONS_EXECUTABLE_PATH: /home/adumont/opt/bitbloq-offline/resources/app/app/res/web2board/linux/res/Scons/sconsScript.py
2017/10/07 12:36:13 - TEST_RES_PATH: /home/adumont/opt/bitbloq-offline/resources/app/app/res/web2board/linux/Test/resources
2017/10/07 12:36:13 - TEST_SETTINGS_PATH: /home/adumont/opt/bitbloq-offline/resources/app/app/res/web2board/linux/res/TestSettings/resources
2017/10/07 12:36:13 - listening...
2017/10/07 12:36:13 - open new connection with ID: UNPROVIDED__0
2017/10/07 12:36:13 - Message received from ID: UNPROVIDED__0
{"hub":"UtilsAPIHub","function":"setId","args":["Bitbloq"],"ID":24}
2017/10/07 12:36:13 - message to Bitbloq:
{"function": "setId", "success": true, "replay": true, "ID": 24, "hub": "UtilsAPIHub"}
2017/10/07 12:36:13 - Message received from ID: Bitbloq
{"hub":"WindowHub","function":"showApp","args":[],"ID":25}
2017/10/07 12:36:13 - Showing web2board...
2017/10/07 12:36:13 - message to Bitbloq:
{"function": "showApp", "success": true, "replay": true, "ID": 25, "hub": "WindowHub"}
2017/10/07 12:36:14 - Message received from ID: Bitbloq
{"hub":"UtilsAPIHub","function":"getId","args":[],"ID":26}
2017/10/07 12:36:14 - message to Bitbloq:
{"function": "getId", "success": true, "replay": "Bitbloq", "ID": 26, "hub": "UtilsAPIHub"}
2017/10/07 12:36:14 - Message received from ID: Bitbloq
{"hub":"SerialMonitorHub","function":"findBoardPort","args":["bt328"],"ID":27}
2017/10/07 12:36:15 - Found available ports: ['/dev/ttyUSB0']
2017/10/07 12:36:15 - Checking port: /dev/ttyUSB0
2017/10/07 12:36:15 - Command executed: ['res/avrdude64', '-C', 'res/avrdude.conf', u'-P', u'/dev/ttyUSB0', u'-p', u'atmega328p', u'-b', u'19200', u'-c', u'arduino']
2017/10/07 12:36:15 - Port is open
2017/10/07 12:36:18 -
2017/10/07 12:36:18 - avrdude64: stk500_getsync(): not in sync: resp=0x00

avrdude64 done. Thank you.

2017/10/07 12:36:18 - /dev/ttyUSB0: , avrdude64: stk500_getsync(): not in sync: resp=0x00

avrdude64 done. Thank you.

2017/10/07 12:36:18 - Error calling hub function with:
HubName = SerialMonitorHub
FunctionName = findBoardPort
args = [u'bt328']
messageID = 27
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/wshubsapi/FunctionMessage.py", line 29, in __executeFunction
File "/home/jorge/repos/web2board/src/libs/WSCommunication/Hubs/SerialMonitorHub.py", line 117, in findBoardPort
File "/home/jorge/repos/web2board/src/libs/CompilerUploader.py", line 178, in getPort
CompilerException: No port found, check the board: "bt328" is connected
2017/10/07 12:36:18 - message to Bitbloq:
{"function": "findBoardPort", "success": false, "replay": {"type": "<class 'libs.CompilerUploader.CompilerException'>", "trace": "Traceback (most recent call last):\n File "/usr/local/lib/python2.7/dist-packages/wshubsapi/FunctionMessage.py", line 29, in __executeFunction\n File "/home/jorge/repos/web2board/src/libs/WSCommunication/Hubs/SerialMonitorHub.py", line 117, in findBoardPort\n File "/home/jorge/repos/web2board/src/libs/CompilerUploader.py", line 178, in getPort\nCompilerException: No port found, check the board: "bt328" is connected\n", "error": "No port found, check the board: "bt328" is connected"}, "ID": 27, "hub": "SerialMonitorHub"}

@adumont
Copy link

adumont commented Oct 7, 2017

OH!! Just tried with Online version of bitbloq, same program, and it gave me a nive and comprehensive warning that if I had a "actuator" plugged on pin 0 or 1 (which I had recently plugged), I would need to remove it to be able to connect to the board! That's it.

now web2board correctly detects the board again.

I think you should give the same warning in the offline version of the bitbloq program.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants