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

SerialPort config how..? #53

Open
sfkristof opened this issue Sep 5, 2016 · 6 comments
Open

SerialPort config how..? #53

sfkristof opened this issue Sep 5, 2016 · 6 comments

Comments

@sfkristof
Copy link

Hi!

What can I do if I would like this tool with a device where I have to use such a serial port config: baud=9600, databits=7, stopbits=1, parity=even, flow control=none?
I couldn't find any possibility to set these and without this the communication is not working.
I tried to use it with a serial port proxy program where I could config these and then it was working.

Thanks in advance!

Kristof

@chilipeppr
Copy link
Collaborator

You would have to modify the source code to add these extra control parameters into the incoming commands as well as into the code that actually opens the serial port. Then you could do a pull request to add those changes into the mainstream. It's odd that after SPJS being out for over 3 years this question has only come up now. I think that most USB serial ports never care about databits, stopbits, and parity. Are you totally sure your implementation needs this?

@sfkristof
Copy link
Author

Yes, this is exactly what I did and now it's working!
I modified the OPEN command to manage these like this:
open
I don't know why this device uses such a config but it does.
About the forking: I also had to modify this import as a dependency to the SPJS:
github.com\johnlauer\goserial
How should I fork both projects and indicate that the SPJS has a dependency to another fork?

@chilipeppr
Copy link
Collaborator

I can manually tweak stuff to make the dual dependency work. If you want to do a pull request to send back your changes to me that would be great. I'll try to include them in the main build. Any chance you could tweak the Readme as well with docs on how to send the settings in the open command?

@sfkristof
Copy link
Author

Of course! Cool, where should I send my version to? (All sources in a ZIP with a txt about the changes is OK?)

@johnlauer
Copy link
Owner

Oh, no, you should do it as a pull request in Github.

From: sfkristof [mailto:[email protected]]
Sent: Tuesday, September 6, 2016 5:17 AM
To: johnlauer/serial-port-json-server [email protected]
Subject: Re: [johnlauer/serial-port-json-server] SerialPort config how..? (#53)

Of course! Cool, where should I send my version to? (All sources in a ZIP with a txt about the changes is OK?)


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHubhttps://github.com//issues/53#issuecomment-244932224, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AA8jlfawhaLdPLjpxloQFJCXNyJP2Xn0ks5qnVmkgaJpZM4J0_U2.

@sfkristof
Copy link
Author

I forked both projects and created 2 pull requests, please tell me if there is still anything to do with them.

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

No branches or pull requests

3 participants