Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Software serial? It's possible? #299

Closed
STASIUK opened this issue Sep 25, 2015 · 7 comments
Closed

Software serial? It's possible? #299

STASIUK opened this issue Sep 25, 2015 · 7 comments

Comments

@STASIUK
Copy link

STASIUK commented Sep 25, 2015

Is it possible to run Software serial?

@flexiti
Copy link
Contributor

flexiti commented Sep 25, 2015

TX yes, RX will be more difficult - It depends on the speed you want to get

@STASIUK
Copy link
Author

STASIUK commented Sep 25, 2015

for example 9600
possible?

@flexiti
Copy link
Contributor

flexiti commented Sep 25, 2015

at that speed:
TX - (eg. timer) every 104 us
RX - one bit is about 104 us, there must be some sampling, eg. 10 times, it means that the polling (eg. the timer) would have to be every 10us (and can not be disturbed) to find start bit.
Or based on port interrupt on the edge and first timer after 52 us and next every 104 us)
Possible, but You must have a good knowledge of the system and interrupt priorities

eg. 110 baud - bit is 10 ms long ,it is easier :)

@hreintke
Copy link
Contributor

No information for a long time.
Closing the issue

@crosofg
Copy link
Contributor

crosofg commented Apr 25, 2017

Is software serial possible? Can I connect four serial port devices?

@flexiti
Copy link
Contributor

flexiti commented Apr 25, 2017

Yes, as described above

@crosofg
Copy link
Contributor

crosofg commented Apr 25, 2017

Can some library like this softwareSerial Lib be used to connect four serial devices to esp8266?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants