Skip to content

clegoffic/RobHotChiliPeppers

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

README Github

ProSE équipe A1 2023 - Corp N’ Roses

Copyright

This document belongs to :

Milo Koson, Clément Le Goffic, Thibault Malary, Alfred Vrignaud, Marin Bonsergent, Jean-Théophane Deschard, Loris Bousquet

Requirements :

Material :

  • Discovery kit STM32MP157C-DK2 from STMicroelectronics
  • LiDAR : RPLIDAR A1M8 from Slamtec
  • USB A to Micro USB B Cable
  • USB C to USB A Cable and USB C to USB C to make sure you can connect to the board depending on your situation
  • 5V/3A Power supply
  • Android Smartphone (Developed on and for a Samsung Galaxy A20e under Android 9 et with kernel v4.4.111)

Software :

ACDSoft Install (C app) :

STM32MP157C-DK2 setup :

Prepare OpenSTLinux Install

  1. Install OpenSTLinux on the MP1 (STM32MP157C-DK2) with this video
    1. Download STM32MP1 Starter Package Image
  2. The MP1 must start on OpenSTLinux before trying the next steps

Add CP210x driver to the kernel for the LiDAR

  1. Install the SDK

  2. Then Modify rebuild and reload the kernel :

    1. Folow 1,2 and 3 steps
    2. ⚠️ Don’t do the 4 step for the moment ! ⚠️
  3. Configure the kernel for the CP210x driver :

  4. In the linux source folder : 1.

    $> make ARCH=arm menuconfig
  5. Make sure at the top left corner you see Linux/arm and not (x86) (If it is the case go on else source the sdk and retry)

Driver1

  1. Go to Device Driver > USB Support

Driver2

  1. Go to USB Serial Convert and enable it by setting a star with the space bar

Driver3

  1. Enable “CP210x family of UART Bridge Controllers”

Driver4

  1. Save with the name .config and leave
  2. Then you can follow the 4 and 5 steps on the tutorial
  3. Restart the MP1
  4. To make sure you made a good job :
    1. Check if the interface /dev/ttyUSB0 exists on the board when the LiDAR is connected

If it is ok you can go to the next step

MP1 Internal Setup

  1. If needed change the qwerty setup to azerty
    1. ⚠️ You must use VI : ⚠️

      Mini tutorial :

      Hit i to enter in insert mode

      Change what you want

      When you finished hit escape then type :x to leave while saving changes

Configure Wifi :

  1. Hit the icon NetDataPerfMonitor on the default MP1 screen

  2. Enable the “netdata over wifi” switch

  3. In /lib/systemd/network/hostpad.network

    Add :

    [Netwwork]
    Address=192.168.72.1/24

    As shown here

    Network1

  4. Save and exit

  5. Check the changes

    cat /lib/systemd/network/hostpad.network
  6. Add SSID and Password :

    In /etc/hostapd.conf

    Add :

    ssid=MP1SERVER

    and

    wpa_passphrase=stm32mp1

    As shown in the picture :

    Network2

  7. Save and exit

  8. In /lib/systemd/system/hostpas.service add :

    ExecStartPre=/sbin/ip link set wlan0 up

    As shown here :

    Network3

  9. Save and exit

  10. Enable Access Point

    $>systemctl enable hostapd

    And reboot

    $>reboot
  11. Now you can connect to the access point using the SSID and the password you set up. If not troubleshoot

Change screen parameters

Make the screen in portrait mode :

  1. In /etc/xdg/weston/weston.ini

    Remove the lines

    transform=270
    #LTDC connector [output] name=DPI-1 mode=preferred

    Add the following line in DSI connector part after “mode=preferred”

    transform=0
  2. To change the background, in the same file change the line

    background-image=<PATH>

    With the path of your wanted background (screen size 480x800px)

Compile and Launch ACDSoft

  1. In the home repository

    $> make help

And follow instructions !

  1. Launch on the MP1

    $> make all TARGET=mp1
  2. Connect your PC to the wifi network generated by the MP1

  3. Send the binary

    $> scp bin/ACDSoft root@192.168.72.1:
  4. Connect to the MP1 and launch it

    $> ssh root@192.168.72.1
    $> ./ACDSoft

NirvanApp Install (Android app)

  1. Launch Android Studio
  2. Open the Android project File > Open > NirvanApp (the folder)
  3. Branch the Android phone to your PC in debug mode with file transfer activated
  4. Launch the transfer of the app by hiting Run (or Maj+F10)
  5. Launch NirvanApp on the phone

About

Student embedded system project (ProSE) Team A1 2023

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors