How to create a simulated a serial device
Clash Royale CLAN TAG#URR8PPP
up vote
0
down vote
favorite
I am writing code for a robot that is too big and too expensive to sit on my desk. And, the ones in house are in heavy demand for many activities (e.g. training service and install personnel, QA, etc) so i cannot simply claim one for my development purposes.
The robots contain a few devices connected to the kiosk computer via rs-232 serial communications. To facilitate my development and avoid taking up too much time on a real robot I'd like to simulate those serial devices.
I have found the mknod
command which lets me create dummy devices and stops the first level of complaints during startup. However, I am noticing that at least one device is expecting DTR = low, but finding DTR = high. So I need to do more than just create my dummy devices.
I have also found tty0tty which may be useful in creating the simulated devices I need, but I am not entirely sure.
I am continuing to do more research but thought I would ask if anyone else has done something like this and is willing to share their experience!
My basic requirements are that the simulator read commands coming for teh robot and return expected replies.
debian serial-port
New contributor
add a comment |Â
up vote
0
down vote
favorite
I am writing code for a robot that is too big and too expensive to sit on my desk. And, the ones in house are in heavy demand for many activities (e.g. training service and install personnel, QA, etc) so i cannot simply claim one for my development purposes.
The robots contain a few devices connected to the kiosk computer via rs-232 serial communications. To facilitate my development and avoid taking up too much time on a real robot I'd like to simulate those serial devices.
I have found the mknod
command which lets me create dummy devices and stops the first level of complaints during startup. However, I am noticing that at least one device is expecting DTR = low, but finding DTR = high. So I need to do more than just create my dummy devices.
I have also found tty0tty which may be useful in creating the simulated devices I need, but I am not entirely sure.
I am continuing to do more research but thought I would ask if anyone else has done something like this and is willing to share their experience!
My basic requirements are that the simulator read commands coming for teh robot and return expected replies.
debian serial-port
New contributor
add a comment |Â
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I am writing code for a robot that is too big and too expensive to sit on my desk. And, the ones in house are in heavy demand for many activities (e.g. training service and install personnel, QA, etc) so i cannot simply claim one for my development purposes.
The robots contain a few devices connected to the kiosk computer via rs-232 serial communications. To facilitate my development and avoid taking up too much time on a real robot I'd like to simulate those serial devices.
I have found the mknod
command which lets me create dummy devices and stops the first level of complaints during startup. However, I am noticing that at least one device is expecting DTR = low, but finding DTR = high. So I need to do more than just create my dummy devices.
I have also found tty0tty which may be useful in creating the simulated devices I need, but I am not entirely sure.
I am continuing to do more research but thought I would ask if anyone else has done something like this and is willing to share their experience!
My basic requirements are that the simulator read commands coming for teh robot and return expected replies.
debian serial-port
New contributor
I am writing code for a robot that is too big and too expensive to sit on my desk. And, the ones in house are in heavy demand for many activities (e.g. training service and install personnel, QA, etc) so i cannot simply claim one for my development purposes.
The robots contain a few devices connected to the kiosk computer via rs-232 serial communications. To facilitate my development and avoid taking up too much time on a real robot I'd like to simulate those serial devices.
I have found the mknod
command which lets me create dummy devices and stops the first level of complaints during startup. However, I am noticing that at least one device is expecting DTR = low, but finding DTR = high. So I need to do more than just create my dummy devices.
I have also found tty0tty which may be useful in creating the simulated devices I need, but I am not entirely sure.
I am continuing to do more research but thought I would ask if anyone else has done something like this and is willing to share their experience!
My basic requirements are that the simulator read commands coming for teh robot and return expected replies.
debian serial-port
debian serial-port
New contributor
New contributor
New contributor
asked 2 mins ago
cptully
11
11
New contributor
New contributor
add a comment |Â
add a comment |Â
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
cptully is a new contributor. Be nice, and check out our Code of Conduct.
cptully is a new contributor. Be nice, and check out our Code of Conduct.
cptully is a new contributor. Be nice, and check out our Code of Conduct.
cptully is a new contributor. Be nice, and check out our Code of Conduct.
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
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f476127%2fhow-to-create-a-simulated-a-serial-device%23new-answer', 'question_page');
);
Post as a guest
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
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
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