Přejít na soubor
pg 28caa87401 Update README 2015-11-28 19:34:28 +01:00
arm Initial commit 2015-11-28 19:30:17 +01:00
gcc Initial commit 2015-11-28 19:30:17 +01:00
.main.c.swp Initial commit 2015-11-28 19:30:17 +01:00
README.md Update README 2015-11-28 19:34:28 +01:00
app_uart_fifo_mod.c Initial commit 2015-11-28 19:30:17 +01:00
ble_nus.c Initial commit 2015-11-28 19:30:17 +01:00
ble_nus.h Initial commit 2015-11-28 19:30:17 +01:00
main.c Initial commit 2015-11-28 19:30:17 +01:00
note.md Initial commit 2015-11-28 19:30:17 +01:00
uart_conf.h Initial commit 2015-11-28 19:30:17 +01:00

README.md

ble_app_uart-example

This project contains code examples that show nrf51 UART functionality with the app_uart library. Instructions on how to operate the example is given at the top of the main file in the example.

Requirements

To compile it, clone the repository in the \nrf51822\Board\nrf6310\S110\ folder.

Build and run

  • Compile
cd gcc && make
  • Flashing nrf firmaware on OSX 10.8
sudo mount -u -w -o sync /Volumes/MBED
srec_cat  /Users/pg/code/blenano/s110_nrf51822_7.3.0_softdevice.hex -intel _build/ble_app_uart_s110_xxaa.hex -intel -o _build/uart.hex -intel --line-length=44
cp -X _build/uart.hex /Volumes/MBED/
sudo rm  /Library/Preferences/com.apple.Bluetooth.plist
pkill bluez
  • Run python script and monitor serial port
python python/test.py

import sys
import serial
s=serial.Serial("/dev/tty.usbmodem1412")
while True : sys.stdout.write( s.read() )