How to choice softserial library use on arduino project?Using Arduino Nano as USB HostMultiple SoftwareSerial...

Strange Sign on Lab Door

How to deal with an incendiary email that was recalled

How do you funnel food off a cutting board?

Why publish a research paper when a blog post or a lecture slide can have more citation count than a journal paper?

Why do no American passenger airlines still operate dedicated cargo flights?

Why do members of Congress in committee hearings ask witnesses the same question multiple times?

Can a hotel cancel a confirmed reservation?

Is there any differences between "Gucken" and "Schauen"?

Can I become debt free or should I file for bankruptcy? How do I manage my debt and finances?

How can animals be objects of ethics without being subjects as well?

What is the lore-based reason that the Spectator has the Create Food and Water trait, instead of simply not requiring food and water?

Differentiate between Local and Global Unitaries

What is the wife of a henpecked husband called?

How to choice softserial library use on arduino project?

One Half of Ten; A Riddle

Why zero tolerance on nudity in space?

Why is "points exist" not an axiom in geometry?

Why isn't there a non-conducting core wire for high-frequency coil applications

Can making a creature unable to attack after it has been assigned as an attacker remove it from combat?

Writing a character who is going through a civilizing process without overdoing it?

Why is working on the same position for more than 15 years not a red flag?

Injecting creativity into a cookbook

How to Write Multiple Data Frames in an Excel Sheet

Eww, those bytes are gross



How to choice softserial library use on arduino project?


Using Arduino Nano as USB HostMultiple SoftwareSerial ports - how to handle the limitationsControlling HDMI Switch via RS232/UARTArduino OBD library and software serial libraryWhat's the difference between all the Software Serial Libraries? Which one is Arduino Nano compatible?Using SoftwareSerial library with EnableInterruptis using two UARTs wiser compared to I2C and UART with Arduino + Xbee + BNO055 Sensorusing UART bridge module to have serial communication through usb port of arduino nanoUnable to receive data when using multiple SoftSerial on Arduino NanoSeveral Software Serial Ports













1















I want to do a project that is multiple arduino communication through UART, that project project one of limit is using arduino nano(small and cheap), i need to set 4 serial port instance on nano to connect other nano to receive and write, i searched about serial port of nano that only have one hardware serial port, so after i found the many softserial library such as pre-bulite softserial and altsoftserial NeoSWSerial and NeoHWSerial and NeoICSerial.
Because library too libraries i don't know which one can help complete my project.










share|improve this question







New contributor




Haseo is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





















  • what's wrong with the arduino softwareserial library? in what way does it not work for you?

    – Jaromanda X
    2 hours ago
















1















I want to do a project that is multiple arduino communication through UART, that project project one of limit is using arduino nano(small and cheap), i need to set 4 serial port instance on nano to connect other nano to receive and write, i searched about serial port of nano that only have one hardware serial port, so after i found the many softserial library such as pre-bulite softserial and altsoftserial NeoSWSerial and NeoHWSerial and NeoICSerial.
Because library too libraries i don't know which one can help complete my project.










share|improve this question







New contributor




Haseo is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





















  • what's wrong with the arduino softwareserial library? in what way does it not work for you?

    – Jaromanda X
    2 hours ago














1












1








1








I want to do a project that is multiple arduino communication through UART, that project project one of limit is using arduino nano(small and cheap), i need to set 4 serial port instance on nano to connect other nano to receive and write, i searched about serial port of nano that only have one hardware serial port, so after i found the many softserial library such as pre-bulite softserial and altsoftserial NeoSWSerial and NeoHWSerial and NeoICSerial.
Because library too libraries i don't know which one can help complete my project.










share|improve this question







New contributor




Haseo is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.












I want to do a project that is multiple arduino communication through UART, that project project one of limit is using arduino nano(small and cheap), i need to set 4 serial port instance on nano to connect other nano to receive and write, i searched about serial port of nano that only have one hardware serial port, so after i found the many softserial library such as pre-bulite softserial and altsoftserial NeoSWSerial and NeoHWSerial and NeoICSerial.
Because library too libraries i don't know which one can help complete my project.







arduino-nano softwareserial uart






share|improve this question







New contributor




Haseo is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











share|improve this question







New contributor




Haseo is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









share|improve this question




share|improve this question






New contributor




Haseo is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









asked 3 hours ago









HaseoHaseo

61




61




New contributor




Haseo is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





New contributor





Haseo is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.






Haseo is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.













  • what's wrong with the arduino softwareserial library? in what way does it not work for you?

    – Jaromanda X
    2 hours ago



















  • what's wrong with the arduino softwareserial library? in what way does it not work for you?

    – Jaromanda X
    2 hours ago

















what's wrong with the arduino softwareserial library? in what way does it not work for you?

– Jaromanda X
2 hours ago





what's wrong with the arduino softwareserial library? in what way does it not work for you?

– Jaromanda X
2 hours ago










1 Answer
1






active

oldest

votes


















4














I think your problem is that you need 4 serial ports.



