logo

Could not compile stylesheet for simplistic. Using last compiled stylesheet.
0
Dear ISEE Community.

How is the way to configure the COM Module to accept some incoming connections to send/receive bytes or files throw the channel created, as if it were a mobile phone? Which is the protocol used to change data between the COM Module and other device?
Responses (3)
  • Accepted Answer

    Thursday, June 26 2014, 09:24 AM - #permalink
    0
    Hi,

    Refer to Bluez documentation to get more information
    The reply is currently minimized Show
  • Accepted Answer

    Thursday, August 07 2014, 10:06 AM - #permalink
    0
    Dear ISEE Community:

    After configure all the commands to switch on the Bluetooth, I'm able to put it discoverable but I can't connect with it. After load the kernel modules I put on the linux shell ONLY this commands:

    hciattach -s 115200 /dev/ttyO1 bcsp 115200 noflow
    hciconfig hci0 up
    hciconfig hci0 piscan
    hciconfig -a hci0

    as I've understood, with the hciattach command I connect the Bluetooth with the serial port to try to communicate with it.

    Additionally, I use this configuration files for the bluetooth in /etc/bluetooth/ directory:


    hcid.conf

    This file it doesn't appear in the directories and I added it because in the examples I searched in google, they use it for the configuration, but I don't know if the Bluetooth in this board uses it.

    #HCI daemon configuration file.
    options 
    {
            autoinit yes;
            security user;
            pairing multi;
    	pin_helper "/etc/bluetooth/pin"
    }
    
    device 
    {
            name "CSR - bc4";
            class 0x000000;
            pkt_type DM1 DM3 DM5 DH1 DH3 DH5 HV1 HV2 HV3;
            iscan enable; 
    	pscan enable;
            lm master;
            lp hold,sniff,park,rswitch;
            auth enable;
            encrypt enable;
    }




    rfcomm.conf


    # RFCOMM configuration file.
    
    rfcomm0
    {
    	# Automatically bind the device at startup
    	bind yes;
    
    	# Bluetooth address of the device
    	device 00:02:5B:00:5A:5A;
    
    	# RFCOMM channel for the connection
    	channel	1;
    
    	# Description of the connection
    	comment "Example Bluetooth device";
    }




    pin


    PIN:111111




    But when I try to connect with my Android to the board I'm not able to set it up.
    Besides that, my intention is to put the bluetooth listening for incoming connections, to accept data from Android devices. Which is the command to establish it? Do I have to change something from the configuration files?
    The reply is currently minimized Show
  • Accepted Answer

    maathor
    maathor
    Offline
    Tuesday, September 09 2014, 01:30 PM - #permalink
    0
    I work on it, and I use a solution that works, but I thing I could do something better ...

    you can see a snippet of my bash script in an answer here
    I made a system V script launched at the init, to be connected with my android at the init
    The reply is currently minimized Show
Your Reply

SUPPORT


This email address is being protected from spambots. You need JavaScript enabled to view it.
This email address is being protected from spambots. You need JavaScript enabled to view it.
IGEP Community Wiki
IGEP Community Forum
IGEP Community Online Chat