IOError RPC: Python, Windows8.1

Python, Java, Android OS, etc.
aito
Posts: 5
Joined: Wed Jan 10, 2018 11:11 am

IOError RPC: Python, Windows8.1

Postby aito » Thu Jan 11, 2018 4:28 am

I'm trying to logging data with bitalino, python2.7, Windows8.1 via bluetooth.

After I installed necessary items (NumPy, pySerial, pyBluez) with pip command and executed an example program, I received the following error message;
" IOError: RPC server is unavailable."

In order to fix it, I used debugging tool (step into) . I found the just previous command is
"bt.discover_devices()"

If anybody have a comment about this problem, please tell me it.
Because I'm beginner of Bitalino, I would be glad for your kind suggestions.

BITalino
Site Admin
Posts: 567
Joined: Tue Aug 27, 2013 3:47 pm

Re: IOError RPC: Python, Windows8.1

Postby BITalino » Thu Jan 11, 2018 8:44 am

Hi,

Can you confirm that your Bluetooth dongle is turned on and using the Windows drivers? See Sections 1.5 & 7.1 here:
http://bitalino.com/downloads/int-releases/OpenSignals_(r)evolution_Manual.pdf

Best regards,
The BITalino Team

aito
Posts: 5
Joined: Wed Jan 10, 2018 11:11 am

Re: IOError RPC: Python, Windows8.1

Postby aito » Thu Jan 11, 2018 9:54 am

Thank you for a quick reply.

I can obtain correctly EMG data with open signal software on my windows PC.
I'm sorry that I could not find the correspondig link on the section 7.1 on your suggeted PDF manual.

Is still anything to check my PC circumstances ?
Thank you.

BITalino
Site Admin
Posts: 567
Joined: Tue Aug 27, 2013 3:47 pm

Re: IOError RPC: Python, Windows8.1

Postby BITalino » Thu Jan 11, 2018 10:28 am

Can you confirm if you are able to successfully connect to the device without doing a search or if the same error persists?

Best regards,
The BITalino Team

aito
Posts: 5
Joined: Wed Jan 10, 2018 11:11 am

Re: IOError RPC: Python, Windows8.1

Postby aito » Thu Jan 11, 2018 11:26 am

Unfortunately, I cannot catch the meaning of "connect to the device without doing a search " in your preious reply.
Would you explain more in details or example ?

Finally, I want to build up the real time EMG and ACC measurements and User Feed Back System with simple animation on a PC screen with Python.
I'm sorry that I bother you.

BITalino
Site Admin
Posts: 567
Joined: Tue Aug 27, 2013 3:47 pm

Re: IOError RPC: Python, Windows8.1

Postby BITalino » Thu Jan 11, 2018 7:04 pm

Hi,

Its no bother at all... if you try to run the code available on the following page (updating the macAddress variable to the MAC of your device, do you get an error? https://github.com/BITalinoWorld/revolution-python-api

Best regards,
The BITalino Team

aito
Posts: 5
Joined: Wed Jan 10, 2018 11:11 am

Re: IOError RPC: Python, Windows8.1

Postby aito » Fri Jan 12, 2018 3:03 am

Thank you for your continuous support.

Sometimes, my internet connection in my school is affected by the "fire-wall", proxy settings.
Thus, I changed to the internet by tethering with private cell phone, not by the usual Ethernet cable in my school. However, the situation was not improved. Still, I received another error messages.

I tried the examples on the webpage, https://github.com/BITalinoWorld/revolution-python-api .

When I executed "Setup.py",
IOError:[Error 2] No such file or directory: ‘README.rst’ .
--> I commented out only the corresponding sentence in the program and executed.

When I executed "Bitalino.py" with macAddress=”COM3”,
NO RESPONSE (PC was freezed).

When I executed "Bitalino.py" with macAddress of BITalino board mac address,
IOError:msbt.py, line 72, in connect
"Because no correct response was received within the duration, connection was not completed." (* my PC is Japanese version, the message was shown in Japanese. I translated the Japanese error message into English. I'm afraid that this sentence may confuse your understanding. Please guess the meaning of the error message.)

Additional information, my PC is dell notebook "Inspiron5748" with Windows 8.1, Intel i7-45710U 2GHz, 8GB main memory, bluetooth. I used the USB dongle for bitalino connection which was received when I purchased your product bitalino.

Yours sincerely,
Akira ITO
National Inst. of Tech., Suzuka College,
JAPAN

aito
Posts: 5
Joined: Wed Jan 10, 2018 11:11 am

Re: IOError RPC: Python, Windows8.1

Postby aito » Fri Jan 12, 2018 6:26 am

Is it possible to use the Python API for BLE Bitalino ?

Just Now, I noticed that my bitalino is BLE (Blue tooth Low Energy) version, but BT (BlueTooth).
I misunderstood that it is BT.

By considering the other topic comments, NO connection via BLE is available with Python API which use Python2.7 ?
(I guess that the wireless connection programing can be done with Python3.)

I expect your development has already made the compatible API for BLE version.

BITalino
Site Admin
Posts: 567
Joined: Tue Aug 27, 2013 3:47 pm

Re: IOError RPC: Python, Windows8.1

Postby BITalino » Fri Jan 12, 2018 7:54 am

Unfortunately the BLE models still have the usage requirements highlighted here:
http://forum.bitalino.com/viewtopic.php?f=1&t=425&p=1437#p1437

You can find the list of APIs compatible with the BLE versions in the following link (marked with the green thumbs up on the BLE column):
http://bitalino.com/en/development/apis

To use in Python, the quickest now would be adapt your unit to connect using Bluetooth.

If you have a BITalino Plugged BLE, the easiest would be to purchase the BITalino Core BT, given that everything else is compatible:
https://store.plux.info/bitalino-components/24-bitalino-revolution-core-mcubtpwr-810121705.html

If you have a BITalino Board BLE or Freestyle BLE, you can replace the BLE block by a BT:
https://store.plux.info/bitalino-components/22-bluetooth-20-block-810121703.html

Another option is to purchase the BITalino Barebone BT (again, everything else is compatible):
https://store.plux.info/bitalino-components/27-bitalino-revolution-pcb-bt-810121708.html

Best regards,
The BITalino Team


Return to “Programming APIs”