With software serial that's just not going to happen:




  • SoftwareSerial can only receive on one serial port at any given time.

  • AltSoftSerial is limited to specific pins, and only one instance because there is only one set of pins

  • NeoSWSerial is kind of between the two. More efficient than SoftwareSerial, but still (as far as I can tell) limited to one instance (it uses a timer interrupt to drive the communication, so can use any pins)


If you need communication between lots of devices over serial then you will either need devices with more hardware serial ports (Arduino Mega, for example), or implement a multi-drop bus system (like RS-485) which only needs one serial port to communicate with many devices. Extra external hardware is required though.






share|improve this answer
























  • Good answer. Another hardware option is a SPI to UART expander.

    – caligari
    21 mins ago











Your Answer






StackExchange.ifUsing("editor", function () {
return StackExchange.using("schematics", function () {
StackExchange.schematics.init();
});
}, "cicuitlab");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "540"
};
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: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
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
});


}
});






Haseo is a new contributor. Be nice, and check out our Code of Conduct.










draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2farduino.stackexchange.com%2fquestions%2f62091%2fhow-to-choice-softserial-library-use-on-arduino-project%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









4














I think your problem is that you need 4 serial ports.



With software serial that's just not going to happen:




  • SoftwareSerial can only receive on one serial port at any given time.

  • AltSoftSerial is limited to specific pins, and only one instance because there is only one set of pins

  • NeoSWSerial is kind of between the two. More efficient than SoftwareSerial, but still (as far as I can tell) limited to one instance (it uses a timer interrupt to drive the communication, so can use any pins)


If you need communication between lots of devices over serial then you will either need devices with more hardware serial ports (Arduino Mega, for example), or implement a multi-drop bus system (like RS-485) which only needs one serial port to communicate with many devices. Extra external hardware is required though.






share|improve this answer
























  • Good answer. Another hardware option is a SPI to UART expander.

    – caligari
    21 mins ago
















4














I think your problem is that you need 4 serial ports.



With software serial that's just not going to happen:




  • SoftwareSerial can only receive on one serial port at any given time.

  • AltSoftSerial is limited to specific pins, and only one instance because there is only one set of pins

  • NeoSWSerial is kind of between the two. More efficient than SoftwareSerial, but still (as far as I can tell) limited to one instance (it uses a timer interrupt to drive the communication, so can use any pins)


If you need communication between lots of devices over serial then you will either need devices with more hardware serial ports (Arduino Mega, for example), or implement a multi-drop bus system (like RS-485) which only needs one serial port to communicate with many devices. Extra external hardware is required though.






share|improve this answer
























  • Good answer. Another hardware option is a SPI to UART expander.

    – caligari
    21 mins ago














4












4








4







I think your problem is that you need 4 serial ports.



With software serial that's just not going to happen:




  • SoftwareSerial can only receive on one serial port at any given time.

  • AltSoftSerial is limited to specific pins, and only one instance because there is only one set of pins

  • NeoSWSerial is kind of between the two. More efficient than SoftwareSerial, but still (as far as I can tell) limited to one instance (it uses a timer interrupt to drive the communication, so can use any pins)


If you need communication between lots of devices over serial then you will either need devices with more hardware serial ports (Arduino Mega, for example), or implement a multi-drop bus system (like RS-485) which only needs one serial port to communicate with many devices. Extra external hardware is required though.






share|improve this answer













I think your problem is that you need 4 serial ports.



With software serial that's just not going to happen:




  • SoftwareSerial can only receive on one serial port at any given time.

  • AltSoftSerial is limited to specific pins, and only one instance because there is only one set of pins

  • NeoSWSerial is kind of between the two. More efficient than SoftwareSerial, but still (as far as I can tell) limited to one instance (it uses a timer interrupt to drive the communication, so can use any pins)


If you need communication between lots of devices over serial then you will either need devices with more hardware serial ports (Arduino Mega, for example), or implement a multi-drop bus system (like RS-485) which only needs one serial port to communicate with many devices. Extra external hardware is required though.







share|improve this answer












share|improve this answer



share|improve this answer










answered 2 hours ago









MajenkoMajenko

68.2k43277




68.2k43277













  • Good answer. Another hardware option is a SPI to UART expander.

    – caligari
    21 mins ago



















  • Good answer. Another hardware option is a SPI to UART expander.

    – caligari
    21 mins ago

















Good answer. Another hardware option is a SPI to UART expander.

– caligari
21 mins ago





Good answer. Another hardware option is a SPI to UART expander.

– caligari
21 mins ago










Haseo is a new contributor. Be nice, and check out our Code of Conduct.










draft saved

draft discarded


















Haseo is a new contributor. Be nice, and check out our Code of Conduct.













Haseo is a new contributor. Be nice, and check out our Code of Conduct.












Haseo is a new contributor. Be nice, and check out our Code of Conduct.
















Thanks for contributing an answer to Arduino Stack Exchange!


  • 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.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2farduino.stackexchange.com%2fquestions%2f62091%2fhow-to-choice-softserial-library-use-on-arduino-project%23new-answer', 'question_page');
}
);

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







Popular posts from this blog

迭戈·戈丁...

A phrase ”follow into" in a context The 2019 Stack Overflow Developer Survey Results Are...

1960s short story making fun of James Bond-style spy fiction The 2019 Stack Overflow Developer...