pros-cli icon indicating copy to clipboard operation
pros-cli copied to clipboard

Cortex device never ACK'd to b'\x08\x00\x00\x00'

Open mattfbacon opened this issue 3 years ago • 11 comments

Expected Behavior:

I expected the program to download

Actual Behavior:

An error message was printed.

Steps to reproduce:

Connect the joystick to the microcontroller via USB, and connect the computer to the joystick using the programming module.

System information:

Operating System: Arch Linux

PROS Version: pros, version 3.3.2

Additional Information

The error message is always the same.

Screenshots/Output Dumps/Stack Traces

pros upload --target cortex /dev/ttyUSB0

Uploading  output.bin to Cortex on /dev/ttyUSB0
  Tether: Serial w/ a USB Cable
  Cortex: F/W 4.25 w/ 7.61 V (Backup: 0.00 V)
Joystick: F/W 4.25 w/ 7.02 V
Uploading /home/matt/Desktop/code/pros/first/bin/output.bin [---------------
---------------------]   0%
ERROR - pros.cli.upload:upload - Device never ACK'd to b'\x08\x00\x00\x00'
b'\x08\x00\x00\x00'
    raise VEXCommError(f"Device never ACK'd to {command}", command)
pros.serial.devices.vex.comm_error.VEXCommError: Device never ACK'd to b'\x0
8\x00\x00\x00'
b'\x08\x00\x00\x00'
We detected something went wrong! Do you want to send a report? [y/N]: n
Not sending bug report.

mattfbacon avatar Nov 16 '21 01:11 mattfbacon

it's been a very long time since any of us have worked with the cortex. can you post the output of pros lsusb

HotelCalifornia avatar Nov 16 '21 01:11 HotelCalifornia

If if I had any choice I wouldn't be using Cortex. Anyway...

pros lsusb

There are no connected VEX EDR V5 System Ports
There are no connected VEX EDR V5 User ports
VEX EDR Cortex Microcontroller Ports:
/dev/ttyUSB0 - USB-Serial Controller

mattfbacon avatar Nov 16 '21 01:11 mattfbacon

Also thanks for the quick response.

mattfbacon avatar Nov 16 '21 01:11 mattfbacon

Any insight here? I'd love to use PROS if I can.

mattfbacon avatar Nov 21 '21 20:11 mattfbacon

I'd love to use PROS if I can.

Can other programs upload to your cortex? What version of the cli are you running on? 3.3.2 seems to be the kernel version.

nathan-moore avatar Nov 21 '21 21:11 nathan-moore

I'm able to download via RobotMesh Studio (which is what we're currently using). Interestingly, downloads over the USB A-to-A directly connected to the cortex do work with RMS, despite the fact that A-to-A download is broken and/or not implemented in PROS on Linux.

I was also not able to download with PROS on Windows. Can't remember the exact error ATM though.

mattfbacon avatar Nov 21 '21 21:11 mattfbacon

What version of the cli are you running on? 3.3.2 seems to be the kernel version.

3.2.2 for the CLI. How would I check the kernel version?

mattfbacon avatar Nov 21 '21 21:11 mattfbacon

The kernel version shouldn't matter. Do you mind giving an earlier release a try? https://github.com/purduesigbots/pros-cli/releases/tag/3.1.0

nathan-moore avatar Nov 23 '21 03:11 nathan-moore

Will do next time I get a chance.

mattfbacon avatar Nov 23 '21 03:11 mattfbacon

Now I get the error: "Device never ACK'd to 49".

mattfbacon avatar Dec 10 '21 22:12 mattfbacon

Can you give me the specific command I should run? I might be downloading it incorrectly.

mattfbacon avatar Dec 10 '21 22:12 mattfbacon