I just noticed that the instructions for installing the Bluetooth module have been completed and can be found here: http://arcbotics.com/products/sparki/parts/bluetooth-module/
Hi guys. Anybody got an example of how you can use the Bluetooth to communicate with Sparki? I haven’t a clue on this. Thanks.
After successfully setting up, pairing and connecting the bluetooth module to my sparki I attempt to upload a sketch/script. The compile completes successfully, and the upload proceeds and confirms successful completion. However, Sparki doesn’t indicate success with the LED flash, nor the setup/loop function run. Thinking the reset may not have been triggered, I press the reset button on sparki (beside the power switch) and he reboots, but runs the previously loaded script (the one I loaded by USB cable) not the Bluetooth “uploaded” script.
Any thoughts on this?
-
I’m not sure what stuff is supposed to be able to communicate to sparki via bluetooth.
-
I tried to send one-off commands via the serial console too. No effect.
My experience is the same.
It’s my understanding that the Bluetooth module is something you can use instead of the USB cable, but you cannot program any Bluetooth functionality.
Along those lines, my Bluetooth module doesn’t quite fit right. I had to bend the pins a bit in order to allow both the Bluetooth module and LCD to be installed together. Anyone else seeing this?
Hey guys.
Not sure. On the page about the bluetooth module http://arcbotics.com/products/sparki/parts/bluetooth-module/ it says:
[quote]Bluetooth Module
Some Sparkis come with a Bluetooth Module. It is used to communicate wirelessly with your Sparki. While you cannot use it to program Sparki, it is useful for communicating with Sparki via serial commands wirelessly.[/quote]
After that…me know nothing!
Trevor, what are you thinking you want to use to wirelessly communicate with Sparki?
I’m certainly no expert, but I’ve got this working in couple different setups. At there very least, here are some internet search keywords that might help you or others out.
Windows 8 Phone C#:
I used Windows.Networking.Sockets.StreamSocket. For Parameters to ConnectAsync I had to use:
RemoteHostName="ArcBotics"
RemoteServiceName="1"
PC C#:
I used System.IO.Ports.SerialPort. For it’s parameters I hade to use:
PortName = "COM3"; // this will be different on a PC to PC basis.
BaudRate = 9600;
DataBits = 8; // same as dcb.ByteSize?
Parity = Parity.None;
StopBits = StopBits.One;
PC C++:
I used CreateFileA, and GetCommState to set it up. This is pretty old code, I hope it still works. 
HANDLE g_com_handle = NULL;
DCB dcb;
...
g_com_handle = CreateFileA("COM3",
GENERIC_READ | GENERIC_WRITE,
0, // comm devices must be opened w/exclusive-access
NULL, // no security attributes
OPEN_EXISTING, // comm devices must use OPEN_EXISTING
0, // not overlapped I/O
NULL // hTemplate must be NULL for comm devices
);
dcb.DCBlength = sizeof(DCB);
bool success = GetCommState(g_com_handle, &dcb);
if (success)
{
dcb.BaudRate = CBR_9600;
dcb.ByteSize = 8;
dcb.Parity = NOPARITY;
dcb.StopBits = ONESTOPBIT;
success = SetCommState(g_com_handle, &dcb);
}
Woah…lost me there Tri 
This is all new to me, so my bad being not able to understand. No idea what way I’ll be implementing it. Have to learn about it first!
I’ve just used the code that Ingemar supplied here Any Nice New Code?
It’s works great. Really need to get stuck in & start understanding it.