How do you connect PSoC 4 Creator BLE Connections with Android Device?

185 views
Skip to first unread message

Andrew Collins

unread,
Feb 27, 2018, 8:50:46 PM2/27/18
to MIT App Inventor Forum
Hi everybody,

I would like to know how to connect a PSoC 4 BLE device with the Android device using the PSoC Creator software and the MIT App Inventor Software. 

I recently had experience with Android Studio, and I understand that the BLE connection is linked the command of setting up the same exact UUID in order for the two devices to share information.

However, on the MIT App Inventor software, it is a bit different in that there is no UUID that you have to synchronize the two devices with. There is, on the other hand, a BluetoothClient component. I have learned, through various videos, to use this by means of connecting two Android Devices together (one being the client and the other being the server). But for my program, I need the PSoC Device to be the server, and the Android Device to be the client. Although it may sound similar, this is completely different, since the programming of App Inventor entirely contrasts the programming of PSoC Creator. Because of this, I am perplexed of the way how to connect the BLE component to have the PSoC and Android device connected together.

Does anybody know how to accomplish this?

Much appreciated,

Andrew Collins

gerrikoio

unread,
Feb 28, 2018, 4:07:53 AM2/28/18
to mitappinv...@googlegroups.com
Hi Andrew

Yes, I've made a few apps with MIT AI2 and linking these apps to PSoC 4/6 BLE.

To start you need to add the BLE extension. It looks from your post that you are looking at the Bluetooth component.


gerrikoio

unread,
Feb 28, 2018, 4:12:16 AM2/28/18
to MIT App Inventor Forum
Here's a link to the latest BLE release candidate

Andrew Collins

unread,
Feb 28, 2018, 9:06:57 PM2/28/18
to MIT App Inventor Forum
Hey Gerrikoio,

Thanks for the valuable information. However, I downloaded the AIX file from the link you gave me, but when I imported it to the MIT App Inventor, it said "Upload Error". Is this the correct file? If so, what is the problem?

gerrikoio

unread,
Mar 1, 2018, 7:46:10 AM3/1/18
to MIT App Inventor Forum
That is because you do not import an extension. See the extensions option (last item on left side menu).

I strongly advise that you read through the tutorials as shown in the link below to help you get started.

Andrew Collins

unread,
Mar 2, 2018, 7:54:00 PM3/2/18
to MIT App Inventor Forum
Dear Gerrikoio,

Thanks for the tutorials and guides to help me get started on building my app. I have found the following link with the BLE Extension included as an AIX file:

Through this page on the MIT App Inventor, I have successfully imported the extension (despite what you said in your earlier post about not being able to import an extension), and now I can use it for my program.

Through the tutorials you have given me (and others that I found out) I will make the app to connect the PSoC with the Android Device. If I come into any problems in the future I will let you know.

Sincerely,

Andrew Collins

Reply all
Reply to author
Forward
0 new messages