Anyone have success with Mac OS X? Struggling here with FORDBOARD VI and Emulator

67 views
Skip to first unread message

Tim Rozmajzl

unread,
Jan 7, 2018, 7:17:27 PM1/7/18
to OpenXC
Hi All,

Here's my setup:

  • Mac OS X High Sierra - 10.13.2
  • Python 2.7.13
  • libusb 1.0.21
  • Firmware: vi-emulator-firmware-FORDBOARD-ctv7.2.0.bin
  • openxc version 0.13.0
Flashing emulator firmware was fine except for a sporadic errors getting into the firmware update mode.

Once all was installed (had to manually install PyBluez - failed with pip install...) I ran the following command:

$ openxc-control version --usb --format json


Got the following error output:

Can't read logs from data source -- stopping: ("USB device couldn't be read", USBError(60, 'Operation timed out'))
Can't read from data source -- stopping: ("
USB device couldn't be read", USBError(60, 'Operation timed out'))
Traceback (most recent call last):
  File "/Users/tim/anaconda/envs/openxc/bin/openxc-control", line 11, in <module>
    load_entry_point('
openxc==0.13.0', 'console_scripts', 'openxc-control')()
  File "/Users/tim/anaconda/envs/openxc/lib/python2.7/site-packages/openxc-0.13.0-py2.7.egg/openxc/tools/control.py", line 146, in main
    version(interface)
  File "/Users/tim/anaconda/envs/openxc/lib/python2.7/site-packages/openxc-0.13.0-py2.7.egg/openxc/tools/control.py", line 19, in version
    print("Device is running version %s" % interface.version())
  File "/Users/tim/anaconda/envs/openxc/lib/python2.7/site-packages/openxc-0.13.0-py2.7.egg/openxc/controllers/base.py", line 358, in version
    return self._check_command_response_message(request)
  File "/Users/tim/anaconda/envs/openxc/lib/python2.7/site-packages/openxc-0.13.0-py2.7.egg/openxc/controllers/base.py", line 346, in _check_command_response_message
    responses = self.complex_request(request)
  File "/Users/tim/anaconda/envs/openxc/lib/python2.7/site-packages/openxc-0.13.0-py2.7.egg/openxc/controllers/base.py", line 172, in complex_request
    self._send_complex_request(request)
  File "/Users/tim/anaconda/envs/openxc/lib/python2.7/site-packages/openxc-0.13.0-py2.7.egg/openxc/controllers/usb.py", line 37, in _send_complex_request
    self.streamer.serialize_for_stream(request))
  File "/Users/tim/anaconda/envs/openxc/lib/python2.7/site-packages/usb/core.py", line 702, in ctrl_transfer
    self.__get_timeout(timeout)
  File "/Users/tim/anaconda/envs/openxc/lib/python2.7/site-packages/usb/backend/libusb1.py", line 596, in ctrl_transfer
    timeout))
  File "/Users/tim/anaconda/envs/openxc/lib/python2.7/site-packages/usb/backend/libusb1.py", line 403, in _check
    raise USBError(_str_error[ret], ret, _libusb_errno[ret])
usb.core.USBError: [Errno 60] Operation timed out

So I switched to bluetooth as follows:

$ openxc-control version --bluetooth --format json --bluetooth-address <MY-HEX-ADDRESS>



Got the following error (which repeats ad infinitum):

Traceback (most recent call last):                                                                          
 
File "/Users/tim/anaconda/envs/fordboard/lib/python2.7/logging/__init__.py", line 861, in emit
    msg
= self.format(record)                                                                          
 
File "/Users/tim/anaconda/envs/fordboard/lib/python2.7/logging/__init__.py", line 734, in format    
   
return fmt.format(record)                                                                          
 
File "/Users/tim/anaconda/envs/fordboard/lib/python2.7/logging/__init__.py", line 465, in format  
    record
.message = record.getMessage()    
 
File "/Users/tim/anaconda/envs/fordboard/lib/python2.7/logging/__init__.py", line 329, in getMessage
    msg
= msg % self.args                                                                                  
TypeError: not all arguments converted during string formatting                                        
Logged from file bluetooth.py, line 51



Any tips would be greatly appreciated.

Thanks,
-Tim


Kanishka Vedi

unread,
Jan 10, 2018, 3:48:36 AM1/10/18
to OpenXC
Hi Tim,

Few questions-
1. Have you connected the C5BLE with your Mac? 
2. Is firmware flashed on C5BLE VI?
3. Do you see green/blue light in the connected VI?

This error usually comes when the VI is not connected/disconnected from Mac. See the logs below:

<When the VI is disconnected>

vkanishk~$ openxc-control version

Can't read logs from data source -- stopping: ("USB device couldn't be read", USBError(60, 'Operation timed out'))

Device is running version 7.2.1-dev (emulator)

Exception in thread Thread-1 (most likely raised during interpreter shutdown):

Traceback (most recent call last):

  File "/usr/local/Cellar/python/2.7.12/Frameworks/Python.framework/Versions/2.7/lib/python2.7/threading.py", line 801, in __bootstrap_inner

  File "/Users/vkanishk/GitRepo/openxc-python/openxc/sources/base.py", line 213, in run

  File "/Users/vkanishk/GitRepo/openxc-python/openxc/formats/json.py", line 19, in parse_next_message


<When VI is connected>

vkanishk~$ openxc-control version

Device is running version 7.2.1-dev (emulator)


Regards
Kanishka

Tim Rozmajzl

unread,
Jan 10, 2018, 10:21:12 AM1/10/18
to OpenXC
Thanks for your response, Kanishka.

Just to clarify, I am using the Ford Reference VI, not the C5.  But I do have the firmware installed, VI connected and blue/green light on.  BT device shows up on my Mac as connected.

FIRMWARE = vi-emulator-firmware-FORDBOARD-ctv7.2.0.bin

-Tim

Kanishka Vedi

unread,
Jan 12, 2018, 5:48:43 AM1/12/18
to OpenXC
Hi Tim,

I tried on my Mac by connecting the Reference VI through USB using the command below and it works. When i connect the VI through USB, red light appears. When i run the version command, green light appears for a second and then i see only red light. This works even when the VI is shown as "not connected" in Bluetooth preferences

vkanishk~$ openxc-control version --form json
Can't read logs from data source -- stopping: ("USB device couldn't be read", USBError(60, 'Operation timed out'))
Device is running version 7.2.1-dev (default)




PS: Reference VI works only with Android framework. If you want to work on iOS framework/application, please use C5BLE. 

Thanks
Kanishka
Reply all
Reply to author
Forward
0 new messages