Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

YS1 firmware update success but getting Chipcon Timeout when running rfcat #42

Closed
rbenzing opened this issue Mar 16, 2019 · 7 comments

Comments

Projects
None yet
4 participants
@rbenzing
Copy link

commented Mar 16, 2019

I got the latest firmware to install using the YS1 7 & 9 pin trick successfully without any errors.
rfcat_bootloader /dev/RFCAT_BL_YS1 verify bins/RfCatYS1CCBootloader.hex && rfcat_bootloader /dev/RFCAT_BL_YS1 run Verifying 0003 bytes at address: 5AF1 (OK) Skipping non data record: ':00000001FF'

However now when I plug it in and run rfcat -r it gives me the following error:

Error in resetup():ChipconUsbTimeoutException()

when i run with sudo i get:

Error in resetup():USBError(110, u'Operation timed out')

looking in /dev/ I see:
/dev/RFCAT3 (plugged into 3rd usb port)

What did I do wrong?

@mossmann

This comment has been minimized.

Copy link

commented Mar 19, 2019

Is it possible that your firmware and host code are not the same version?

To check the version of your source repository after you have built firmware:

cd rfcat
cat .revision

(My current revision is 531.)

To re-install the host code:

python2 setup.py build && sudo python2 setup.py install
@rbenzing

This comment has been minimized.

Copy link
Author

commented Mar 20, 2019

I re-installed the host code however still getting the error with revision 531:
Error in resetup():ChipconUsbTimeoutException() Traceback (most recent call last): File "/usr/local/bin/rfcat", line 58, in <module> interactive(ifo.index, DongleClass=RfCat, intro=intro) File "/usr/local/lib/python2.7/dist-packages/rflib/__init__.py", line 207, in interactive d.setModeRX() # this puts the dongle into receive mode File "/usr/local/lib/python2.7/dist-packages/rflib/chipcon_nic.py", line 334, in setModeRX self.setRfMode(RFST_SRX) File "/usr/local/lib/python2.7/dist-packages/rflib/chipcon_nic.py", line 319, in setRfMode r = self.send(APP_SYSTEM, SYS_CMD_RFMODE, "%c" % (self._rfmode) + parms) File "/usr/local/lib/python2.7/dist-packages/rflib/chipcon_usb.py", line 705, in send return self.recv(app, cmd, wait) File "/usr/local/lib/python2.7/dist-packages/rflib/chipcon_usb.py", line 669, in recv raise ChipconUsbTimeoutException rflib.chipcon_usb.ChipconUsbTimeoutException: Timeout waiting for USB response.
I did notice some warnings on building the firmware perhaps these can give some insight..I am lost in translation trying to figure this out.

#./new_serial.py sdcc -Iinclude -DBUILD_VERSION=../revision.sh -DYARDSTICKONE -DCC1111 -DUSBDEVICE -DUSB_DEVICE_SERIAL_NUMBER="./new_serial.py" -c chipcon_usb.c [--- new serial number: 0004 ---] chipcon_usb.c:681: warning 110: conditional flow changed by optimizer: so said EVELYN the modified DOG chipcon_usb.c:765: warning 110: conditional flow changed by optimizer: so said EVELYN the modified DOG chipcon_usb.c:1324: warning 230: label without statement chipcon_usb.c:1302: warning 110: conditional flow changed by optimizer: so said EVELYN the modified DOG chipcon_usb.c:1302: warning 110: conditional flow changed by optimizer: so said EVELYN the modified DOG

Is there a way to define the serial device? I think it may be choosing the wrong serial device.

@mossmann

This comment has been minimized.

Copy link

commented Mar 21, 2019

To avoid firmware compilation issues for now, can you try installing this firmware binary (revision 531)?
https://gist.github.com/mossmann/7b816680df2ac513df3835f3cb9eaa1b

@rbenzing

This comment has been minimized.

Copy link
Author

commented Mar 23, 2019

That worked! must be my build process. Thanks a bunch.

@jfdhuiz

This comment has been minimized.

Copy link

commented May 1, 2019

I followed this guide to upgrade my firmware https://roaldnefs.com/blog/yard-stick-one-firmware/ (which doesn't mention that you could backup it).

I'm having the same issue, with 543 @ Kali 2019.2 with sdcc 3.8

I rebooted the machine, problem persists.

I ground pin 7 and 9, but it doesn't change anything.

When I do $ rfcat_bootloader /dev/RFCAT5 verify RfCatYS1CCBootloader.hex

Something is talking to the RfCat dongle (Modem Manager, most likely). Retrying again after 5 seconds. This can take a minute, please be patient. (error: SerialException("Could not configure port: (25, 'Inappropriate ioctl for device')",))

Checking lsof ModemManager is not doing anything fancy. I killed ModemManager, same errors persist.

I'd love to install a different firmware but it doesn't seem I can communicate with the device anymore.

@jfdhuiz

This comment has been minimized.

Copy link

commented May 1, 2019

I made a different connector which fixed the issue. I made both from those plastic things which connect cables together (they contain metal in the middle). Apparently the metal I was using to connect the 2 pins did not work (well enough). I've seen lights light up, but never all 3. The second one worked right away.

I used Ubuntu 18.04 LTS to fix the issue (with SDCC 3.5), but I'm not sure it matters, because using that with the first (broken) connector did not fix the issue.

Glad I didn't brick it....

@roaldnefs

This comment has been minimized.

Copy link
Contributor

commented Jun 7, 2019

Ran in the same issue a @jfdhuiz today... I'm currently running Ubuntu 19.04 and thus installed sdcc version 3.9.0, which results in the same errors as #39. Version 3.5.0 of sdcc seems to work fine. You can get the YS1 in bootloader mode by grounding pin 7 and pin 9 (enter bootloader mode when the firmware isn't running).

I was able to ground pin 7 and pin 9 on the YS1 using a paperclip.

IMG_20190607_115025

Note: I will update the blogpost @jfdhuiz is referring to...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.