xcode run

105 views
Skip to first unread message

mustafabagdatli

unread,
Mar 4, 2010, 1:32:14 PM3/4/10
to humanapi
Hi,

First of all I want to say, this is a really great news for Arduino
users.

I am trying to learn how to run ECG app. However, when I run it, it
always misses btstack.dylib and files like that. I filled out the
"other c flags" part as it shown in the vide and tutorial. However, it
still looks for dylib files in developers file (for iphone sdk). Does
anybody know what I am missing?

Thanks

mustafa

Nikolai Onken

unread,
Mar 7, 2010, 1:18:50 PM3/7/10
to humanapi
Hi Mustafa,

what dylib are you looking for? Is it libBTstack.dylib? This should be
in the Plugins directory of the project folder.
As you said you have set the other c flags, mine points to for
instance:

-I/Users/nikolaionken/dev/git/humanapi/prototypes/dev/ecg/iphone/
Plugins

and in that Plugins folder I have the libBTstack.dylib. Can you check
this and if it seems correct, send me your c flag settings?

Btw. did "make ecg" work for you? There have been some problems it
seems and I am trying to figure out what they were because it is
running for me even if I start with a clean checkout.

Regards,

Nikolai

mustafabagdatli

unread,
Mar 8, 2010, 2:31:19 PM3/8/10
to humanapi
Hi Nikolai,

Yes "make ecg" worked fine for me. However I changed some file
locations for that. I think it was the phonegap directory that you
included. I changed it with the one that I downloaded from phonegap
site and made the setup before I run "make ecg" (That's what I
remember, I hope I am not wrong.)
Also, "www" folder in ecg wasn't pointing the folder which has
phonegap.js. So, I also made some changes in there.

my other c flags shows this location
-I/Users/mustafabagdatli/humanapi/prototypes/dev/ecg/iphone/Plugins

which didn't have libBTstack.dylib
I just copied it to that folder and now, this is what I am getting:

warning: Unable to read symbols for "/Library/MobileSubstrate/
MobileSubstrate.dylib" (file not found).
dyld: Library not loaded: /usr/local/lib/libBTstack.dylib
Referenced from: /var/mobile/Applications/
3201350A-4D5E-4B8D-8837-48316C1F3ED7/ecg.app/ecg
Reason: image not found
mi_cmd_stack_list_frames: Not enough frames in stack.
mi_cmd_stack_list_frames: Not enough frames in stack.

Nikolai Onken

unread,
Mar 14, 2010, 3:06:11 PM3/14/10
to humanapi
Hi Mustafa,

