Arduino <> Raspberry via bluetooth

Hello everybody,

I'm trying for my first project to make a communication between arduino and raspberry pi via bluetooth.
I have a bluetooth dongle plugged into my raspberry; reconized and paired with the arduino (which have the JY-MCU bluetooth module).
When i do the command screen on /dev/rfcomm0 in raspberry, I can see what arduino sends via bluetooth to my raspberry so… good to this point.

• The big question is : can I read same serial port (i.e : rfcomm0) with two differents applications or command at the same time : for example : follow the screen command AND (read/send) from a PHP application of my own in this rfcomm serial port ? (using php_serial_class). At this point no return from PHP app (can't find serial port).
• Another question : how to quit screen command ? (man says ctrl+a) but does not work for me. misunderstood the manual ?
• Another other question : do I have to set 2 differents virual serial port ? One for receiving , one for transmitting

Thanks for answers to my dummy questions !
Extrablind

Did you have an Arduino question?

How do an arduino is making a communication with a computer isn't an arduino question ?
quote : "Another other question : do I have to set 2 differents virual serial port ? One for receiving , one for transmitting"
Maybe i'm wrong…

Thanks anyway.

• The big question is : can I read same serial port (i.e : rfcomm0) with two differents applications or command at the same time : for example : follow the screen command AND (read/send) from a PHP application of my own in this rfcomm serial port ? (using php_serial_class). At this point no return from PHP app (can't find serial port).

Are you intending to execute these functions on the Arduino? If not, then this is not an Arduino question.

• Another question : how to quit screen command ? (man says ctrl+a) but does not work for me. misunderstood the manual ?

I'm not familiar with the screen command on the Arduino. Do you have a reference? I didn't think so.

• Another other question : do I have to set 2 differents virual serial port ? One for receiving , one for transmitting

Not on the Arduino. Serial communication is bidirectional.