Author Topic: RFduino Quick Start Guide  (Read 36660 times)

pracas

  • RFduino Newbie
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Re: RFduino Quick Start Guide
« Reply #15 on: July 04, 2014, 06:40:51 AM »
@Tolson

I'm facing a similar issue. I've managed to get the code to compile however struck on uploading.. Here's the error.
Using Arduino 1.5.6 on a ubuntu 13.04 system

/home/Applications/arduino-1.5.6-r2/hardware/arduino/RFduino/RFDLoader: 1:
/home/Applications/arduino-1.5.6-r2/hardware/arduino/RFduino/RFDLoader: Syntax error: "(" unexpected

tolson

  • Global Moderator
  • *****
  • Posts: 859
  • Karma: +20/-0
    • View Profile
    • Thomas Olson Consulting
Re: RFduino Quick Start Guide
« Reply #16 on: July 04, 2014, 02:02:01 PM »
@Tolson

I'm facing a similar issue. I've managed to get the code to compile however struck on uploading.. Here's the error.
Using Arduino 1.5.6 on a ubuntu 13.04 system

/home/Applications/arduino-1.5.6-r2/hardware/arduino/RFduino/RFDLoader: 1:
/home/Applications/arduino-1.5.6-r2/hardware/arduino/RFduino/RFDLoader: Syntax error: "(" unexpected

Hi pracas,

Several things are out of whack for us Linux users...
First).
The RFDLoader program is compiled for iMACs (BSD variant Unix). It will not work for Linux.
The RFDLoader.exe is of course for windows.

So what we linux people have to do is run the RFDLoader.exe in WINE (WINdoze Emulation).
I move the RFDLoader to RFDLoader.ORIG.
Then replace it with a shell script called RFDLoader with this code...
Code: [Select]
#!/bin/bash
/usr/bin/wine /home/tolson/Desktop/arduino-1.5.6-r2/hardware/arduino/RFduino/RFDLoader.exe $1 com1 $3
NOTE: Your path to the arduino-1.5.X directory may be different on Ubuntu and other distributions than on my SuSE. So make the appropriate changes to the path. I then copy that file to RFDLoader.LINUX as a backup just in case I forget and overwrite it when a new RFduino update comes out.

Second).
The permissions are typically hosed on the size* files and the RFDLoader* files.
So need to do..
chmod 755 RFDLoader*
chmod 755 size*

The other thing that needs fixin' with the WINE is to get WINE to point to your USB device for the RFduino. In your WINE configurations directory make a symlink in the dosdevices directory to whatever your USB serial device is called. You may have to create the dosdevice directory. In my case..
Code: [Select]
cd ~/.wine/dosdevices
ln -s /dev/ttyUSB0 com1
« Last Edit: July 04, 2014, 06:59:38 PM by tolson »

pracas

  • RFduino Newbie
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Re: RFduino Quick Start Guide
« Reply #17 on: July 07, 2014, 01:04:39 AM »
@tolson

Appreciate it. Have changed as per your post however still facing an error and i can't make head or tail of it.

Sketch uses 17,372 bytes (13%) of program storage space. Maximum is 131,072 bytes.

fixme:comm:set_queue_size insize 1024 outsize 1024 unimplemented stub
get
fail.......fail.......fail.......



tolson

  • Global Moderator
  • *****
  • Posts: 859
  • Karma: +20/-0
    • View Profile
    • Thomas Olson Consulting
Re: RFduino Quick Start Guide
« Reply #18 on: July 07, 2014, 11:06:42 AM »
Need more input to know exactly what you have for a setup.
1. Are you using the RFduino USB shield? or other USB adaptor.
2. What does ubuntu think the device name is?
3. Version of RFduino library.
4. List showing files rights.
 cd to the RFduino directory. do...
 ls -l
5. list of .wine config
 cd to .wine directory. do..
 ls -l dosdevices

tolson

  • Global Moderator
  • *****
  • Posts: 859
  • Karma: +20/-0
    • View Profile
    • Thomas Olson Consulting
Re: RFduino Quick Start Guide
« Reply #19 on: July 07, 2014, 11:56:34 AM »
@Pracas,

Just remembered one more gotcha. Check to see what the rights are on your USB device. Assuming your USB device is of the type ttyUSB*...

ls -l /dev/ttyUSB*

it is probably  crw-rw---- 1 root dialout ......

Check what groups you are a member of. You need to be in the dialout group.
You can check your group memberships with command id or groups...
groups

Assuming your user name is pracas add your self with..
sudo gpasswd --add pracas dialout

Then logout and log back in to see if you were added to the group.
« Last Edit: July 07, 2014, 12:09:32 PM by tolson »

