Pradeep process

Discussion in 'UDOO NEO' started by Gorgo, Jan 17, 2017.

  1. Gorgo

    Gorgo UDOOer

    Joined:
    Nov 9, 2016
    Messages:
    159
    Likes Received:
    17
    Hi guys.
    What is 'pradeep' process?
    Is it normal that it often takes 90/100% CPU?
     
  2. Andrea Rovai

    Andrea Rovai Well-Known Member

    Joined:
    Oct 27, 2014
    Messages:
    1,703
    Likes Received:
    240
    What OS are you using? What version of the OS? "Pradeep" should be related to MCC driver, but this problem should have been solved. So, can you describe your problem?
     
  3. Gorgo

    Gorgo UDOOer

    Joined:
    Nov 9, 2016
    Messages:
    159
    Likes Received:
    17
    I'm pretty sure I'm using UDOObuntu 2.1.1.
    Should I apt-get upgrade it?

    At the moment uname is:
    Linux whisky 3.14.56-g801c066-dirty #2 SMP PREEMPT Sat Nov 26 17:36:54 CET 2016 armv7l armv7l armv7l GNU/Linux

    udooer@whisky:~/script$ lsb_release -a
    No LSB modules are available.
    Distributor ID: Ubuntu
    Description: Ubuntu 14.04.5 LTS
    Release: 14.04
    Codename: trusty

    I've a running sketch that writes sometimes to the serial port and a python script that reads. I can send the sketch to you if you need it.


    This is the current top screen:
    Schermata del 2017-01-17 16:54:33.png
     
  4. Gorgo

    Gorgo UDOOer

    Joined:
    Nov 9, 2016
    Messages:
    159
    Likes Received:
    17
    Updated to: 3.14.56-udooneo-02045-g45a88ad #6

    pradeep's still using 85% of CPU
     
  5. waltervl

    waltervl UDOOer

    Joined:
    Dec 12, 2015
    Messages:
    2,314
    Likes Received:
    580
    I see the same process in my top list if I start minicom or Arduino IDE monitor on /dev/ttyMCC. If I close it, it disapears from my top list again.
    So it seems serial device related. It indeed can take a lot of CPU!

    Edit:
    cat /etc/issue
    I get "Udoobuntu v2.1"
     
    Last edited: Jan 17, 2017
  6. Gorgo

    Gorgo UDOOer

    Joined:
    Nov 9, 2016
    Messages:
    159
    Likes Received:
    17
    In my case it's due to my python reader script that uses:
    Code:
    ardu = serial.Serial(port='/dev/ttyMCC', baudrate=115200)
    while True:
            try:
                in_values = ardu.readline()[:-2]          
                if not in_values: #linebreak case
                    continue
                print "<< in_values: " + in_values #debug purposes
    
    and reads what the sketch is writing to the serial port
    Code:
    Serial.begin(LINUXSERIAL_BAUDRATE);
    In /etc/issue I've "Udoobuntu v2.1" too but I think they didn't edit it.

    What worries me most is the waste of battery. In 18h It took 11500mAh :/
    If It's not gonna be fixed soon I have to drop Udoo for my project :( With a normal battery It won't last not even a day.
     
    Last edited: Jan 24, 2017
  7. Gorgo

    Gorgo UDOOer

    Joined:
    Nov 9, 2016
    Messages:
    159
    Likes Received:
    17
    Update:
    Actually I didn't remember I'm using a github kernel version, the main branch get with:
    Code:
    git clone https://github.com/UDOOboard/linux_kernel
    I HAD to use it because you haven't add yet the UAR6 patch on the kernel (http://www.udoo.org/forum/threads/a9-uart6-and-udoobuntu.3196/page-3) and It's 24th of January now. I rebuild the kernel with the patch.

    However, I tested the same scripts on Udoobuntu 2.1.1 (website image)
    Linux udooneo 3.14.56-udooneo-02046-gacf7670
    and the pradeep bug is still there.

    It's a week without any answers now...
    Plz let us know something
     
    Last edited: Jan 24, 2017
  8. Andrea Rovai

    Andrea Rovai Well-Known Member

    Joined:
    Oct 27, 2014
    Messages:
    1,703
    Likes Received:
    240
    Hi Gorgo,
    @Francesco on GitHub at the page you linked (https://github.com/UDOOboard/linux_kernel/pull/16) says that UART6 works without such patch.
    Also, the patch you are talking about refers to the IMX6Q branch, not the IMX6SX branch
    Quoting:
    Please, if there is something unclear or wrong, please tell us.
     
  9. Gorgo

    Gorgo UDOOer

    Joined:
    Nov 9, 2016
    Messages:
    159
    Likes Received:
    17
    Kernel: Linux udooneo 3.14.56-gacf7670-dirty #13 SMP PREEMPT Tue Feb 7 18:05:50 CET 2017 armv7l armv7l armv7l GNU/Linux
    UDOObuntu v2.1.1

    I've a ublox neo 7 plugged to UDOO Neo Full connected to UART6 (btw in http://www.udoo.org/docs-neo/Hardware_&_Accessories/UART_serial_ports.html please make the uart image zoomable :) ).

    In the device tree tool I added the UART6 on the pins.

    With the "&& !sport->port.flags == UPF_LOW_LATENCY" patch, I can gpsmon the gps sensor and get data.
    I've just tried to comment the patch, recompiled the kernel and I can't gpsmon it anymore. It doesn't detect the gps sensor.
     
  10. Gorgo

    Gorgo UDOOer

    Joined:
    Nov 9, 2016
    Messages:
    159
    Likes Received:
    17
    "UART6 patch" needed on Udoobuntu v.2.1.2 too.
     
    waltervl likes this.

Share This Page