-
Notifications
You must be signed in to change notification settings - Fork 110
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
Add support for the ubuntu platform. #25
Conversation
} | ||
|
||
static const QString fullID() { | ||
return "org.stereolux.cordova.serial"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
could you change it to fr.drangies.cordova.serial
?
Hello, Anyway, if you tell me it works, it's ok to merge, since it will be a starting point for other to test! Thanks again, Regards |
Yes it does work, at least on my Ubuntu Desktop system. Thanks in advance for merging it! |
Add support for the ubuntu platform.
Oh, I was thinking it was for ubuntu phones, if it's for desktop I will test it! |
My hope is that it will work on both Ubuntu Phone and Desktop, but so far I have tested it only on Desktop. |
@hexluthor Hello, |
Hi @ChoseKurosa. I don't think Two interfaces will be tough, as I believe this library only supports one serial port. I suspect you might be experiencing a permission problem. Under Ubuntu you probably need to be a member of the |
For e.g. this implementation is working well on android, but nothing happens in ubuntu (using
It is strange because even in this case console.log doesn't show. I think my implementation is bad but i don't know how it can work. Also cutecom should work as well. |
One thing to be aware of is that Linux allows multiple processes to open the same serial port simultaneously but only one will actually receive incoming data. Disconnecting and reconnecting the USB cable should close any other processes vying for the same port. Try to figure out why cutecom isn't working. Check your wiring. If cutecom doesn't work, cordovarduino will never work. |
Encoding for sending data to my device should be windows 1250. Do you think that this can be the problem ? |
I doubt it. For plain text, Windows-1250 shouldn't be any different. If the device is expecting wide (16-bit) characters, that could be a problem. You mentioned that you have it working on Android. Can you connect the transmit wire from the Android device to the receive pin on the Ubuntu desktop? Then you can confirm exactly what bytes are being transmitted by Android. cutecom has a handy "Hex output" mode. If you have a spare UART, you can then repeat the same test under Ubuntu with one UART looped-back to the other and examine what bytes are being transmitted, if any. With proper wiring you should be able to run two cutecoms simultaneously and type messages between them. |
Cutecom is sending data in bad way. I think i have a problem with this plugin installation and implementing because even errorCallback are not calling. I think methods in serial.cpp is not call either. I did whole installation according to the instructions. |
No description provided.