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.
    Tomi Ade
    1 ngày trước

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

    3
    0
    Phillip Brush
    4 ngày trước

    On Definition Rule Issues

    4
    0
    Struzck
    2021年4月28日

    pyBittle, Open Source library to connect and control Bittle

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

    Connecting to Bittle through WiFi?

    在 General Discussions

    Hello, I'm trying to connect to Bittle using the included WiFi adapter but I'm facing some difficulties.

    First, of all, I have no previous knowledge about connecting to these kind of devices; I'm making assumptions about how it works.


    From what I've seen, the WiFi adapter uses a ESP-WROOM-02D module, that is based on ESP8266.

    It seems to be working as a Soft Access Point, so, in order to control Bittle:

    · I have to connect to the WiFi Network that appears as ESP-XXXXXX when I turn on Bittle.

    · To control Bittle, I have to send the commands to the ESP8266 module, which will comunicate through serial connection with Bittle (am I right?).


    Once I connect to "Bittle's network", it starts making some noises periodically. At this point is where I don't know how to proceed.

    I have checked that I have connection to Bittle's ip (ok).

    I have tried to access to Bittle's ip from a web browser, but it shows ERR_CONNECTION_REFUSED.

    FYI: When I try to use the IR remote controller, Bittle beeps several times quickly but doesn't react.


    What should I do next in order to send commands (e.g. 'kbalance') and receive Bittle's response? (I'm planning to send the commands using python, but any kind of guidance will be appreciated).


    50 則答覆0 則回覆
    0
    50 則留言
    John Winiger
    2021年4月20日
    最佳解答

    Router FIX!


    I had mentioned that for my ASUS router I had to set WIFI mode to legacy in order fo the ESP8266 to connect. The problem was that I like to use the router's "Smart Connect" feature which just shows 1 SSID for both 2.4 and 5Ghz and the router figures out which to connect the device to. Unfortunately, when this is enabled it changes the WIFI mode to auto and there is not an option to change it.


    The answer, I found if you downgrade the ESP8266 Community in Boards Manager to 2.5.1 it connects with no problem regardless of the router setting. I guess it's not just the IRremote that needs an older version.


    I also noticed that when the WiFi model successfully connects to my router the red light on the board comes on. If the red light does not come on I know the connection has failed and the module reverted back to the defaults the there will be the Bittle-AP showing up in my available wireless network list.


    And yes, I am now able to get to the action page with not problems. But I might want to edit that up a little. :)

    3

    John Winiger
    2021年4月15日

    I want to add that I seem to have found a sweet spot! Watching the serial monitor I could see it would try to join my network and fail. After that it would revert back to the Bittle-AP, at that point I go to my wifi and join it and then open a new web browser page. This brought me back to the wifi manager page! And on the bottom of one of the pages it listed extra command you can use on the end of the URL.

    2

    L
    Len
    2021年3月22日

    The WiFi module is used for programming, not the simple transparent transport bridge through the WiFi and the Serial.

    The English version of the tutorial for the WiFi module is under construction, it will be finished in a few days.

    2
    S
    Struzck
    2021年3月22日
    回覆

    alright, thank you

    按讚

    G
    Gabriele Castaldi
    3月19日

    thanks, I will test it

    1

    G
    Gabriele Castaldi
    3月09日

    @Rongzhong Li I can control Bittle from Webclient through WIFI at my IP address 192.168.88.33 using the control panel. How can I run a script in python run in Ubuntu/Windows through WIFI, for example example.py one that you provide in ardSerial package ? I can run it through RPi wire-connected through serial (RPi-NYBoard), but I cannot figure out how to run the same without RPi and with WIFI adapter plugged into NYBoard. Also I would like to test WIFI from RPi instead of using Ubuntu/Windows.

    1