Playstation (plestécheunne)

Índex

General

Emulació / Emulation

Misc

Bandes sonores / Soundtracks

GIMX

  • GIMX
    • Wiki
    • Info
    • Source
    • Compilació / Compilation
      • Development on Linux
      • dependencies
        • Mageia
          • urpmi lib64wxgtku2.8-devel
      • git clone https://github.com/matlo/GIMX.git
      • gimx-loader
        • cd loader
        • make
        • sudo make install
    • Connexions:
      option

      peripheral computer
      adapter
      adapter
      Playstation

      step
      peripheral connector
      computer
      connector
      connector
      device
      connector
      connector
      device
      connector
      connector
      Playstation





      USB



      USB
      bluetooth USB dongle

      (bluetooth)
      PS3












      USB PS3

      1. pairing








      AVR USB board



      2. playing








      bluetooth USB dongle
      (bluetooth) PS4



      Linux
      USB USB
      USB - UART
      • CP 2102
      • ...
      UART
      Rx/Tx (5V) AVR USB board


      USB PS4


      • Logitech Driving Force GT
      • PS4 original controller


      USB

      RPi
      RXD (3.3V)
      Vout (3.3V)
      voltage divider
      (R1=2.2kΩ, R2=3.3kΩ)
      Vin (5V)
      Tx (5V, 16MHz)
      AVR USB board USB micro
      USB PS4


      TXD
      cable
      Rx


      GND
      cable
      GND
    • Adapter
      • USB -UART (not needed if using GPIO on a RPi)
      • AVR USB board (atmega32u4)
        • Teensy 2.0
        • Arduino
          • Models
            • Micro
            • Leonardo
          • Firmware upload to board (Firmware loading) (Force feedback)
            • Using gimx-launcher
            • Using avrdude
              • download gimx-firmwares (firmwares-5.8.zip) or get the single hex file from GIMX/loader/firmware (used by gimx-launcher)
                • console
                  hex file
                  dispositiu / device
                  PS2
                  EMUDFPPS2.hex Logitech Driving Force Pro emulation, for PS2, with force feedback support (may work with PC as target)
                  EMUDFPS2.hex Logitech Driving Force emulation, for PS2, with force feedback support (may work with PC as target)
                  EMUGTFPS2.hex Logitech GT Force emulation, for PS2, with force feedback support(may work with PC as target)
                  PS3
                  EMUJOYSTICKPS3.hex 16bit stick axes, for PS3
                  EMUPS3.hex Sixaxis emulation, for PS3
                  EMUG27PS3.hex Logitech G27 gaming wheel emulation, for PS3, with force feedback support (does not work with PC as target)
                  EMUJOYSTICKPS3.hex HID joystick emulation, with 16bit stick axes, for PS3
                  PS4
                  EMUPS4.hex Hori Pad FPS Plus emulation, for PS4 (with touchpad support)
                  EMUG29PS4.hex Logitech G29 gaming wheel emulation, with force feedback support for Logitech wheels (G27, G25, Driving Force GT...) (does not work with PC as target)
                  EMUT300RSPS4.hex
                  Xbox 360 EMU360.hex 360 pad emulation, for Xbox 360
                  Xbox One
                  EMUXONE.hex Xbox One pad emulation, for Xbox One
                  PC
                  EMUG27PC.hex Logitech G27 gaming wheel emulation, for PC, force feedback support

              • install using Arduino tools: avrdude
                • Arduino Micro:
                  • stty -F /dev/ttyACM0 1200 && sleep 1 && /disc/Baixades/arduino-1.8.5/hardware/tools/avr/bin/avrdude -C/disc/Baixades/arduino-1.8.5/hardware/tools/avr/etc/avrdude.conf -v -patmega32u4 -cavr109 -P/dev/ttyACM0 -b57600 -D -Uflash:w:/disc/src/GIMX/loader/firmware/EMUG29PS4.hex:i
                • /disc/Baixades/arduino-1.8.5/hardware/tools/avr/bin/avrdude -C/disc/Baixades/arduino-1.8.5/hardware/tools/avr/etc/avrdude.conf -v -patmega32u4 -cavr109 -P/dev/ttyACM0 -b57600 -D -Uflash:w:/tmp/gimx/firmwares-5.8/EMU.../atmega32u4.hex:i
                • /disc/Baixades/arduino-1.8.5/hardware/tools/avr/bin/avrdude -C/disc/Baixades/arduino-1.8.5/hardware/tools/avr/etc/avrdude.conf -v -patmega32u4 -cavr109 -P/dev/ttyACM0 -b57600 -D -Uflash:w:/tmp/gimx/EMU....hex:i
    • Raspberry Pi
      • RPi - GIMX
        • Info
        • AVR USB board
        • USB adapter using the on-board UART interface
          • maquinari / hardware
          • programari / software
            • Disable RPi UART as a serial console:
              • sudo raspi-config
                • 5 Interfacing options
                  • P6 Serial
                    • Would you like a login shell to be accessible over serial? No
                    • Would you like the serial port hardware to be enabled? No
            • Enable high baudrates:
              • sudo nano /boot/config.txt
                • init_uart_clock=8000000
            • sudo reboot
        • GIMX
          • Install
            • wget https://gimx.fr/download/gimx-raspbian -O gimx.deb
            • sudo dpkg -i gimx.deb
            • sudo apt-get update && sudo apt-get -f install
          • Disable Triggerhappy (it consumes CPU)
            • sudo systemctl stop triggerhappy.service
            • sudo systemctl disable triggerhappy.service
          • Run
            • GUI
            • Autostart GIMX at boot without GUI
              • /etc/systemd/system/gimx.service
                • [Unit]
                  Description=GIMX 
                  After=syslog.target network.target

                  [Service]
                  User=pi 
                  Type=simple 
                  # using USB-UART adapter
                  #ExecStart=/usr/bin/gimx -p /dev/ttyUSB0 -c LogitechDrivingForceGT_G29.xml --nograb
                  # using the on-board UART interface
                  ExecStart=/usr/bin/gimx -p /dev/ttyAMA0 -c LogitechDrivingForceGT_G29.xml --nograb
                  Restart=always 
                  RestartSec=5

                  [Install]
                  WantedBy=multi-user.target
              • sudo systemctl daemon-reload
              • sudo systemctl enable gimx && sudo systemctl start gimx
        • LED
          • Notify when GIMX is running using a led
            • hardware
            • software
              • /home/pi/blink.py
                • #!/usr/bin/python
                  import os 
                  import time 
                  import RPi.GPIO as GPIO

                  led = 23 
                  button = 18 
                  GPIO.setmode(GPIO.BCM) 
                  GPIO.setup(led, GPIO.OUT) 
                  GPIO.setup(button, GPIO.IN, pull_up_down = GPIO.PUD_UP)

                  def Shutdown(channel): 
                    GPIO.output(led, True)
                    time.sleep(0.2)
                    GPIO.output(led, False)
                    time.sleep(0.2)
                    GPIO.output(led, True)
                    time.sleep(0.2)
                    GPIO.output(led, False)
                    os.system("sudo shutdown -h now")

                  GPIO.add_event_detect(18, GPIO.FALLING, callback = Shutdown, bouncetime = 2000)

                  while True: 
                    found = False
                    time.sleep(5)
                    pids = [pid for pid in os.listdir('/proc') if pid.isdigit()]
                    for pid in pids:
                      try:
                        cmd = open(os.path.join('/proc', pid, 'cmdline'), 'rb').read()
                        if "gimx" in cmd:
                          found = True
                      except IOError: # proc has already terminated
                        continue
                    if found == True:
                      GPIO.output(led, True)
                    else:
                      GPIO.output(led, False)

              • crontab -e
                • @reboot python /home/pi/blink.py &
          • Turning on an LED with your Raspberry Pi's GPIO Pins
            • The Raspberry Pi's GPIO Pins

http://www.francescpinyol.cat/playstation.html
Primera versió: / First version:
Darrera modificació: 24 de setembre de 2018 / Last update: 24th September 2018

Valid HTML 4.01!

Cap a casa / Back home