pracas

  • RFduino Newbie
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Re: RFduino Quick Start Guide
« Reply #20 on: July 07, 2014, 11:23:06 PM »
@Tolson

Thanks! it was the dialout group. that got it working.

TomWS

  • RFduino Jr. Member
  • **
  • Posts: 26
  • Karma: +0/-0
    • View Profile
Trying to setup Linux, was:Re: RFduino Quick Start Guide
« Reply #21 on: October 08, 2014, 06:24:24 AM »
I'm trying to set up Arduino on an ubuntu 3.11 laptop and it appears that I can build RFduino apps without any issues, but I am unable to load them using the USB shield.  I get the notorious "fixme:comm:set_queue_size insize 1024 outsize 1024 unimplemented stub" error.

I think I've done everything suggested in this note trail and I've dumped the pertinent information below.  Any suggestions?

By the way, in the Port setup for Arduino, '/dev/ttyUSB0' is listed rather than 'com1'...  I selected that device.
I also tried saving the original RFDLoader32 (since this is a 32 bit version of Linux) and replacing it with the bash shell which launches RFDLoader.exe using wine and got the same result.

The RFduino library is version 2.1.2.


Code: [Select]
tomws@TWS-TP-T60-Ubuntu:~$ uname -a
Linux TWS-TP-T60-Ubuntu 3.11.0-26-generic #45-Ubuntu SMP Tue Jul 15 04:04:15 UTC 2014 i686 i686 i686 GNU/Linux
tomws@TWS-TP-T60-Ubuntu:~$ groups
tomws adm dialout cdrom sudo dip plugdev lpadmin bluetooth sambashare
tomws@TWS-TP-T60-Ubuntu:~$ cd .wine
tomws@TWS-TP-T60-Ubuntu:~/.wine$ ls -l dosdevices
total 0
lrwxrwxrwx 1 tomws tomws 10 Oct  7 18:03 c: -> ../drive_c
lrwxrwxrwx 1 tomws tomws 12 Oct  7 18:24 com1 -> /dev/ttyUSB0
lrwxrwxrwx 1 tomws tomws  8 Oct  7 18:03 d:: -> /dev/sr0
lrwxrwxrwx 1 tomws tomws  1 Oct  7 18:03 z: -> /
tomws@TWS-TP-T60-Ubuntu:~/.wine$ cd ~/arduino-1.5.8/hardware/arduino/RFduino
tomws@TWS-TP-T60-Ubuntu:~/arduino-1.5.8/hardware/arduino/RFduino$ ls -l
total 336
-rw-r--r-- 1 tomws tomws  80983 Apr  8  2014 4up image.jpg
-rw-r--r-- 1 tomws tomws    771 Jul 31 09:45 boards.txt
-rw-r--r-- 1 tomws tomws   3930 Aug 23 10:21 CHANGELOG
drwxr-xr-x 3 tomws tomws   4096 Aug 25 16:25 cores
drwxr-xr-x 8 tomws tomws   4096 Aug 25 16:25 iPhone Apps
drwxr-xr-x 8 tomws tomws   4096 Aug 25 16:25 libraries
-rw-r--r-- 1 tomws tomws   3243 Jul 31 09:45 platform.txt
-rw-r--r-- 1 tomws tomws      0 Dec 20  2013 programmers.txt
-rw-r--r-- 1 tomws tomws   2300 Apr  8  2014 README.md
-rwxr-xr-x 1 tomws tomws    102 Oct  7 18:26 RFDLoader
-rwxr-xr-x 1 tomws tomws    102 Oct  8 09:00 RFDLoader32
-rwxr-xr-x 1 tomws tomws  24712 Apr  8  2014 RFDLoader32.orig
-rwxr-xr-x 1 tomws tomws 152788 Apr  8  2014 RFDLoader.exe
-rwxr-xr-x 1 tomws tomws  24960 Apr  8  2014 RFDLoader.orig
drwxr-xr-x 3 tomws tomws   4096 Aug 25 16:25 source
drwxr-xr-x 4 tomws tomws   4096 Aug 25 16:26 system
drwxr-xr-x 3 tomws tomws   4096 Aug 25 16:26 variants
tomws@TWS-TP-T60-Ubuntu:~/arduino-1.5.8/hardware/arduino/RFduino$

tolson

  • Global Moderator
  • *****
  • Posts: 859
  • Karma: +20/-0
    • View Profile
    • Thomas Olson Consulting
Re: RFduino Quick Start Guide
« Reply #22 on: October 08, 2014, 09:55:04 AM »
Hi TomWS,

The RFDLoader and RFDLoader32 are compiled for OS-X only. Those will not run on Linux. The RFDLoader.exe is for Windows and works using Linux Wine. So for RFDLoader.exe the port has to be a windows idea of a port, thus the com1. The Arduino IDE is compiled for Linux thus the port is /dev/ttyUSB0. The two programs are independent.