I will have to check this, never got this error message myself and I
am not sure why it is looking for /Library/MobileSubstrate/
MobileSubstrate.dylib (it doesn't seem to exist). Can you remove that
dependency?

Nikolai

nick

unread,
Apr 24, 2010, 4:07:22 AM4/24/10
to humanapi
Hey nikolai,

The site that you have set up is great, but I seem to be getting the
same problem that Mustafa was having, the app runs, and the picture of
the human loads, but in the console i am getting the errors:

Loading program into debugger…
warning: Unable to read symbols for "/Developer/Platforms/
iPhoneOS.platform/DeviceSupport/3.1.2 (7D11)/Symbols/usr/local/lib/
libBTstack.dylib" (file not found).
warning: Unable to read symbols from "libBTstack.dylib" (not yet
mapped into memory).
Program loaded.

warning: Unable to read symbols for "/Developer/Platforms/
iPhoneOS.platform/DeviceSupport/3.1.2 (7D11)/Symbols/usr/local/lib/
libBTstack.dylib" (file not found).
warning: Unable to read symbols for "/Library/MobileSubstrate/
MobileSubstrate.dylib" (file not found).

have you found a solution to this problem by chance?

thanks,
nick
--
Subscription settings: http://groups.google.com/group/humanapi/subscribe?hl=en

nick

unread,
Apr 24, 2010, 4:04:08 PM4/24/10
to humanapi
hey,

i am still getting those warnings for for the libBTstack, but now the
app starts up and it conencts to the BTstack.

but when it tellme me "Turn on the Arduino BT", my arduino BT
microcontroller is turned on, and I have loaded the ecg.pde file ontot
he board, nothing happens, i get the message "L2CAP connection to
device 00-07-80-90-50-C8 failed. status code 4", and then the app
exits

Is there a specific setting in the code that i need to change for my
specific arduino BT board?

thanks,
Nick

mustafa bağdatlı

unread,
Apr 24, 2010, 4:11:53 PM4/24/10
to huma...@googlegroups.com
check out the bluetooth address of your device, each device has their own address. Then, inside the code, you can go change that line. 

Sorry if you already did that. 


Btw, I am about to finish my masters program so I wasn't able to work on this, but I will try to work on human api as soon as I can. But seems like, my issues are related to installation of BTStack lib.

--
Mustafa Bagdatli
NYU Interactive Telecommunications Program
itp.mustafab.com
mustafab.com

nick f

unread,
Apr 24, 2010, 6:07:49 PM4/24/10
to huma...@googlegroups.com
hmm ok, so i changed the mac address to match the one of my board.

I was able to connect to the board once, but after that never again. I keep getting packet[2] =34, instead of packet[2] =0
do you know if there is a api or something for the status codes that are being sent?

thanks
nick

2010/4/24 mustafa bağdatlı <mustafa...@gmail.com>

Mustafa Bagdatli

unread,
Apr 24, 2010, 9:00:44 PM4/24/10
to huma...@googlegroups.com, huma...@googlegroups.com
Are you using a arduino Bluetooth module or arduino with bluesmirf?

mustafa

nick f

unread,
Apr 25, 2010, 12:47:35 AM4/25/10
to huma...@googlegroups.com
I am using a Arduino Bluetooth module. I was able to connect once, but stupidly, i got excited and loaded a different firmware and it never worked again. I have repeatedly been getting these 2 connection fail messages.

This first one is when the board is just sitting untouched, and i run the app:

L2CAP connection to
device 00-07-80-90-50-C8 failed. status code 34


This second one is when the consule prompts me to turn on the arduino BT, i hit the refresh button on the board, or turn the power on:

L2CAP connection to
device 00-07-80-90-50-C8 failed. status code 8


I am pretty sure that there is some type of interaction going on between the arduino bt and the iphone b/c when i run the app w/ a wrong mac address i get the following message no matter what:


L2CAP connection to
device 00-07-80-90-50-C8 failed. status code 4


If there was some way i could know what the status codes meant, then maybe I could figure out what settings i need to tweak in order to get a status code of 0 (connected, i think).

any thoughts?

mustafa bağdatlı

unread,
Apr 25, 2010, 1:17:00 AM4/25/10
to huma...@googlegroups.com
I don't have much knowledge about this, cause I couldn't run the program yet. 

But, I made a brief search, and found this: http://code.google.com/p/btstack/wiki/L2CAP

I hope this helps

m

2010/4/24 nick f <zoyo.i...@gmail.com>

nick

unread,
Apr 27, 2010, 11:40:35 PM4/27/10
to humanapi
oh hey thanks, I still have not been able to connect to the board, i
am trying to trace back through the code to find out what the problem
could be, and i am currently wondering if it is because of this
warning that i receive every time?

warning: Unable to read symbols for "/Developer/Platforms/
iPhoneOS.platform/DeviceSupport/3.1.2 (7D11)/Symbols/usr/local/lib/
libBTstack.dylib" (file not found).

I am just guessing, but it seems that the patch version that nikolai
was running was something before 3.1.2, and there is no support for it
in his libBTstack.dylib? is there a way that i can edit this file or
get the support for 3.1.2 added?

Thanks,
Nick

On Apr 24, 10:17 pm, mustafa bağdatlı <mustafabagda...@gmail.com>
wrote:
> I don't have much knowledge about this, cause I couldn't run the program
> yet.
>
> But, I made a brief search, and found this:http://code.google.com/p/btstack/wiki/L2CAP
>
> <http://code.google.com/p/btstack/wiki/L2CAP>I hope this helps
>
> m
>
> 2010/4/24 nick f <zoyo.is.bo...@gmail.com>
>
>
>
>
>
> > I am using a Arduino Bluetooth module. I was able to connect once, but
> > stupidly, i got excited and loaded a different firmware and it never worked
> > again. I have repeatedly been getting these 2 connection fail messages.
>
> > This first one is when the board is just sitting untouched, and i run the
> > app:
>
> > L2CAP connection to
> > device 00-07-80-90-50-C8 failed. status code 34
>
> > This second one is when the consule prompts me to turn on the arduino BT, i
> > hit the refresh button on the board, or turn the power on:
>
> > L2CAP connection to
> > device 00-07-80-90-50-C8 failed. status code 8
>
> > I am pretty sure that there is some type of interaction going on between
> > the arduino bt and the iphone b/c when i run the app w/ a wrong mac address
> > i get the following message no matter what:
>
> > L2CAP connection to
> > device 00-07-80-90-50-C8 failed. status code 4
>
> > If there was some way i could know what the status codes meant, then maybe
> > I could figure out what settings i need to tweak in order to get a status
> > code of 0 (connected, i think).
>
> > any thoughts?
>
> > On Sat, Apr 24, 2010 at 6:00 PM, Mustafa Bagdatli <
> > mustafabagda...@gmail.com> wrote:
>
> >> Are you using a arduino Bluetooth module or arduino with bluesmirf?
>
> >> mustafa
>
> >> On Apr 24, 2010, at 6:07 PM, nick f <zoyo.is.bo...@gmail.com> wrote:
>
> >> hmm ok, so i changed the mac address to match the one of my board.
>
> >> I was able to connect to the board once, but after that never again. I
> >> keep getting packet[2] =34, instead of packet[2] =0
> >> do you know if there is a api or something for the status codes that are
> >> being sent?
>
> >> thanks
> >> nick
>
> >> 2010/4/24 mustafa bağdatlı < <mustafabagda...@gmail.com>
> >> mustafabagda...@gmail.com>
>
> >>> check out the bluetooth address of your device, each device has their own
> >>> address. Then, inside the code, you can go change that line.
>
> >>> Sorry if you already did that.
>
> >>> Btw, I am about to finish my masters program so I wasn't able to work on
> >>> this, but I will try to work on human api as soon as I can. But seems like,
> >>> my issues are related to installation of BTStack lib.
>
> >>> m
>
> >>> On Sat, Apr 24, 2010 at 1:04 PM, nick < <zoyo.is.bo...@gmail.com>
> >>> zoyo.is.bo...@gmail.com> wrote:
>
> >>>> hey,
>
> >>>> i am still getting those warnings for for the libBTstack, but now the
> >>>> app starts up and it conencts to the BTstack.
>
> >>>> but when it tellme me "Turn on the Arduino BT", my arduino BT
> >>>> microcontroller is turned on, and I have loaded the ecg.pde file ontot
> >>>> he board, nothing happens, i get the message "L2CAP connection to
> >>>> device 00-07-80-90-50-C8 failed. status code 4", and then the app
> >>>> exits
>
> >>>> Is there a specific setting in the code that i need to change for my
> >>>> specific arduino BT board?
>
> >>>> thanks,
> >>>> Nick
>
> >>>> On Apr 24, 1:07 am, nick <zoyo.is.bo...@gmail.com> wrote:
> >>>> > Hey nikolai,
>
> >>>> > The site that you have set up is great, but I seem to be getting the
> >>>> > same problem that Mustafa was having, the app runs, and the picture of
> >>>> > the human loads, but in the console i am getting the errors:
>
> >>>> > Loading program into debugger...
> >>> <http://itp.mustafab.com>itp.mustafab.com
> >>> <http://mustafab.com>mustafab.com
Reply all
Reply to author
Forward
0 new messages