PS4 bluetooth setup

Need help? Ask here and someone will help
Post Reply
blarnath
Posts: 5
Joined: Fri Sep 29, 2017 1:11 pm

PS4 bluetooth setup

Post by blarnath »

Will a leonardo work with Linux (Pi) + Bluetooth? I've been having issues flashing the atmel32u4.hex onto a Leonardo.
User avatar
Matlo
Posts: 5768
Joined: Wed Jul 06, 2011 7:01 am
Location: France
Contact:

Re: PS4 bluetooth setup

Post 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?
GIMX creator
blarnath
Posts: 5
Joined: Fri Sep 29, 2017 1:11 pm

Re: PS4 bluetooth setup

Post 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.
User avatar
Matlo
Posts: 5768
Joined: Wed Jul 06, 2011 7:01 am
Location: France
Contact:

Re: PS4 bluetooth setup

Post by Matlo »

Could you try with gimx-loader?
GIMX creator
blarnath
Posts: 5
Joined: Fri Sep 29, 2017 1:11 pm

Re: PS4 bluetooth setup

Post by blarnath »

I did try with gimx-loader, but I could not get it to recognize me unplugging and re-plugging the Arduino
User avatar
Matlo
Posts: 5768
Joined: Wed Jul 06, 2011 7:01 am
Location: France
Contact:

Re: PS4 bluetooth setup

Post by Matlo »

Was the Arduino board connected to the USB to UART adapter, and the USB to UART adapter connected to the computer?
GIMX creator
blarnath
Posts: 5
Joined: Fri Sep 29, 2017 1:11 pm

Re: PS4 bluetooth setup

Post by blarnath »

No, it's directly connected via USB to the computer. I do not have a USB UART connected at all.
User avatar
Matlo
Posts: 5768
Joined: Wed Jul 06, 2011 7:01 am
Location: France
Contact:

Re: PS4 bluetooth setup

Post by Matlo »

Sorry I missed that you were going the bluetooth way.
GIMX creator
Post Reply