You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
pg 28caa87401 Update README 8 years ago
arm Initial commit 8 years ago
gcc Initial commit 8 years ago
.main.c.swp Initial commit 8 years ago
README.md Update README 8 years ago
app_uart_fifo_mod.c Initial commit 8 years ago
ble_nus.c Initial commit 8 years ago
ble_nus.h Initial commit 8 years ago
main.c Initial commit 8 years ago
note.md Initial commit 8 years ago
uart_conf.h Initial commit 8 years ago

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() )