I have Arduino 1.5.8 with RFduino 2.1.2 running on Linux. The only thing I had to change was the path in the RFDLoader bash script.

Can you post the content of your RFDLoader script.
In my case it looks like..

Code: [Select]
#!/bin/bash

/usr/bin/wine /home/tolson/Desktop/arduino-1.5.8/hardware/arduino/RFduino/RFDLoader.exe $1 com1 $3

TomWS

  • RFduino Jr. Member
  • **
  • Posts: 26
  • Karma: +0/-0
    • View Profile
Re: RFduino Quick Start Guide
« Reply #23 on: October 08, 2014, 10:33:32 AM »
@tolson, Thanks for looking at this.  Here is the RFDLoader file...
Code: [Select]
#!/bin/bash
/usr/bin/wine /home/tomws/arduino-1.5.8/hardware/arduino/RFduino/RFDLoader.exe $1 com1 $3

tolson

  • Global Moderator
  • *****
  • Posts: 859
  • Karma: +20/-0
    • View Profile
    • Thomas Olson Consulting
Re: RFduino Quick Start Guide
« Reply #24 on: October 08, 2014, 10:47:24 AM »
All looks good.
Quote
I get the notorious "fixme:comm:set_queue_size insize 1024 outsize 1024 unimplemented stub" error.
That error is always there and is non-sequitor. Other than that, are you getting a succesful upload or geting the fail...fail...fail.


TomWS

  • RFduino Jr. Member
  • **
  • Posts: 26
  • Karma: +0/-0
    • View Profile
Re: RFduino Quick Start Guide
« Reply #25 on: October 08, 2014, 11:11:40 AM »
All looks good.
Quote
I get the notorious "fixme:comm:set_queue_size insize 1024 outsize 1024 unimplemented stub" error.
That error is always there and is non-sequitor. Other than that, are you getting a succesful upload or geting the fail...fail...fail.
Do I understand you correctly that this error message is NOT my problem?  That is, you also get this error message but you're able to successfully upload to your RFduino?

The IDE tells me that the upload was a 'SUCCESS', however, trying the LedButton example, I get no results when I do a scan from the RFDuino Test app.  Should I try something more fundamental like 'blink the blinkin LED'?

What about the fact that the Port setting in the IDE only includes /dev/ttyUSB0 and not com1?  Is that a problem?

TomWS

  • RFduino Jr. Member
  • **
  • Posts: 26
  • Karma: +0/-0
    • View Profile
Re: RFduino Quick Start Guide
« Reply #26 on: October 08, 2014, 11:16:13 AM »
I should probably also mention that I get this notice on starting the IDE:

Code: [Select]
Board arduino:RFduino:RFduino doesn't define a 'build.board' preference. Auto-set to: RFDUINO_RFDUINO

RFduino IS selected in the Tools->Board menu...

TomWS

  • RFduino Jr. Member
  • **
  • Posts: 26
  • Karma: +0/-0
    • View Profile
Re: RFduino Quick Start Guide
« Reply #27 on: October 08, 2014, 11:22:03 AM »
 :-[ :-[ :-[ :-[ :-[ :-[ :-[

Ok, I tried the RGBShieldChangingColors sketch and, um, er, uh, it does work...

I apologize for wasting your time.  I didn't see any place that this error was benign and could be ignored.  I can now chase down why I couldn't scan previously...

Thanks for your help.
Tom

jsprenkle

  • RFduino Newbie
  • *
  • Posts: 4
  • Karma: +0/-0
    • View Profile
Re: RFduino Quick Start Guide
« Reply #28 on: February 13, 2016, 07:55:22 AM »
Hi Everyone,

You can find the current RFduino Quickstart guide here http://www.rfduino.com/product/rfd22102-rfduino-dip/ under the download tab.

Thanks!


[EDIT]  The shortcut link should be here...
http://www.rfduino.com/wp-content/uploads/2014/03/rfduino.ble_.programming.reference.pdf

Purchased one of your boards and trying to get started with it.

The pdf marked as a quick start guide is very disorganized and not helpful.
It starts with specifications. I probably don't need specs if I'm trying to get started with the product.

Next page starts with step 5. One through four are missing.

Link in your forum post goes to a function reference not a quick start guide.


tolson

  • Global Moderator
  • *****
  • Posts: 859
  • Karma: +20/-0
    • View Profile
    • Thomas Olson Consulting
Re: RFduino Quick Start Guide
« Reply #29 on: February 13, 2016, 09:17:13 AM »
Maybe this one is more useful, this year.
https://github.com/RFduino/RFduino/blob/master/README.md