Page 1 of 1

PS4 bluetooth setup

Posted: Fri Sep 29, 2017 1:14 pm
by blarnath
Will a leonardo work with Linux (Pi) + Bluetooth? I've been having issues flashing the atmel32u4.hex onto a Leonardo.

Re: PS4 bluetooth setup

Posted: Mon Oct 02, 2017 8:14 am
by Matlo
Hi,

I moved your post to a new topic. Please don't post in very old topics.

Could you please explain how you are trying to load the software, and what kind of issue you are having?

Re: PS4 bluetooth setup

Posted: Tue Oct 03, 2017 1:31 pm
by blarnath
Hey Matlo,

Sorry for bumping a super old post, wasn't sure about the forum etiquette. I figured it out and got everything working, and was playing Destiny 2 with Kb/M last night :) I was having a problem with my Leonardo, I was able to flash it via the IDE but not with AVRDude, I kept getting something like this:

Code: Select all

Connecting to programmer: .avrdude: ser_recv(): read error: Device not configured
avrdude: butterfly_recv(): programmer is not responding

avrdude: ser_recv(): read error: Device not configured
avrdude: butterfly_recv(): programmer is not responding
avrdude: ser_drain(): read error: Device not configured
avrdude: ser_send(): write error: Device not configured
avrdude: ser_recv(): read error: Device not configured
avrdude: butterfly_recv(): programmer is not responding
avrdude: ser_send(): write error: Device not configured
avrdude: ser_recv(): read error: Device not configured
avrdude: butterfly_recv(): programmer is not responding
avrdude: ser_recv(): read error: Device not configured
avrdude: butterfly_recv(): programmer is not responding
avrdude: ser_send(): write error: Device not configured
avrdude: ser_recv(): read error: Device not configured
avrdude: butterfly_recv(): programmer is not responding
I found for the Arduino that the IDE would perform a reset before programming but AVRDude was not. This may also pertain to other boards that are flashed with avrdude. I found a little script to do the reset and then wait that I modified for my purposes, this is for Mac with the Arduino IDE installed so the conf path will need to be altered for various platforms:

Code: Select all

# find the Arduino port
ARDUINO_UPLOAD_PORT="$(find /dev/cu.usbmodem* | head -n 1)"

# reset the Arduino
stty -f "${ARDUINO_UPLOAD_PORT}" 1200

# wait for it...
while :; do
  sleep 0.5
  [ -c "${ARDUINO_UPLOAD_PORT}" ] && break
done

# ...upload!
avrdude -C/Applications/Arduino.app/Contents/Java/hardware/tools/avr/etc/avrdude.conf -v -patmega32u4 -cavr109 -P"${ARDUINO_UPLOAD_PORT}" -b19200 -D -Uflash:w:./atmega32u4.hex:i
Hopefully this helps others in my situation. Once I had the Leonardo programmed the rest of the setup was rather straightforward.

Re: PS4 bluetooth setup

Posted: Tue Oct 03, 2017 1:50 pm
by Matlo
Could you try with gimx-loader?

Re: PS4 bluetooth setup

Posted: Fri Oct 06, 2017 6:25 pm
by blarnath
I did try with gimx-loader, but I could not get it to recognize me unplugging and re-plugging the Arduino

Re: PS4 bluetooth setup

Posted: Sun Oct 08, 2017 12:09 pm
by Matlo
Was the Arduino board connected to the USB to UART adapter, and the USB to UART adapter connected to the computer?

Re: PS4 bluetooth setup

Posted: Thu Oct 12, 2017 1:07 pm
by blarnath
No, it's directly connected via USB to the computer. I do not have a USB UART connected at all.

Re: PS4 bluetooth setup

Posted: Thu Oct 12, 2017 9:43 pm
by Matlo
Sorry I missed that you were going the bluetooth way.