SEND AND RECEIVE STRINGS - APP INVENTOR x BC118

I am trying to develop a app using app inventor. App inventor has a extension (library) dedicated to BLE. My app (mobile- android) .

My App, do the scan, detect the BC118 development kit and connected to it and aldo send a string . I can see the string being received at BC118 (The BC118 development kit is conected in my computer - COM8 and I am monitoring it using a terminal app - Putty).

Now I want to do the reverse, I want to send a text from the terminal (BC118) to my App (mobile). I apply the command SND “String” on my terminal (Putty app), It appears the msg OK, but nothing is received on my App (Mobile).

Does it have a special command for it?
Do I need to send others command before send the SND ?

Thanks,

Rubens Araujo

Rubens,

What firmware are you using in your unit? Do you see the unsolicited responses with regards a connection coming through? below is an example of a basic connection.

rst
Melody Smart v3.7.4

BlueCreation Copyright 2012 - 2015

www.bluecreation.com

READY

CON=OK 56C5F6878B80 1	//Phone connected to unit

CONP=0027 0000 07D0

DCN=CF

CON=OK 56C5F6878B80 1

CONP=0027 0000 07D0

CONP=0010 0000 04E2

CONP=0006 0000 07D0

CONP=0010 0000 04E2

CONP=0027 0000 07D0

DCFG=NOT

RCV=abc		//Send data from phone app to BC118

snd 123		//Sent data from BC118 to phone app
OK

Regards

Matt

Bellow is what shows in my terminal:

rst
Melody Smart v3.7.4
BlueCreation Copyright 2012 - 2015
www.bluecreation.com
READY
CON=OK 2ACA524633CA 1
CONP=000F 0000 0500

RCV=This is a message…

My app is connecting and sending a string (example above ), now I want to type a string in the terminal and show this string in my app.

I want to know if there is an special command do do it.

Rubens Araujo

Rubens,

There is no reason I can see why you would not just be able to use the ‘snd 1234’ command to send data from this point.

Can you send the below to the unit

rtr
lbd
wrt
rst

To get it to a known good state, also make sure you delete all signs of it from the lists within your phone.

Regards

Matt

All commands worked well.

What do you mean " delete all signs of it from the lists within your phone" ???

Rubens

Matt,

All commands worked well. ( rtr,lbd,wrt and rst)

What do you mean " delete all signs of it from the lists within your phone" ???

Rubens

Rubens,

I mean go into your phone BT setting and delete any pairing that there may be there to ensure any pairing that occurs happens with clean addresses, etc.

Regards

Matt