Giter VIP home page Giter VIP logo

uble's Introduction

life is short, use python! ๐Ÿ

uble's People

Contributors

dmazzella avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

uble's Issues

i have a problem with aci_gap_create_connection

I tried to connect 2 BLE devices (server and client). First-time my server and client used STM32L476RG board and it fine, Next time I changed the client to STM32F767ZI but it doesn't work (same code). Do you have a cause of this phenomenon?

image

X-NUCLEO-IDB05A1: ST example

Hi again,
I want to tried the ST example.
So I copy paste your file.py like bluestprotocol.py in the PYBFLASH.
to the same thing as you :

MicroPython v1.8.7 on 2017-03-10; PYBv1.1 with STM32F405RG
Type "help()" for more information.

from bluest_protocol import BlueSTProtocol
Traceback (most recent call last):
File "", line 1, in
File "bluest_protocol.py", line 82
SyntaxError: invalid syntax
and I also tried with the sensor demo I got this :
from sensor_demo import SensorDemo
ble = SensorDemo()
ble.run()
Traceback (most recent call last):
File "", line 1, in
File "sensor_demo.py", line 117, in run
File "bluetooth_low_energy/modules/base_hci.py", line 100, in run
File "bluetooth_low_energy/modules/base_hci.py", line 98, in run
File "bluetooth_low_energy/modules/base_hci.py", line 93, in run
File "sensor_demo.py", line 126, in start
AttributeError: 'NoneType' object has no attribute 'struct'

thank you in advance

Download micropython with uble

Hey, I tried to flash my pyboard but my computer can't see the pyboard. Maybe I did something wrong when I compile the new firmware.
1- I download your project and copy the folder Bluetooth_low_energy into micropython-lib. (Still in your project)
2- then I copy micropython-lib into the project micropython. The path is micropython_master/stmhal/ uble/micropython-lib
3- I did a make "make FROZEN_MPY_DIR="~/uble/micropython-lib"
4- and finally I did a dfu.
Can you tell me if I did something wrong ???

Thank you in advance

Framing error

Apologies, this is not an issue with your library

I am writing an application the STM32 B-L475E-IOT01A discovery board that uses the SPBTLE-RF BlueNRG chip as well.

I have been dealing with the following issue for a few days now. If you ever encountered a similar issue, I am wondering what you did to fix it.

The Issue:

I am having trouble interfacing with the B-L475E-IOT01A's on-board SPBTLE-RF bluetooth chip.

I am able to send header packets inquiring about the the bluetooth chip's write and read buffers. I have confirmed that I am doing this correctly, because I get responses in the correct format: 0x02 0x?? 0x00 0x?? 0x00. The ?? bytes always give me the correct number of available writable bytes and bytes to be read, respectively.

I am also able to read messages from the bluetooth chip, as I always receive the expected packet when I perform a chip reset: 0x04 0xff 0x03 0x01 0x00 0x01, and after sending an HCI command packet I am able to poll for and read the responses described below.

The issue that I am having is that, whenever I check that the write buffer is available and attempt to send a full write message such as ...

header = 0x0A 0x00 0x00 0x00 0x00 (check write buffer... only sends rest of message if write buffer > 0)
HCI command packet = 0x1003 (example: Read_Local_Supported_Features)
param total length = 0x00 (i have also tried not including this byte at all and raising the chip select one byte sooner instead)
params: none

... I always receive the same HCI event packet in response, no matter the contents of my HCI command packet's body:

response: 0x04 0x10 0x01 0x00

This implies that I am having a hardware framing error with my SPI, and I have no idea what may be causing that. As I just described, the rest of the processes work fine, so the SPI bus seems to be functional in most cases.

Note: My send an receive methods are almost identical in structure to yours

If you can offer me any advice, I would appreciate it immensely. Otherwise, thank you for the awesome library!

Can this library support nucleo l476rg

firstly, I wanna tell you that this is an awesome library. But this library can support another Micropython board, for example, Nucleo L476rg? or support Stm32F405 only?

Nice!

Cute project! I worked on a similar project (for big Python) for 2 weeks in December 2013 - straight before Damien released source for MicroPython, when my project went into indefinite backlog... Would be interesting to see if I could use your code or not...

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.