Asked — Edited

Ez-Board Auto Disconnect

Just wondering, is it possible to shut off the Bluetooth auto disconnect?

I'm going to be running the board as a controller for two servos that will move a distance sensor. This means the board will not be receiving commands constantly as I will need to communicate with the sensor.

If it can't be shut off, is there an option to increase the wait time?

Thanks for any advice!


ARC Pro

Upgrade to ARC Pro

ARC Pro is your gateway to a community of like-minded robot enthusiasts and professionals, all united by a passion for advanced robot programming.

PRO
Synthiam
#1  

can you provide more information to what you are asking please?

#2  

I'm asking about the board auto disconnect over Bluetooth. As I understand it, if no commands are sent to the board for longer then 2 seconds the board auto disconnects from the Bluetooth connection.

Is it possible to extend the time or eliminate it altogether?

Thanks!

PRO
Synthiam
#3  

you may be misunderstanding. The board disconnects if no commands are sent within 2 seconds, correct. However, this only applies to people creating their own communication method. For example, if you were to write your own ARC.

If you are using EZ-SDK or ARC, you do not need to send commands every 2 seconds.

If you wish to disconnect the Bluetooth connection with ARC, use the EZ-Script ControlCommand() "Disconnect" and "Connect"

Also, the examples button in ARC is your friend:) .. There is an example that demonstrates how to connect and disconnect from EZ-Script and speech commands.

#4  

So if I am using the EZ_B.dll in Matlab the auto disconnect should not be a problem?

Thanks!

PRO
Synthiam
#5  

If you are using MatLab, you will need to maintain a 2 second heartbeat to keep a connection alive - otherwise the EZ-B will reset. The Bluetooth can only close if you close the communication port - that can be done with the EZ_B.Disconnect() function.

The EZ-B connection and Bluetooth connection are separate connections. Reference networking models to understand the different layers of communication. The Bluetooth connection acts as a virtual wire. Where the EZ-B connection is the data.

#6  

Ok, I'm guessing from your response that the 2 sec 'heartbeat' is necessary.

Oh well, I think I can work around this.

Thanks!

PRO
Synthiam
#7  

The 2 second heartbeat is necessary to keep a connection active. If you stop sending data for longer than 2 seconds, the EZ-B will reset.

If you stop sending data for longer than two seconds, the EZ-B will reset. If you stop sending data for longer than 2 seconds, the Bluetooth will NOT disconnect.

The heartbeat is necessary to keep a connection active :)

To disconnect from the Bluetooth, you must use the EZ_B.Disconnect() command. Or, you must close the communication port manually.