adrier / realtimeserial

Alternative to the Firefly serial read component in Grasshopper. This definition needs Firefly, GHPython and the pyserial library.
0 stars 0 forks source link

ironpython and pyserial #1

Open machinehistories opened 7 years ago

machinehistories commented 7 years ago

I am really looking forward to using your alternative serial code. I am confused about which pyserial to install. I noticed your code references pyserial-3.3 but my ironpython version is 2.7.5 and the pyserial I am trying to work with is 2.7. I thought ironpython for rhino/grasshopper can't be upgraded beyond 2.7.6. Can you tell me which version of ironpython I should use and if it is ok to use the most recent pyserial which is 3.4. Also I am wondering about how you installed the pyserial module. I tried PIP which, according to the command prompt, looked to be error free. I also tried to do it via the install-- command in the command prompt. The serial directory ends up being generated in the Lib/site-packages folder. I edited the code in your definition to match my path. It does load the pyserial module since it gives my feedback stating com5 is closed. When I set the boolean toggle to true rhino/gh immediately freeze. I am really hoping you can help me I am excited to give this a try. My ultimate goal is to send utf-8 characters to twitter. I am currently sending tweets from arduino using firefly and I can't get it to send anything but ascii characters. I am sure python can manage this task. I am sending the serial stream to a wifi board which performs the post. Again many thanks.

adrier commented 7 years ago

Hi there, I am using pyserial 3.3 with IPython 2.7 too. I guess that pyserial 3.4 would be ok but I haven't tested it! I did had a hard time figuring out where & how to install pyserial, finally I haven't used pip but placed it in this directory: C:\Program Files (x86)\IronPython 2.7\Lib\pyserial-3.3 Regarding freezing, I don't know what happens, but just to be sure don't open the port on Arduino, or whatever software, in the same time as you do it on GH. Please tell me if this helps, or I will try my best to help you.