Set Up Bluetooth (rfcomm) as a virtual serial port (dev/tty0)
I have a bluetooth device that is discoverable through the command "hcitool scan". Its protocol discriptor is "RFCOMM". I can bind the device to the port rfcomm0 through the command "sudo rfcomm bind dev/rfcomm0 PORT NUMBER 1".
However, the program I am interfacing with requires that the port the bluetooth is connected to is dev/ttyUSB0. How can I bind my device to the port dev/ttyUSB0 or rename dev/rfcomm0 to dev/ttyUSB0.
I can't change the program requirements for the program I am interfacing with - so my bluetooth device has to be bound to the dev/ttyUSB0 port.
Also, my device cannot enter a PIN number - it is a simple EMG and all I can do with it is turn it on and off, there is no way to interface with it.
usb bluetooth virtual bind serial-port
add a comment |
I have a bluetooth device that is discoverable through the command "hcitool scan". Its protocol discriptor is "RFCOMM". I can bind the device to the port rfcomm0 through the command "sudo rfcomm bind dev/rfcomm0 PORT NUMBER 1".
However, the program I am interfacing with requires that the port the bluetooth is connected to is dev/ttyUSB0. How can I bind my device to the port dev/ttyUSB0 or rename dev/rfcomm0 to dev/ttyUSB0.
I can't change the program requirements for the program I am interfacing with - so my bluetooth device has to be bound to the dev/ttyUSB0 port.
Also, my device cannot enter a PIN number - it is a simple EMG and all I can do with it is turn it on and off, there is no way to interface with it.
usb bluetooth virtual bind serial-port
add a comment |
I have a bluetooth device that is discoverable through the command "hcitool scan". Its protocol discriptor is "RFCOMM". I can bind the device to the port rfcomm0 through the command "sudo rfcomm bind dev/rfcomm0 PORT NUMBER 1".
However, the program I am interfacing with requires that the port the bluetooth is connected to is dev/ttyUSB0. How can I bind my device to the port dev/ttyUSB0 or rename dev/rfcomm0 to dev/ttyUSB0.
I can't change the program requirements for the program I am interfacing with - so my bluetooth device has to be bound to the dev/ttyUSB0 port.
Also, my device cannot enter a PIN number - it is a simple EMG and all I can do with it is turn it on and off, there is no way to interface with it.
usb bluetooth virtual bind serial-port
I have a bluetooth device that is discoverable through the command "hcitool scan". Its protocol discriptor is "RFCOMM". I can bind the device to the port rfcomm0 through the command "sudo rfcomm bind dev/rfcomm0 PORT NUMBER 1".
However, the program I am interfacing with requires that the port the bluetooth is connected to is dev/ttyUSB0. How can I bind my device to the port dev/ttyUSB0 or rename dev/rfcomm0 to dev/ttyUSB0.
I can't change the program requirements for the program I am interfacing with - so my bluetooth device has to be bound to the dev/ttyUSB0 port.
Also, my device cannot enter a PIN number - it is a simple EMG and all I can do with it is turn it on and off, there is no way to interface with it.
usb bluetooth virtual bind serial-port
usb bluetooth virtual bind serial-port
asked Nov 2 '15 at 21:59
alittletouchedalittletouched
112
112
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
It is simple to bind rfcomm0 to ttyUSB0. The command is
sudo ln -s /dev/rfcomm0 /dev/ttyUSB0
But it is advicible to not to use ttyUSB0 as it was commonly used, you can go with some generic names like ttyS99.
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "89"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f693147%2fset-up-bluetooth-rfcomm-as-a-virtual-serial-port-dev-tty0%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
It is simple to bind rfcomm0 to ttyUSB0. The command is
sudo ln -s /dev/rfcomm0 /dev/ttyUSB0
But it is advicible to not to use ttyUSB0 as it was commonly used, you can go with some generic names like ttyS99.
add a comment |
It is simple to bind rfcomm0 to ttyUSB0. The command is
sudo ln -s /dev/rfcomm0 /dev/ttyUSB0
But it is advicible to not to use ttyUSB0 as it was commonly used, you can go with some generic names like ttyS99.
add a comment |
It is simple to bind rfcomm0 to ttyUSB0. The command is
sudo ln -s /dev/rfcomm0 /dev/ttyUSB0
But it is advicible to not to use ttyUSB0 as it was commonly used, you can go with some generic names like ttyS99.
It is simple to bind rfcomm0 to ttyUSB0. The command is
sudo ln -s /dev/rfcomm0 /dev/ttyUSB0
But it is advicible to not to use ttyUSB0 as it was commonly used, you can go with some generic names like ttyS99.
answered Nov 26 '15 at 5:20
ShameerariffShameerariff
3441211
3441211
add a comment |
add a comment |
Thanks for contributing an answer to Ask Ubuntu!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f693147%2fset-up-bluetooth-rfcomm-as-a-virtual-serial-port-dev-tty0%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown