mirror of
https://github.com/apache/nuttx.git
synced 2026-05-31 05:55:46 +08:00
sim: add "nimble" config, to test nimBLE on top of bthcisock
This commit is contained in:
@@ -692,6 +692,39 @@ nettest
|
|||||||
"target" (CONFIG_EXAMPLES_NETTEST_*) or edit up_wpcap.c to select the IP
|
"target" (CONFIG_EXAMPLES_NETTEST_*) or edit up_wpcap.c to select the IP
|
||||||
address that you want to use.
|
address that you want to use.
|
||||||
|
|
||||||
|
nimble
|
||||||
|
|
||||||
|
This is similar to bthcisock configuration, which uses the exposes the real
|
||||||
|
BLE stack to NuttX, but disables NuttX's own BLE stack and uses nimBLE stack
|
||||||
|
instead (built in userspace).
|
||||||
|
|
||||||
|
This configuration can be tested by running nimBLE example application "nimble"
|
||||||
|
as follows:
|
||||||
|
|
||||||
|
$ sudo setcap 'cap_net_raw,cap_net_admin=eip' nuttx
|
||||||
|
$ ./nuttx
|
||||||
|
NuttShell (NSH) NuttX-9.1.0
|
||||||
|
nsh> ifup bnep0
|
||||||
|
ifup bnep0...OK
|
||||||
|
nsh> nimble
|
||||||
|
hci init
|
||||||
|
port init
|
||||||
|
gap init
|
||||||
|
gatt init
|
||||||
|
ans init
|
||||||
|
ias init
|
||||||
|
lls init
|
||||||
|
tps init
|
||||||
|
hci_sock task init
|
||||||
|
ble_host task init
|
||||||
|
hci sock task
|
||||||
|
host task
|
||||||
|
advertise
|
||||||
|
|
||||||
|
At this point you should be able to detect a "nimble" BLE device when scanning
|
||||||
|
for BLE devices. You can use nRFConnect Android application from Nordic to connect
|
||||||
|
and inspect exposed GATT services.
|
||||||
|
|
||||||
nsh
|
nsh
|
||||||
|
|
||||||
Configures to use the NuttShell at apps/examples/nsh.
|
Configures to use the NuttShell at apps/examples/nsh.
|
||||||
|
|||||||
@@ -0,0 +1,80 @@
|
|||||||
|
#
|
||||||
|
# This file is autogenerated: PLEASE DO NOT EDIT IT.
|
||||||
|
#
|
||||||
|
# You can use "make menuconfig" to make any modifications to the installed .config file.
|
||||||
|
# You can then do "make savedefconfig" to generate a new defconfig file that includes your
|
||||||
|
# modifications.
|
||||||
|
#
|
||||||
|
# CONFIG_NET_ETHERNET is not set
|
||||||
|
# CONFIG_NET_IPv4 is not set
|
||||||
|
# CONFIG_NSH_CMDOPT_HEXDUMP is not set
|
||||||
|
# CONFIG_WIRELESS_BLUETOOTH_HOST is not set
|
||||||
|
CONFIG_ARCH="sim"
|
||||||
|
CONFIG_ARCH_BOARD="sim"
|
||||||
|
CONFIG_ARCH_BOARD_SIM=y
|
||||||
|
CONFIG_ARCH_CHIP="sim"
|
||||||
|
CONFIG_ARCH_SIM=y
|
||||||
|
CONFIG_BLUETOOTH_MAX_CONN=2
|
||||||
|
CONFIG_BLUETOOTH_MAX_PAIRED=2
|
||||||
|
CONFIG_BLUETOOTH_SMP_SELFTEST=y
|
||||||
|
CONFIG_BOARDCTL_POWEROFF=y
|
||||||
|
CONFIG_BOARD_LOOPSPERMSEC=0
|
||||||
|
CONFIG_BOOT_RUNFROMEXTSRAM=y
|
||||||
|
CONFIG_BUILTIN=y
|
||||||
|
CONFIG_CLOCK_MONOTONIC=y
|
||||||
|
CONFIG_DEBUG_SYMBOLS=y
|
||||||
|
CONFIG_DEV_LOOP=y
|
||||||
|
CONFIG_DEV_ZERO=y
|
||||||
|
CONFIG_DRIVERS_BLUETOOTH=y
|
||||||
|
CONFIG_DRIVERS_WIRELESS=y
|
||||||
|
CONFIG_EXAMPLES_HELLO=y
|
||||||
|
CONFIG_FAT_LCNAMES=y
|
||||||
|
CONFIG_FAT_LFN=y
|
||||||
|
CONFIG_FSUTILS_PASSWD=y
|
||||||
|
CONFIG_FSUTILS_PASSWD_READONLY=y
|
||||||
|
CONFIG_FS_FAT=y
|
||||||
|
CONFIG_FS_PROCFS=y
|
||||||
|
CONFIG_FS_ROMFS=y
|
||||||
|
CONFIG_IDLETHREAD_STACKSIZE=4096
|
||||||
|
CONFIG_LIBC_EXECFUNCS=y
|
||||||
|
CONFIG_LIB_ENVPATH=y
|
||||||
|
CONFIG_LIB_HOSTNAME="NuttX-SIM"
|
||||||
|
CONFIG_MAX_TASKS=64
|
||||||
|
CONFIG_NET=y
|
||||||
|
CONFIG_NETDEVICES=y
|
||||||
|
CONFIG_NETDEV_LATEINIT=y
|
||||||
|
CONFIG_NETDEV_WIRELESS_IOCTL=y
|
||||||
|
CONFIG_NETINIT_NETLOCAL=y
|
||||||
|
CONFIG_NET_BLUETOOTH=y
|
||||||
|
CONFIG_NET_STATISTICS=y
|
||||||
|
CONFIG_NFILE_DESCRIPTORS=32
|
||||||
|
CONFIG_NIMBLE=y
|
||||||
|
CONFIG_NSH_ARCHINIT=y
|
||||||
|
CONFIG_NSH_ARCHROMFS=y
|
||||||
|
CONFIG_NSH_BUILTIN_APPS=y
|
||||||
|
CONFIG_NSH_FATDEVNO=2
|
||||||
|
CONFIG_NSH_FILE_APPS=y
|
||||||
|
CONFIG_NSH_READLINE=y
|
||||||
|
CONFIG_NSH_ROMFSDEVNO=1
|
||||||
|
CONFIG_NSH_ROMFSETC=y
|
||||||
|
CONFIG_PATH_INITIAL="/bin"
|
||||||
|
CONFIG_POSIX_SPAWN_PROXY_STACKSIZE=2048
|
||||||
|
CONFIG_PREALLOC_MQ_MSGS=64
|
||||||
|
CONFIG_PTHREAD_MUTEX_TYPES=y
|
||||||
|
CONFIG_READLINE_TABCOMPLETION=y
|
||||||
|
CONFIG_RR_INTERVAL=200
|
||||||
|
CONFIG_SCHED_HAVE_PARENT=y
|
||||||
|
CONFIG_SCHED_ONEXIT=y
|
||||||
|
CONFIG_SCHED_WAITPID=y
|
||||||
|
CONFIG_SDCLONE_DISABLE=y
|
||||||
|
CONFIG_SIG_DEFAULT=y
|
||||||
|
CONFIG_SIG_EVTHREAD=y
|
||||||
|
CONFIG_SIG_PIPE=11
|
||||||
|
CONFIG_SIM_HCISOCKET=y
|
||||||
|
CONFIG_START_DAY=3
|
||||||
|
CONFIG_START_MONTH=4
|
||||||
|
CONFIG_SYSTEM_NSH=y
|
||||||
|
CONFIG_USERMAIN_STACKSIZE=4096
|
||||||
|
CONFIG_USER_ENTRYPOINT="nsh_main"
|
||||||
|
CONFIG_WIRELESS=y
|
||||||
|
CONFIG_WIRELESS_BLUETOOTH=y
|
||||||
Reference in New Issue
Block a user