petoi-camp-logo.png
Chinese
ZH
Chinese
ZH
English
EN
  • 主页

  • 论坛

  • Shop

  • 简介

  • 图鉴

  • 资源

    • Documentation Center
    • GitHub 源代码
    • 教程视频
    • NyBoard V0_1 手册
    • NyBoard V0_2 手册
    • Smartphone App
    • GitHub/CatMini
  • 社区

    • 成员
  • More

    Use tab to navigate through the menu items.
    Hanna Ovr
    8月02日

    Pest Control Software

    2
    0
    Rafael Marín
    3d

    Error moving joints simultaneously in Mobile app

    5
    0
    Tomi Ade
    6d

    Trouble Uploading to Nyboard - stk500_recv(): programmer is not responding

    3
    0
    若要查看作用方式,請前往您的即時網站。
    • 類別
    • 所有文章
    • 我的文章
    Struzck
    2021年5月02日

    Problem sending commands through WiFi

    在 General Discussions

    Hello, I have been testing the WiFi dongle by sending commands and I found that after sending several of them Bittle gets blocked and won't listen to any other command I send, being necessary to reboot it.

    When this occurs, gyroscope seems to be disabled and using the IR controller won't work neither.


    It also gives me the impression there is a command buffer and sometimes, when rebooting, all those commands that I have tried to send were stored and now are sent all at once to Bittle, causing it to have a weird posture.

    This is what I did the last time it happened to me:

    • Turn on Bittle

    • Wait for 30 seconds

    • Send Sit command

    • Send Balance command

    • Send Forward command <-- not working anymore



    Has this happened to anyone else?

    8 則留言
    0
    8 則留言
    R
    Rongzhong Li
    2021年5月04日

    There's a serial parser section in Bittle's Arduino code. Maybe it's stuck by some broken packets? Maybe I should add some validation logic in the parser.

    按讚
    S
    Struzck
    2021年5月04日
    回覆

    Alright, I think I found something, unfortunately, my knowledge at this low level programming is very limited and don't know how to proceed.


    What I did was try to print Serial data to check where was the problem on Bittle's side (as WiFi dongle sends commands through serial correctly so far). I added the following prints:


    So I did the following:

    • Connect the WiFi dongle to USB programmer

    • Connect the USB programmer to Bittle

    • Turn on Bittle


    And I got this:

    It seems that Bittle is reading a wrong value through Serial communication. This value is taken as a skill and seems to block Bittle.


    After this, if I send commands through he API, nothing is shown on Serial monitor.


    I think I can't make any more progress by myself as I don't know what this 240 value means and how to prevent it correctly.


    PS: I tried this twice and got the same result.



    按讚

    S
    Struzck
    2021年5月02日

    I was going to start debugging to try to fix (or at least identify) what is wrong, but I found my Bittle isn't receiving/processing commands (through wifi) anymore.


    This is shown when I boot up Bittle:



    Then I tried to send some commands (as you can see, the rest api website is up and can receive commands):




    Notice how Bittle behaves when I turn it upside down (its left leg wont end in the correct position):



    This is what was shown in Serial monitor:




    I don't know if what I posted can help you to identify what could be causing the problem

    按讚
    S
    Struzck
    2021年5月03日
    回覆

    Alright, so the problem that caused serial monitor to show those weird characters was a wrong baud rate (it should be 115200)

    按讚

    R
    Rongzhong Li