-
-
You Reply: So if in my sketch I write Serial.write("myValue"); then myValue shows up in the dfb1 of the bluno ble service?
-
You Reply: Well, after 2 days of leaving it alone, unplugged in a box, I plugged it in yesterday and all of a sudden it works. I have the 2 services back and I can connect to it.
One last question on this topic, when you say: "dfb1 is for serial communication"
Does that mean whatever I send from Serial.write("this data"); in an arduino sketch, should show up in that service's characteristic?
-
You Reply: Im using BlunoTerminal and BlueCap and LightBlue and the BlunoDemoTest app from github. I have 4 bluno nanos, they all have a dfb1 service which is the module data service and dfb0 which is the custom service. Whenever I connect with any of the other bluno nanos I have I see the module and its 2 services and I can obviously connect to the module and read its characteristics from all those iOS apps.
With this other module, which used to work fine, whenever I Scan for it I can see the module but it only displays 1 service, I cant see it because Im also unable to connect to it. It used to work fine, I dont know what happened to it.
-
You Reply: Hi
Did you ever manage to get this working?
Thanks
-
You Reply: Yes it works with usb but I need to make it work over the serial Bluetooth
-
You Reply: Yes it works with usb but I need to make it work over the serial Bluetooth
-
You Reply: Thanks, but it didnt work. I tried 20, 100 and 200.
-
You Reply: Thanks, but it didnt work. I tried 20, 100 and 200.
-
You Reply: Ok I have made them connect via AT commands on serial. Im not using bluetooth protocol, just serial. And I can send from bluno and raspberry receives it. I just CANNOT send from raspberry and receive in bluno. Can you help me figure out why?
-
You Reply: Ok I have made them connect via AT commands on serial. Im not using bluetooth protocol, just serial. And I can send from bluno and raspberry receives it. I just CANNOT send from raspberry and receive in bluno. Can you help me figure out why?
-
You Reply: Excuse my ignorance but why do you use software serial to communicate? Im trying to communicate between a raspberry pi with an hm10 and a bluno nano but I can't.
-
You Reply: I've followed the link and I've connected the bluno (mine doesn't have at normal switch either) to the usb on my Mac.
I've tried
AT+SETTING=DEFAULT
And
+++
But neither generates any response from the bluno. Please help!?!
-
You Reply: Im trying to send data from an arduino with integrated ble (bluno nano from DFRobot) to a raspberry pi 2 which has an hm10 ble module connected to its serial0 gpio14 and 15 pins.
Im currently using this sketch:
Code: Select allfloat flow = 500.06;
void setup() {
Serial.begin( 9600 );}
void loop() {
if (Serial.available()>0) {
if (Serial.read() == 'R') {
Serial.print(flow)
Serial.write("\n");
}
}
}
and Im using this python to read it:
Code: Select all#! /usr/bin/env python
import serial
from time import sleep
ser = serial.Serial(port='/dev/serial0',parity=serial.PARITY_NONE,
stopbits=serial.STOPBITS_ONE,bytesize=serial.EIGHTBITS,timeout=1)
# Wait to read from Arduino
while 1:
try:
time.sleep(10)
ser.write("R")
myData = ser.readline()
print myData
except KeyboardInterrupt:
exit()
This should make the raspberry send R to the bluno nano after 10 seconds of running the script. But I get blank lines in the raspberry terminal every ten seconds. I guess that is the print myData line, which is coming in blank. The bluno nano bluetooth led light is on, they are connected. What could be happening?
I have confirmed that anything I type into the arduino ide serial monitor shows up in the raspberry pi. But it appears the bluno is not receiving the data sent by the pi. -
You Reply: Is it possible to do all that (discovery, connection, pairing, data sending) from an Arduino sketch?
What commands would I need to send and how?
-
You Reply: Is it possible to do all that (discovery, connection, pairing, data sending) from an Arduino sketch?
What commands would I need to send and how?