-
Notifications
You must be signed in to change notification settings - Fork 62
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
Reading from a specific device over virtual COM #13
Comments
Hello, I've checked the datasheet of the E201 and yes, it can be used with Ardity. Ardity can connect to anything that appears in Windows as a COM port, and your datasheet says there are drivers available for this purpose. This is the relevant excerpt:
There is a section towards the end of that document titled "Installation of USB Drivers" that you should follow prior to setting up the device with Ardity. Once you can see your device as COM1, COM2, or some other COM port I recommend you try to access it with a software like PuTTY (it allows you to interactively send commands to your encoder and see the response). Here is a video I found that explains how to use PuTTY over serial ports . This video is not specific to your device, but the instructions apply nonetheless. Your datasheet says "Speed settings of the virtual serial port can be any value." so you can use the a 9600 baud rate. Once you are able to connect to it using PuTTY, test the connection by pressing the letter "v" inside PuTTY, your datasheet says that commands prints out version information. So if you see your device's version, everything goes well. Now, when configuring Ardity you'll need to know 3 things:
Also check the Ardity setup guide which eases the ramp up (download it here). There is a provided sample scene showing bidirectional communication, you'll need that as you need to send commands to the encoder before getting the results back. Let me know if you have more doubts, |
Hi Daniel, Thank you for your reply. Your code works pretty nice although I get the following error if sending a reading command each of the Unity update.
Not sure why that happens but I guess it has something to do with the queue becoming full. Cheers, Andrea |
Hi, That's a bizarre error you mention, it seems to be something internal to the Windows API for serial communication. Some guesses:
Regards. |
The following question is copied from a user's email regarding using Ardity to connect Unity and a specific hardware device without using an Arduino in between.
Dear dwilches,
I have found your Ardity library and I found it quite interesting as I am trying to read in Unity an incremental encoder.
I was wondering if I could use your library to communicate with this specific device:
https://www.rls.si/en/e201-usb-encoder-interface-123
I am really not an expert on this and will have to trial and error a lot I guess, but I was wondering if you could give me some tips/directions to understand if I have to modify your library or I can just use it as it is.
I would really appreciate your help,
Warmest regards,
The text was updated successfully, but these errors were encountered: