Giter Club home page Giter Club logo

ble-pydex's Introduction

EdwinFairchild โšก

I am an Electronic Engineer focused on embedded systems and firmware.

Currently working on ๐Ÿ”ญ

  • New content for my blog and my Youtube channel
  • tinyThreads : A basic thread scheduler for embedded systems, RTOS features like mutexes,queues, soft timers etc.
  • BLE-PyDex : Bluetooth GATT Explorer
  • Smart USB Hub with programmable ports

Future projects ๐Ÿค”

  • Open source wireless electronic load and power supply
  • Wireless DapLink debugger

ble-pydex's People

Contributors

edwinfairchild avatar mejia-b avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

jwrepo

ble-pydex's Issues

core dumped when connecting to BLE fit that is in and out of sleep

eddie@adi:~$ pydex
Error: No such file or directory: "BLE_GUI.ui"
Traceback (most recent call last):
  File "modules/ButtonCallbacks.py", line 162, in <lambda>
  File "modules/Slots.py", line 29, in discovered_services
RuntimeError: wrapped C/C++ object of type QTreeWidgetItem has been deleted
Fatal Python error: Aborted

Thread 0x00007fdc4b7fe640 (most recent call first):
  File "logging/__init__.py", line 1581 in findCaller
  File "logging/__init__.py", line 1622 in _log
  File "logging/__init__.py", line 1477 in info
  File "logging/__init__.py", line 2138 in info
  File "modules/BLE_functions.py", line 439 in exploreSerivce
  File "modules/BLE_functions.py", line 484 in bleakLoop
  File "asyncio/events.py", line 80 in _run
  File "asyncio/base_events.py", line 1896 in _run_once
  File "asyncio/base_events.py", line 600 in run_forever
  File "asyncio/base_events.py", line 633 in run_until_complete
  File "asyncio/runners.py", line 44 in run
  File "modules/BLE_functions.py", line 126 in run

Current thread 0x00007fdc8316b000 (most recent call first):
  File "main_app.py", line 140 in <module>

Extension modules: PyQt5.QtCore, PyQt5.QtGui, PyQt5.QtWidgets, PyQt5.QtNetwork, PyQt5.QtQml, PyQt5.QtBluetooth, PyQt5.QtDBus, PyQt5.QtDesigner, PyQt5.QtHelp, PyQt5.QtMultimedia, PyQt5.QtMultimediaWidgets, PyQt5.QtNfc, PyQt5.QtOpenGL, PyQt5.QtPositioning, PyQt5.QtLocation, PyQt5.QtPrintSupport, PyQt5.QtQuick, PyQt5.QtQuick3D, PyQt5.QtQuickWidgets, PyQt5.QtRemoteObjects, PyQt5.QtSensors, PyQt5.QtSerialPort, PyQt5.QtSql, PyQt5.QtSvg, PyQt5.QtTest, PyQt5.QtTextToSpeech, PyQt5.QtWebChannel, PyQt5.QtWebSockets, PyQt5.QtX11Extras, PyQt5.QtXml, PyQt5.QtXmlPatterns, dbus_fast.signature, dbus_fast._private.marshaller, dbus_fast.message, dbus_fast.service, dbus_fast.unpack, dbus_fast.message_bus, dbus_fast._private.unmarshaller, dbus_fast.aio.message_reader, gi._gi (total: 40)
/home/eddie/my-scripts/_pydex.sh: line 2: 34280 Aborted                 (core dumped) ./main_app

PyDex and BLE_otas issue when using internal flash for OTA

Issue

For some reason I have yet to figure out when using BLE_otas with
a smaller MTU (128) I get have to transmit really small packets of 20 bytes
which would take a really long time.

Workaround

You can enable Connection Parameter Updates in dats_main.c of the
BLE_otas project.
settings that I have tested for fast updates are shown below.

/*! configurable parameters for connection parameter update */
static const appUpdateCfg_t datsUpdateCfg = {
    10,
    /*! ^ Connection idle period in ms before attempting
    connection parameter update. set to zero to disable */
    (6), /*! Minimum connection interval in 1.25ms units */
    (9), /*! Maximum connection interval in 1.25ms units */
    0, /*! Connection latency */
    600, /*! Supervision timeout in 10ms units */
    5 /*! Number of update attempts before giving up */
};

Occasional seg fault.

Core dumped sometimes, not sure why. Possible clean up of something is not happening. will look into it.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.