Giter Club home page Giter Club logo

tinycircuits-tinyshield-ble-asd2116's Introduction

TinyCircuits Bluetooth Low Energy (BLE) TinyShield, ASD2116

ASD2116 Rev2

The design files are located under design_files/ for the TinyCircuits ASD2116 Rev 2 PCB. This is a TinyShield board that has a BlueNRG-MS module, local power supply and level shifters to connect between the TinyDuino and BLE mod

Format is in Cadsoft Eagle format - Eagle version 6.3 was used for the original design.

For more information on this, check out the product page at TinyCircuits.com: https://tinycircuits.com/collections/communication/products/bluetooth-low-energy-tinyshield

License

Design by TinyCircuits. All design files are released under the Creative Commons Attribution Share-Alike 3.0 License, see the following link for details: http://creativecommons.org/licenses/by-sa/3.0

All text above must be included in any redistribution or derived design

This project uses designs and concepts developed as part of the Arduino project and the LilyPad project. The TinyCircuits design files themselves (schematics, PCB and libraries) are not directly derived from these works' design files and have been created new, however the concepts and basic architecture behind the TinyDuino and TinyLily products are derived and we thank the hard work of the organizations below for their contributions to open-source hardware:

Original Arduino Uno Design by Team Arduino

LilyPad Arduino Design by Leah Buechley and Sparkfun Electronics

Please support the open-source hardware community

tinycircuits-tinyshield-ble-asd2116's People

Contributors

tinycircuits avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

Forkers

pixlrainbow

tinycircuits-tinyshield-ble-asd2116's Issues

Unsure of how the GAP commands work.

Hi there,
I am currently using two TinyZero with the Bluetooth TinyShield and am trying to establish a connection between both devices.
So far I am trying some of the functions with these parameters, in the example UART.ino :

  1. ret = aci_gap_start_general_discovery_proc(0x4000, 0x4000,0x00,0x00);
  2. ret = aci_gap_create_connection(0x4000, 0x4000, PUBLIC_ADDR, GAP_Peripheral_address, PUBLIC_ADDR, 40, 40, 0, 60, 2000 , 2000);
  3. ret = aci_gap_create_connection(0x4000, 0x4000, PUBLIC_ADDR, GAP_Peripheral_address, PUBLIC_ADDR, 40, 40, 0, 60, 2000 , 2000);

The BLEsetup() function is run, followed by only the aci_loop() in the main loop() function. The above mentioned function calls are put inside a separate function and called in the aci_loop().
I checked the status variable return value and it was FF. Am I supposed to run a specific function first before?

In main.ino file

void loop() {
  aci_loop(); 
}

aci_loop() in UART.ino

void aci_loop() {
  HCI_Process();
  //GAP_Central_Make_Connection();
  GAP_Central_General_Discovery_Procedure();
  GAP_Central_Make_Auto_Connection();
  ble_connection_state = connected;
  if (set_connectable) {
    setConnectable();
    set_connectable = 0;
  }
  if (HCI_Queue_Empty()) {
    //Enter_LP_Sleep_Mode();
  }
}

Functions declared in UART.ino

void GAP_Central_Make_Connection(void )
{
	tBleStatus ret;
	tBDAddr GAP_Peripheral_address = {0xaa, 0x00, 0x00, 0xE1, 0x80, 0x02};
	ret = aci_gap_create_connection(0x4000, 0x4000, PUBLIC_ADDR, GAP_Peripheral_address, PUBLIC_ADDR, 40, 40, 0, 60, 2000 , 2000);
	if (ret != BLE_STATUS_SUCCESS) PRINTF("Failure.\n")
}

void GAP_Central_General_Discovery_Procedure(void)
{
	tBleStatus ret;
	ret = aci_gap_start_general_discovery_proc(0x4000, 0x4000,0x00,0x00);
	if (ret != BLE_STATUS_SUCCESS) PRINTF("Failure.\n")
}

void GAP_Central_Make_Auto_Connection(void) {
	tBleStatus ret;

 uint8_t addr_array[] = {PUBLIC_ADDR,0xaa, 0x00, 0x00, 0xE1, 0x80, 0x02};
	ret = aci_gap_start_auto_conn_establish_proc_IDB05A1(0x4000,0x4000,PUBLIC_ADDR,40,40,0,60,2000,2000,1,addr_array);
  if (ret != BLE_STATUS_SUCCESS) PRINTF("Failure.\n")
}

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.