Pi GPIO in place of USB-UART

Need help? Ask here and someone will help
User avatar
Matlo
Posts: 5768
Joined: Wed Jul 06, 2011 7:01 am
Location: France
Contact:

Re: Pi GPIO in place of USB-UART

Post by Matlo »

Hi,

The raspi-config part is indeed required.
I looked at the raspi-config source code, and there's no way it modifies enable_uart in /boot/config.txt.
https://github.com/asb/raspi-config/blo ... onfig#L523
GIMX creator
zblad
Posts: 32
Joined: Tue Jul 05, 2016 3:19 pm

Re: Pi GPIO in place of USB-UART

Post by zblad »

Alright so I should follow the rpi gimx directions step by step. Even when I do that I still get the adaptor error. Should I try flipping the rx and tx wires around? Im not sure what it could be because like I said with the usb adaptor it works on my laptop and raspberry pi.
User avatar
Matlo
Posts: 5768
Joined: Wed Jul 06, 2011 7:01 am
Location: France
Contact:

Re: Pi GPIO in place of USB-UART

Post by Matlo »

Be careful with the wiring. The voltage levels are different (5V vs 3.3V). A wrong wiring could damage the RPi.
GIMX creator
zblad
Posts: 32
Joined: Tue Jul 05, 2016 3:19 pm

Re: Pi GPIO in place of USB-UART

Post by zblad »

I have double checked everything and it all looks to be wired right. The only other thing would be what order to boot everything up. I start by turning on the ps4 with it plugged into the teensy. Then I turn the raspberry pi with the gpio wires connected. Maybe I should unhook the teensy and boot the raspberry pi up and then the ps4 and then connect the teensy to the ps4... I don't what the issue is unless there is some setting that isn't listed on the tutorial. Does enable_uart=1 have to be added to the config.txt? I have also read about editing the cmdline.txt but I am not sure about that either.
User avatar
Matlo
Posts: 5768
Joined: Wed Jul 06, 2011 7:01 am
Location: France
Contact:

Re: Pi GPIO in place of USB-UART

Post by Matlo »

Please post a log file, and the content of the /boot/config.txt file.
GIMX creator
zblad
Posts: 32
Joined: Tue Jul 05, 2016 3:19 pm

Re: Pi GPIO in place of USB-UART

Post by zblad »

# For more options and information see
# http://www.raspberrypi.org/documentatio ... fig-txt.md
# Some settings may impact device functionality. See link above for details

# uncomment if you get no picture on HDMI for a default "safe" mode
#hdmi_safe=1

# uncomment this if your display has a black border of unused pixels visible
# and your display can output without overscan
#disable_overscan=1

# uncomment the following to adjust overscan. Use positive numbers if console
# goes off screen, and negative if there is too much border
#overscan_left=16
#overscan_right=16
#overscan_top=16
#overscan_bottom=16

# uncomment to force a console size. By default it will be display's size minus
# overscan.
#framebuffer_width=1280
#framebuffer_height=720

# uncomment if hdmi display is not detected and composite is being output
#hdmi_force_hotplug=1

# uncomment to force a specific HDMI mode (this will force VGA)
#hdmi_group=1
#hdmi_mode=1

# uncomment to force a HDMI mode rather than DVI. This can make audio work in
# DMT (computer monitor) modes
#hdmi_drive=2

# uncomment to increase signal to HDMI, if you have interference, blanking, or
# no display
#config_hdmi_boost=4

# uncomment for composite PAL
#sdtv_mode=2

#uncomment to overclock the arm. 700 MHz is the default.
#arm_freq=800

# Uncomment some or all of these to enable the optional hardware interfaces
#dtparam=i2c_arm=on
#dtparam=i2s=on
#dtparam=spi=on

# Uncomment this to enable the lirc-rpi module
#dtoverlay=lirc-rpi

# Additional overlays and parameters are documented /boot/overlays/README

# Enable audio (loads snd_bcm2835)
dtparam=audio=on
enable_uart=1
init_uart_clock=8000000


That is the config.txt how would i get a log file on a raspberry pi that is running it in terminal?
zblad
Posts: 32
Joined: Tue Jul 05, 2016 3:19 pm

Re: Pi GPIO in place of USB-UART

Post by zblad »

So two second after i posted that i tried cmd line again and it WORKED not sure why but it did so i shut it all off and tried again and sure enough it worked... Not sure if something didnt install correctly the first time or what. but thanks
User avatar
Matlo
Posts: 5768
Joined: Wed Jul 06, 2011 7:01 am
Location: France
Contact:

Re: Pi GPIO in place of USB-UART

Post by Matlo »

Did you reboot in the meantime?
Rebooting is required to apply the changes.
GIMX creator
zblad
Posts: 32
Joined: Tue Jul 05, 2016 3:19 pm

Re: Pi GPIO in place of USB-UART

Post by zblad »

I wanted to post an update on what i have found works best...

First you have to run the script manually trying to have it start at boot does not work. I also found that it works best to have ps4 off. First power on the rpi once thats botted power on the ps4. Then run the manual command in console. I tried creating a script that had two buttons when i press button one it launches gimx when i press button 2 it shuts down. The script works perfect if i run it manually but the instant i try to have it start automatically at boot it does not work... Not sure if anyone on here has any ideas i could try.
joe
Posts: 5
Joined: Tue Dec 15, 2015 5:14 pm

Re: Pi GPIO in place of USB-UART

Post by joe »

I am using it with the onboard UART since a long time and had the same problem. Power the Pi from Ps4 with a switched of PS4 (not standby). Then wait until G25 started its initialisation procedure turning full right - plug the arduino into the second PS4 Port powering it while wheel is on its way to full left. With this timing its working in 99%. I think there is some trash on uart signal of pi so the arduino thinks it should start sending its "presence" when raspberry is not listening. Later raspberry is listening but arduino is no longer telling it is there. it would by nice if gimx would give us a reset for the arduino on GPiO and then wait for it. Maybe a bigger capacitor keeping the arduino longer in reset and powering both devices same time will also work.
(still using wheezy on Raspberry B).
Post Reply