I'm wearing out my USB connector

On my HTC EVO Collect crashes whenever the usb cable is plugged in. I've
had to take it in an out 50 times while I'm playing with my form xml and
pulling off my instances to check the results. Is this a problem just with
my device or a general issue.

-steve-

it's your phone. it is auto-mounting the sd card and that will corrupt
and crash all sorts of things.

··· On Wed, Feb 2, 2011 at 23:56, Steve Roberts wrote: > On my HTC EVO Collect crashes whenever the usb cable is plugged in. I've > had to take it in an out 50 times while I'm playing with my form xml and > pulling off my instances to check the results. Is this a problem just with > my device or a general issue. > > -steve- > > -- > Post: opendatakit@googlegroups.com > Unsubscribe: opendatakit+unsubscribe@googlegroups.com > Options: http://groups.google.com/group/opendatakit?hl=en >

Well then that's a catch 22 then isn't it? Doesn't do me much good to turn
off mounting the sd card and plug in when the reason I plugged in was to
take data off the sd card in the first place. How do I get around this?
Yes if I turn off the automatic mounting then Collect works but then I have
no access to the data. I don't see an option for mounting the card after
plugging in (and wouldn't that cause the same problem anyway?)

-steve-

··· On Thu, Feb 3, 2011 at 7:08 AM, Yaw Anokwa wrote:

it's your phone. it is auto-mounting the sd card and that will corrupt
and crash all sorts of things.

On Wed, Feb 2, 2011 at 23:56, Steve Roberts steve@roberts.org wrote:

On my HTC EVO Collect crashes whenever the usb cable is plugged in. I've
had to take it in an out 50 times while I'm playing with my form xml and
pulling off my instances to check the results. Is this a problem just
with
my device or a general issue.

-steve-

--
Post: opendatakit@googlegroups.com
Unsubscribe: opendatakit+unsubscribe@googlegroups.comopendatakit%2Bunsubscribe@googlegroups.com
Options: http://groups.google.com/group/opendatakit?hl=en

--
Post: opendatakit@googlegroups.com
Unsubscribe: opendatakit+unsubscribe@googlegroups.comopendatakit%2Bunsubscribe@googlegroups.com
Options: http://groups.google.com/group/opendatakit?hl=en

hey steve,

android and the computer can't write to the sd card at the same time
-- not much we can do about that. your options are...

  • manually mount when you need to remove the data. how to do this i
    don't know without looking at the phone. we can't do much about htc
    automounting your sd card. if you can ship me your phone, or setup a
    meeting with me on campus, glad to take a look. also glad to talk
    about other problems you are having then.

  • use the android emulator and iterate there to make the process
    easier. see our wiki on how to setup an android emulator. it will at
    least let you try out a bunch of stuff and then when you are satisfied
    you can put it on the phone. this is not the easies thing in the
    world, but there are good instructions online.

  • write a php script on your backend to pull the data from the http
    post collect does. the spec states it's an http post of key value
    pairs. we can't make it easier than that. you might consider
    contracting someone familiar with the javarosa tools to implement some
    or any of this. glad to recommend some devs.

  • use aggregate to stream your data elsewhere (google spreadsheets
    for example). aggregate also pushes json to servers you specify. this
    will likely be more complex that the http post on the phone.

if none of these sound reasonable, there are a wide variety of other
data collection solutions that may or may not work for you. mobile
active has a good list at http://goo.gl/DI7lv and there are a variety
of commercial solutions (pendragon being the most popular).

hope that helps,

yaw

··· On Thu, Feb 3, 2011 at 10:09, Steve Roberts wrote: > Well then that's a catch 22 then isn't it? Doesn't do me much good to turn > off mounting the sd card and plug in when the reason I plugged in was to > take data off the sd card in the first place. How do I get around this? > Yes if I turn off the automatic mounting then Collect works but then I have > no access to the data. I don't see an option for mounting the card after > plugging in (and wouldn't that cause the same problem anyway?) > > -steve- > > On Thu, Feb 3, 2011 at 7:08 AM, Yaw Anokwa wrote: >> >> it's your phone. it is auto-mounting the sd card and that will corrupt >> and crash all sorts of things. >> >> On Wed, Feb 2, 2011 at 23:56, Steve Roberts wrote: >> > On my HTC EVO Collect crashes whenever the usb cable is plugged in. >> > I've >> > had to take it in an out 50 times while I'm playing with my form xml and >> > pulling off my instances to check the results. Is this a problem just >> > with >> > my device or a general issue. >> > >> > -steve- >> > >> > -- >> > Post: opendatakit@googlegroups.com >> > Unsubscribe: opendatakit+unsubscribe@googlegroups.com >> > Options: http://groups.google.com/group/opendatakit?hl=en >> > >> >> -- >> Post: opendatakit@googlegroups.com >> Unsubscribe: opendatakit+unsubscribe@googlegroups.com >> Options: http://groups.google.com/group/opendatakit?hl=en > > -- > Post: opendatakit@googlegroups.com > Unsubscribe: opendatakit+unsubscribe@googlegroups.com > Options: http://groups.google.com/group/opendatakit?hl=en >

Thanks. Those are great suggestions. I would enjoy meeting you thanks for
the offer. I'll get a bit up to speed first. I'm playing around with an
android ftp server app that might let me access stuff and run Collect at the
same time. I am noticing that my EVO is claiming that odk is not on my sd
card but I guess in main memory. In any case I have an sdcard folder that
is empty and a same level odk folder with all the collect stuff in it. But
I suppose its all the same issue.

Yeah I wrote a php script which just (tried) to stuff the $_POST array keys
and values into a database but nothing seemed to be there I understood that
since I didn't know what response to send back and that Collect would most
likely register a failure but I was hoping it would have processed the post
variables.

-steve-

··· On Thu, Feb 3, 2011 at 10:34 AM, Yaw Anokwa wrote:

hey steve,

android and the computer can't write to the sd card at the same time
-- not much we can do about that. your options are...

  • manually mount when you need to remove the data. how to do this i
    don't know without looking at the phone. we can't do much about htc
    automounting your sd card. if you can ship me your phone, or setup a
    meeting with me on campus, glad to take a look. also glad to talk
    about other problems you are having then.

  • use the android emulator and iterate there to make the process
    easier. see our wiki on how to setup an android emulator. it will at
    least let you try out a bunch of stuff and then when you are satisfied
    you can put it on the phone. this is not the easies thing in the
    world, but there are good instructions online.

  • write a php script on your backend to pull the data from the http
    post collect does. the spec states it's an http post of key value
    pairs. we can't make it easier than that. you might consider
    contracting someone familiar with the javarosa tools to implement some
    or any of this. glad to recommend some devs.

  • use aggregate to stream your data elsewhere (google spreadsheets
    for example). aggregate also pushes json to servers you specify. this
    will likely be more complex that the http post on the phone.

if none of these sound reasonable, there are a wide variety of other
data collection solutions that may or may not work for you. mobile
active has a good list at http://goo.gl/DI7lv and there are a variety
of commercial solutions (pendragon being the most popular).

hope that helps,

yaw

On Thu, Feb 3, 2011 at 10:09, Steve Roberts steve@roberts.org wrote:

Well then that's a catch 22 then isn't it? Doesn't do me much good to
turn
off mounting the sd card and plug in when the reason I plugged in was to
take data off the sd card in the first place. How do I get around this?
Yes if I turn off the automatic mounting then Collect works but then I
have
no access to the data. I don't see an option for mounting the card after
plugging in (and wouldn't that cause the same problem anyway?)

-steve-

On Thu, Feb 3, 2011 at 7:08 AM, Yaw Anokwa yanokwa@gmail.com wrote:

it's your phone. it is auto-mounting the sd card and that will corrupt
and crash all sorts of things.

On Wed, Feb 2, 2011 at 23:56, Steve Roberts steve@roberts.org wrote:

On my HTC EVO Collect crashes whenever the usb cable is plugged in.
I've
had to take it in an out 50 times while I'm playing with my form xml
and
pulling off my instances to check the results. Is this a problem just
with
my device or a general issue.

-steve-

--
Post: opendatakit@googlegroups.com
Unsubscribe: opendatakit+unsubscribe@googlegroups.comopendatakit%2Bunsubscribe@googlegroups.com
Options: http://groups.google.com/group/opendatakit?hl=en

--
Post: opendatakit@googlegroups.com
Unsubscribe: opendatakit+unsubscribe@googlegroups.comopendatakit%2Bunsubscribe@googlegroups.com
Options: http://groups.google.com/group/opendatakit?hl=en

--
Post: opendatakit@googlegroups.com
Unsubscribe: opendatakit+unsubscribe@googlegroups.comopendatakit%2Bunsubscribe@googlegroups.com
Options: http://groups.google.com/group/opendatakit?hl=en

--
Post: opendatakit@googlegroups.com
Unsubscribe: opendatakit+unsubscribe@googlegroups.comopendatakit%2Bunsubscribe@googlegroups.com
Options: http://groups.google.com/group/opendatakit?hl=en

Depending on what you're trying to do, the other option is to turn off the
auto-mount, install the Android SDK, and use the 'adb pull' command (or
write a script around it). 'adb push/pull' allows you to read/write
information on your phone when it's connected to your computer via USB but
the SD card is not mounted.
-Carl

··· On Thu, Feb 3, 2011 at 10:54 AM, Steve Roberts wrote:

Thanks. Those are great suggestions. I would enjoy meeting you thanks for
the offer. I'll get a bit up to speed first. I'm playing around with an
android ftp server app that might let me access stuff and run Collect at the
same time. I am noticing that my EVO is claiming that odk is not on my sd
card but I guess in main memory. In any case I have an sdcard folder that
is empty and a same level odk folder with all the collect stuff in it. But
I suppose its all the same issue.

Yeah I wrote a php script which just (tried) to stuff the $_POST array keys
and values into a database but nothing seemed to be there I understood that
since I didn't know what response to send back and that Collect would most
likely register a failure but I was hoping it would have processed the post
variables.

-steve-

On Thu, Feb 3, 2011 at 10:34 AM, Yaw Anokwa yanokwa@gmail.com wrote:

hey steve,

android and the computer can't write to the sd card at the same time
-- not much we can do about that. your options are...

  • manually mount when you need to remove the data. how to do this i
    don't know without looking at the phone. we can't do much about htc
    automounting your sd card. if you can ship me your phone, or setup a
    meeting with me on campus, glad to take a look. also glad to talk
    about other problems you are having then.

  • use the android emulator and iterate there to make the process
    easier. see our wiki on how to setup an android emulator. it will at
    least let you try out a bunch of stuff and then when you are satisfied
    you can put it on the phone. this is not the easies thing in the
    world, but there are good instructions online.

  • write a php script on your backend to pull the data from the http
    post collect does. the spec states it's an http post of key value
    pairs. we can't make it easier than that. you might consider
    contracting someone familiar with the javarosa tools to implement some
    or any of this. glad to recommend some devs.

  • use aggregate to stream your data elsewhere (google spreadsheets
    for example). aggregate also pushes json to servers you specify. this
    will likely be more complex that the http post on the phone.

if none of these sound reasonable, there are a wide variety of other
data collection solutions that may or may not work for you. mobile
active has a good list at http://goo.gl/DI7lv and there are a variety
of commercial solutions (pendragon being the most popular).

hope that helps,

yaw

On Thu, Feb 3, 2011 at 10:09, Steve Roberts steve@roberts.org wrote:

Well then that's a catch 22 then isn't it? Doesn't do me much good to
turn
off mounting the sd card and plug in when the reason I plugged in was to
take data off the sd card in the first place. How do I get around this?
Yes if I turn off the automatic mounting then Collect works but then I
have
no access to the data. I don't see an option for mounting the card
after
plugging in (and wouldn't that cause the same problem anyway?)

-steve-

On Thu, Feb 3, 2011 at 7:08 AM, Yaw Anokwa yanokwa@gmail.com wrote:

it's your phone. it is auto-mounting the sd card and that will corrupt
and crash all sorts of things.

On Wed, Feb 2, 2011 at 23:56, Steve Roberts steve@roberts.org wrote:

On my HTC EVO Collect crashes whenever the usb cable is plugged in.
I've
had to take it in an out 50 times while I'm playing with my form xml
and
pulling off my instances to check the results. Is this a problem just
with
my device or a general issue.

-steve-

--
Post: opendatakit@googlegroups.com
Unsubscribe: opendatakit+unsubscribe@googlegroups.comopendatakit%2Bunsubscribe@googlegroups.com
Options: http://groups.google.com/group/opendatakit?hl=en

--
Post: opendatakit@googlegroups.com
Unsubscribe: opendatakit+unsubscribe@googlegroups.comopendatakit%2Bunsubscribe@googlegroups.com
Options: http://groups.google.com/group/opendatakit?hl=en

--
Post: opendatakit@googlegroups.com
Unsubscribe: opendatakit+unsubscribe@googlegroups.comopendatakit%2Bunsubscribe@googlegroups.com
Options: http://groups.google.com/group/opendatakit?hl=en

--
Post: opendatakit@googlegroups.com
Unsubscribe: opendatakit+unsubscribe@googlegroups.comopendatakit%2Bunsubscribe@googlegroups.com
Options: http://groups.google.com/group/opendatakit?hl=en

--
Post: opendatakit@googlegroups.com
Unsubscribe: opendatakit+unsubscribe@googlegroups.comopendatakit%2Bunsubscribe@googlegroups.com
Options: http://groups.google.com/group/opendatakit?hl=en

What's interesting is my EVO is claiming that the odk stuff is not on the sd
card. At least I have an odk folder and a sdcard folder at the same level.
Thanks for the suggestions.

··· On Thu, Feb 3, 2011 at 10:59 AM, Carl Hartung wrote:

Depending on what you're trying to do, the other option is to turn off the
auto-mount, install the Android SDK, and use the 'adb pull' command (or
write a script around it). 'adb push/pull' allows you to read/write
information on your phone when it's connected to your computer via USB but
the SD card is not mounted.
-Carl

On Thu, Feb 3, 2011 at 10:54 AM, Steve Roberts steve@roberts.org wrote:

Thanks. Those are great suggestions. I would enjoy meeting you thanks for
the offer. I'll get a bit up to speed first. I'm playing around with an
android ftp server app that might let me access stuff and run Collect at the
same time. I am noticing that my EVO is claiming that odk is not on my sd
card but I guess in main memory. In any case I have an sdcard folder that
is empty and a same level odk folder with all the collect stuff in it. But
I suppose its all the same issue.

Yeah I wrote a php script which just (tried) to stuff the $_POST array
keys and values into a database but nothing seemed to be there I understood
that since I didn't know what response to send back and that Collect would
most likely register a failure but I was hoping it would have processed the
post variables.

-steve-

On Thu, Feb 3, 2011 at 10:34 AM, Yaw Anokwa yanokwa@gmail.com wrote:

hey steve,

android and the computer can't write to the sd card at the same time
-- not much we can do about that. your options are...

  • manually mount when you need to remove the data. how to do this i
    don't know without looking at the phone. we can't do much about htc
    automounting your sd card. if you can ship me your phone, or setup a
    meeting with me on campus, glad to take a look. also glad to talk
    about other problems you are having then.

  • use the android emulator and iterate there to make the process
    easier. see our wiki on how to setup an android emulator. it will at
    least let you try out a bunch of stuff and then when you are satisfied
    you can put it on the phone. this is not the easies thing in the
    world, but there are good instructions online.

  • write a php script on your backend to pull the data from the http
    post collect does. the spec states it's an http post of key value
    pairs. we can't make it easier than that. you might consider
    contracting someone familiar with the javarosa tools to implement some
    or any of this. glad to recommend some devs.

  • use aggregate to stream your data elsewhere (google spreadsheets
    for example). aggregate also pushes json to servers you specify. this
    will likely be more complex that the http post on the phone.

if none of these sound reasonable, there are a wide variety of other
data collection solutions that may or may not work for you. mobile
active has a good list at http://goo.gl/DI7lv and there are a variety
of commercial solutions (pendragon being the most popular).

hope that helps,

yaw

On Thu, Feb 3, 2011 at 10:09, Steve Roberts steve@roberts.org wrote:

Well then that's a catch 22 then isn't it? Doesn't do me much good to
turn
off mounting the sd card and plug in when the reason I plugged in was
to
take data off the sd card in the first place. How do I get around
this?
Yes if I turn off the automatic mounting then Collect works but then I
have
no access to the data. I don't see an option for mounting the card
after
plugging in (and wouldn't that cause the same problem anyway?)

-steve-

On Thu, Feb 3, 2011 at 7:08 AM, Yaw Anokwa yanokwa@gmail.com wrote:

it's your phone. it is auto-mounting the sd card and that will corrupt
and crash all sorts of things.

On Wed, Feb 2, 2011 at 23:56, Steve Roberts steve@roberts.org wrote:

On my HTC EVO Collect crashes whenever the usb cable is plugged in.
I've
had to take it in an out 50 times while I'm playing with my form xml
and
pulling off my instances to check the results. Is this a problem
just
with
my device or a general issue.

-steve-

--
Post: opendatakit@googlegroups.com
Unsubscribe: opendatakit+unsubscribe@googlegroups.comopendatakit%2Bunsubscribe@googlegroups.com
Options: http://groups.google.com/group/opendatakit?hl=en

--
Post: opendatakit@googlegroups.com
Unsubscribe: opendatakit+unsubscribe@googlegroups.comopendatakit%2Bunsubscribe@googlegroups.com
Options: http://groups.google.com/group/opendatakit?hl=en

--
Post: opendatakit@googlegroups.com
Unsubscribe: opendatakit+unsubscribe@googlegroups.comopendatakit%2Bunsubscribe@googlegroups.com
Options: http://groups.google.com/group/opendatakit?hl=en

--
Post: opendatakit@googlegroups.com
Unsubscribe: opendatakit+unsubscribe@googlegroups.comopendatakit%2Bunsubscribe@googlegroups.com
Options: http://groups.google.com/group/opendatakit?hl=en

--
Post: opendatakit@googlegroups.com
Unsubscribe: opendatakit+unsubscribe@googlegroups.comopendatakit%2Bunsubscribe@googlegroups.com
Options: http://groups.google.com/group/opendatakit?hl=en

--
Post: opendatakit@googlegroups.com
Unsubscribe: opendatakit+unsubscribe@googlegroups.comopendatakit%2Bunsubscribe@googlegroups.com
Options: http://groups.google.com/group/opendatakit?hl=en

Attached is a simple python push/pull script that you can use to pull data
from or push data to your phone, or to multiple phones at once, if you have
Android SDK installed. You don't need to mount the SD cards. We use this
daily to pull data from our 8 phones at once, then use KoboPP to transcribe
the pulled data to CSV.

(this was written by a friend for use in our project - thanks, too, to
Andrew Azman, who wrote the first batch version that was used as a
template). I'm not the one who wrote this or knows python, so I can't
really provide support, but I'm sending it out in case it's useful to
someone!

Emily

pushpull.py (1.5 KB)

··· On Fri, Feb 4, 2011 at 12:29 AM, Carl Hartung wrote:

Depending on what you're trying to do, the other option is to turn off the
auto-mount, install the Android SDK, and use the 'adb pull' command (or
write a script around it). 'adb push/pull' allows you to read/write
information on your phone when it's connected to your computer via USB but
the SD card is not mounted.
-Carl

On Thu, Feb 3, 2011 at 10:54 AM, Steve Roberts steve@roberts.org wrote:

Thanks. Those are great suggestions. I would enjoy meeting you thanks for
the offer. I'll get a bit up to speed first. I'm playing around with an
android ftp server app that might let me access stuff and run Collect at the
same time. I am noticing that my EVO is claiming that odk is not on my sd
card but I guess in main memory. In any case I have an sdcard folder that
is empty and a same level odk folder with all the collect stuff in it. But
I suppose its all the same issue.

Yeah I wrote a php script which just (tried) to stuff the $_POST array
keys and values into a database but nothing seemed to be there I understood
that since I didn't know what response to send back and that Collect would
most likely register a failure but I was hoping it would have processed the
post variables.

-steve-

On Thu, Feb 3, 2011 at 10:34 AM, Yaw Anokwa yanokwa@gmail.com wrote:

hey steve,

android and the computer can't write to the sd card at the same time
-- not much we can do about that. your options are...

  • manually mount when you need to remove the data. how to do this i
    don't know without looking at the phone. we can't do much about htc
    automounting your sd card. if you can ship me your phone, or setup a
    meeting with me on campus, glad to take a look. also glad to talk
    about other problems you are having then.

  • use the android emulator and iterate there to make the process
    easier. see our wiki on how to setup an android emulator. it will at
    least let you try out a bunch of stuff and then when you are satisfied
    you can put it on the phone. this is not the easies thing in the
    world, but there are good instructions online.

  • write a php script on your backend to pull the data from the http
    post collect does. the spec states it's an http post of key value
    pairs. we can't make it easier than that. you might consider
    contracting someone familiar with the javarosa tools to implement some
    or any of this. glad to recommend some devs.

  • use aggregate to stream your data elsewhere (google spreadsheets
    for example). aggregate also pushes json to servers you specify. this
    will likely be more complex that the http post on the phone.

if none of these sound reasonable, there are a wide variety of other
data collection solutions that may or may not work for you. mobile
active has a good list at http://goo.gl/DI7lv and there are a variety
of commercial solutions (pendragon being the most popular).

hope that helps,

yaw

On Thu, Feb 3, 2011 at 10:09, Steve Roberts steve@roberts.org wrote:

Well then that's a catch 22 then isn't it? Doesn't do me much good to
turn
off mounting the sd card and plug in when the reason I plugged in was
to
take data off the sd card in the first place. How do I get around
this?
Yes if I turn off the automatic mounting then Collect works but then I
have
no access to the data. I don't see an option for mounting the card
after
plugging in (and wouldn't that cause the same problem anyway?)

-steve-

On Thu, Feb 3, 2011 at 7:08 AM, Yaw Anokwa yanokwa@gmail.com wrote:

it's your phone. it is auto-mounting the sd card and that will corrupt
and crash all sorts of things.

On Wed, Feb 2, 2011 at 23:56, Steve Roberts steve@roberts.org wrote:

On my HTC EVO Collect crashes whenever the usb cable is plugged in.
I've
had to take it in an out 50 times while I'm playing with my form xml
and
pulling off my instances to check the results. Is this a problem
just
with
my device or a general issue.

-steve-

--
Post: opendatakit@googlegroups.com
Unsubscribe: opendatakit+unsubscribe@googlegroups.comopendatakit%2Bunsubscribe@googlegroups.com
Options: http://groups.google.com/group/opendatakit?hl=en

--
Post: opendatakit@googlegroups.com
Unsubscribe: opendatakit+unsubscribe@googlegroups.comopendatakit%2Bunsubscribe@googlegroups.com
Options: http://groups.google.com/group/opendatakit?hl=en

--
Post: opendatakit@googlegroups.com
Unsubscribe: opendatakit+unsubscribe@googlegroups.comopendatakit%2Bunsubscribe@googlegroups.com
Options: http://groups.google.com/group/opendatakit?hl=en

--
Post: opendatakit@googlegroups.com
Unsubscribe: opendatakit+unsubscribe@googlegroups.comopendatakit%2Bunsubscribe@googlegroups.com
Options: http://groups.google.com/group/opendatakit?hl=en

--
Post: opendatakit@googlegroups.com
Unsubscribe: opendatakit+unsubscribe@googlegroups.comopendatakit%2Bunsubscribe@googlegroups.com
Options: http://groups.google.com/group/opendatakit?hl=en

--
Post: opendatakit@googlegroups.com
Unsubscribe: opendatakit+unsubscribe@googlegroups.comopendatakit%2Bunsubscribe@googlegroups.com
Options: http://groups.google.com/group/opendatakit?hl=en

this is great.
I suppose you are using this while you have a multi-port hub connecting 8
devices to your laptop.
Have you experienced any problem with losing data? We found in testing that
more than 5 devices on a hub could present a problem where one or more
failed to sync.

☞§※☼:airplane::open_umbrella::slight_smile:
~Neil

··· On Thu, Feb 3, 2011 at 10:22 PM, Emily Kumpel wrote:

Attached is a simple python push/pull script that you can use to pull data
from or push data to your phone, or to multiple phones at once, if you have
Android SDK installed. You don't need to mount the SD cards. We use this
daily to pull data from our 8 phones at once, then use KoboPP to transcribe
the pulled data to CSV.

(this was written by a friend for use in our project - thanks, too, to
Andrew Azman, who wrote the first batch version that was used as a
template). I'm not the one who wrote this or knows python, so I can't
really provide support, but I'm sending it out in case it's useful to
someone!

Emily

On Fri, Feb 4, 2011 at 12:29 AM, Carl Hartung carlhartung@gmail.comwrote:

Depending on what you're trying to do, the other option is to turn off the
auto-mount, install the Android SDK, and use the 'adb pull' command (or
write a script around it). 'adb push/pull' allows you to read/write
information on your phone when it's connected to your computer via USB but
the SD card is not mounted.
-Carl

On Thu, Feb 3, 2011 at 10:54 AM, Steve Roberts steve@roberts.org wrote:

Thanks. Those are great suggestions. I would enjoy meeting you thanks
for the offer. I'll get a bit up to speed first. I'm playing around with an
android ftp server app that might let me access stuff and run Collect at the
same time. I am noticing that my EVO is claiming that odk is not on my sd
card but I guess in main memory. In any case I have an sdcard folder that
is empty and a same level odk folder with all the collect stuff in it. But
I suppose its all the same issue.

Yeah I wrote a php script which just (tried) to stuff the $_POST array
keys and values into a database but nothing seemed to be there I understood
that since I didn't know what response to send back and that Collect would
most likely register a failure but I was hoping it would have processed the
post variables.

-steve-

On Thu, Feb 3, 2011 at 10:34 AM, Yaw Anokwa yanokwa@gmail.com wrote:

hey steve,

android and the computer can't write to the sd card at the same time
-- not much we can do about that. your options are...

  • manually mount when you need to remove the data. how to do this i
    don't know without looking at the phone. we can't do much about htc
    automounting your sd card. if you can ship me your phone, or setup a
    meeting with me on campus, glad to take a look. also glad to talk
    about other problems you are having then.

  • use the android emulator and iterate there to make the process
    easier. see our wiki on how to setup an android emulator. it will at
    least let you try out a bunch of stuff and then when you are satisfied
    you can put it on the phone. this is not the easies thing in the
    world, but there are good instructions online.

  • write a php script on your backend to pull the data from the http
    post collect does. the spec states it's an http post of key value
    pairs. we can't make it easier than that. you might consider
    contracting someone familiar with the javarosa tools to implement some
    or any of this. glad to recommend some devs.

  • use aggregate to stream your data elsewhere (google spreadsheets
    for example). aggregate also pushes json to servers you specify. this
    will likely be more complex that the http post on the phone.

if none of these sound reasonable, there are a wide variety of other
data collection solutions that may or may not work for you. mobile
active has a good list at http://goo.gl/DI7lv and there are a variety
of commercial solutions (pendragon being the most popular).

hope that helps,

yaw

On Thu, Feb 3, 2011 at 10:09, Steve Roberts steve@roberts.org wrote:

Well then that's a catch 22 then isn't it? Doesn't do me much good to
turn
off mounting the sd card and plug in when the reason I plugged in was
to
take data off the sd card in the first place. How do I get around
this?
Yes if I turn off the automatic mounting then Collect works but then I
have
no access to the data. I don't see an option for mounting the card
after
plugging in (and wouldn't that cause the same problem anyway?)

-steve-

On Thu, Feb 3, 2011 at 7:08 AM, Yaw Anokwa yanokwa@gmail.com wrote:

it's your phone. it is auto-mounting the sd card and that will
corrupt
and crash all sorts of things.

On Wed, Feb 2, 2011 at 23:56, Steve Roberts steve@roberts.org wrote:

On my HTC EVO Collect crashes whenever the usb cable is plugged in.
I've
had to take it in an out 50 times while I'm playing with my form
xml and
pulling off my instances to check the results. Is this a problem
just
with
my device or a general issue.

-steve-

--
Post: opendatakit@googlegroups.com
Unsubscribe: opendatakit+unsubscribe@googlegroups.comopendatakit%2Bunsubscribe@googlegroups.com
Options: http://groups.google.com/group/opendatakit?hl=en

--
Post: opendatakit@googlegroups.com
Unsubscribe: opendatakit+unsubscribe@googlegroups.comopendatakit%2Bunsubscribe@googlegroups.com
Options: http://groups.google.com/group/opendatakit?hl=en

--
Post: opendatakit@googlegroups.com
Unsubscribe: opendatakit+unsubscribe@googlegroups.comopendatakit%2Bunsubscribe@googlegroups.com
Options: http://groups.google.com/group/opendatakit?hl=en

--
Post: opendatakit@googlegroups.com
Unsubscribe: opendatakit+unsubscribe@googlegroups.comopendatakit%2Bunsubscribe@googlegroups.com
Options: http://groups.google.com/group/opendatakit?hl=en

--
Post: opendatakit@googlegroups.com
Unsubscribe: opendatakit+unsubscribe@googlegroups.comopendatakit%2Bunsubscribe@googlegroups.com
Options: http://groups.google.com/group/opendatakit?hl=en

--
Post: opendatakit@googlegroups.com
Unsubscribe: opendatakit+unsubscribe@googlegroups.comopendatakit%2Bunsubscribe@googlegroups.com
Options: http://groups.google.com/group/opendatakit?hl=en

--
Post: opendatakit@googlegroups.com
Unsubscribe: opendatakit+unsubscribe@googlegroups.comopendatakit%2Bunsubscribe@googlegroups.com
Options: http://groups.google.com/group/opendatakit?hl=en

I've tried it a few times with 8 phones hooked up to my laptop using 2
4-port USB hubs and it had worked (just had to carefully call all the
devices to see if they were, in fact, attached). However, now our field
supervisor is doing two rounds of 4 at a time anyway, since the desktop
has only 1 USB port working and we just have a 4 port hub. Also, our
enumerators are in teams of 4, so he pulls the data by team, checks if
the expected number of survey appears (based on a simple count of how
many each enumerator in that team did that day, which we have on a paper
sheet).

We had a few problems with data loss the first week, but I figured out
it was because we were using a flimsy USB hub. We got a better quality
hub and it's been generally working fine for 4 devices at a time.
After each pull round, our field supervisor checks that the household
IDs that are listed in the transcribed data match those on a physical
sheet of paper we have from the assistant field supervisors that lists
the household IDs that were used that day. If there are any missing, he
catches them in that step and then goes back to the appropriate phone
and pulls it manually - this only happened once or twice in 3 months.
However, in the last week or two (after 3 months of using this system, 6
days a week), we've been losing 1-2 surveys a week in the pull
operation. My only guess is that maybe it's wear of the USB hub, based
on our experience before? Unless anyone else has better ideas! But I'll
experiment and get a new hub and see if that solves the issue.

··· On 2/4/2011 8:36 PM, Neil Hendrick wrote: > this is great. > I suppose you are using this while you have a multi-port hub > connecting 8 devices to your laptop. > Have you experienced any problem with losing data? We found in testing > that more than 5 devices on a hub could present a problem where one or > more failed to sync. > > ☞§※☼✈☂☻ > ~Neil > > > > On Thu, Feb 3, 2011 at 10:22 PM, Emily Kumpel <emily.kumpel@gmail.com > wrote: > > Attached is a simple python push/pull script that you can use to > pull data from or push data to your phone, or to multiple phones > at once, if you have Android SDK installed. You don't need to > mount the SD cards. We use this daily to pull data from our 8 > phones at once, then use KoboPP to transcribe the pulled data to CSV. > > (this was written by a friend for use in our project - thanks, > too, to Andrew Azman, who wrote the first batch version that was > used as a template). I'm not the one who wrote this or knows > python, so I can't really provide support, but I'm sending it out > in case it's useful to someone! > > Emily > > > > On Fri, Feb 4, 2011 at 12:29 AM, Carl Hartung <carlhartung@gmail.com > wrote: > > Depending on what you're trying to do, the other option is to > turn off the auto-mount, install the Android SDK, and use the > 'adb pull' command (or write a script around it). 'adb > push/pull' allows you to read/write information on your phone > when it's connected to your computer via USB but the SD card > is not mounted. > -Carl > > > > On Thu, Feb 3, 2011 at 10:54 AM, Steve Roberts <steve@roberts.org > wrote: > > Thanks. Those are great suggestions. I would enjoy > meeting you thanks for the offer. I'll get a bit up to > speed first. I'm playing around with an android ftp server > app that might let me access stuff and run Collect at the > same time. I am noticing that my EVO is claiming that odk > is not on my sd card but I guess in main memory. In any > case I have an sdcard folder that is empty and a same > level odk folder with all the collect stuff in it. But I > suppose its all the same issue. > > Yeah I wrote a php script which just (tried) to stuff the > $_POST array keys and values into a database but nothing > seemed to be there I understood that since I didn't know > what response to send back and that Collect would most > likely register a failure but I was hoping it would have > processed the post variables. > > -steve- > > > On Thu, Feb 3, 2011 at 10:34 AM, Yaw Anokwa <yanokwa@gmail.com > wrote: > > hey steve, > > android and the computer can't write to the sd card at > the same time > -- not much we can do about that. your options are... > > - manually mount when you need to remove the data. > how to do this i > don't know without looking at the phone. we can't do > much about htc > automounting your sd card. if you can ship me your > phone, or setup a > meeting with me on campus, glad to take a look. also > glad to talk > about other problems you are having then. > > - use the android emulator and iterate there to make > the process > easier. see our wiki on how to setup an android > emulator. it will at > least let you try out a bunch of stuff and then when > you are satisfied > you can put it on the phone. this is not the easies > thing in the > world, but there are good instructions online. > > - write a php script on your backend to pull the data > from the http > post collect does. the spec states it's an http post > of key value > pairs. we can't make it easier than that. you might > consider > contracting someone familiar with the javarosa tools > to implement some > or any of this. glad to recommend some devs. > > - use aggregate to stream your data elsewhere (google > spreadsheets > for example). aggregate also pushes json to servers > you specify. this > will likely be more complex that the http post on the > phone. > > if none of these sound reasonable, there are a wide > variety of other > data collection solutions that may or may not work for > you. mobile > active has a good list at http://goo.gl/DI7lv and > there are a variety > of commercial solutions (pendragon being the most > popular). > > hope that helps, > > yaw > > On Thu, Feb 3, 2011 at 10:09, Steve Roberts <steve@roberts.org > wrote: > > Well then that's a catch 22 then isn't it? Doesn't > do me much good to turn > > off mounting the sd card and plug in when the reason > I plugged in was to > > take data off the sd card in the first place. How > do I get around this? > > Yes if I turn off the automatic mounting then > Collect works but then I have > > no access to the data. I don't see an option for > mounting the card after > > plugging in (and wouldn't that cause the same > problem anyway?) > > > > -steve- > > > > On Thu, Feb 3, 2011 at 7:08 AM, Yaw Anokwa <yanokwa@gmail.com > wrote: > >> > >> it's your phone. it is auto-mounting the sd card > and that will corrupt > >> and crash all sorts of things. > >> > >> On Wed, Feb 2, 2011 at 23:56, Steve Roberts <steve@roberts.org > wrote: > >> > On my HTC EVO Collect crashes whenever the usb > cable is plugged in. > >> > I've > >> > had to take it in an out 50 times while I'm > playing with my form xml and > >> > pulling off my instances to check the results. Is > this a problem just > >> > with > >> > my device or a general issue. > >> > > >> > -steve- > >> > > >> > -- > >> > Post: opendatakit@googlegroups.com > > >> > Unsubscribe: > opendatakit+unsubscribe@googlegroups.com > > >> > Options: > http://groups.google.com/group/opendatakit?hl=en > >> > > >> > >> -- > >> Post: opendatakit@googlegroups.com > > >> Unsubscribe: > opendatakit+unsubscribe@googlegroups.com > > >> Options: > http://groups.google.com/group/opendatakit?hl=en > > > > -- > > Post: opendatakit@googlegroups.com > > > Unsubscribe: > opendatakit+unsubscribe@googlegroups.com > > > Options: > http://groups.google.com/group/opendatakit?hl=en > > > > -- > Post: opendatakit@googlegroups.com > > Unsubscribe: opendatakit+unsubscribe@googlegroups.com > > Options: http://groups.google.com/group/opendatakit?hl=en > > > -- > Post: opendatakit@googlegroups.com > > Unsubscribe: opendatakit+unsubscribe@googlegroups.com > > Options: http://groups.google.com/group/opendatakit?hl=en > > > -- > Post: opendatakit@googlegroups.com > > Unsubscribe: opendatakit+unsubscribe@googlegroups.com > > Options: http://groups.google.com/group/opendatakit?hl=en > > > -- > Post: opendatakit@googlegroups.com > > Unsubscribe: opendatakit+unsubscribe@googlegroups.com > > Options: http://groups.google.com/group/opendatakit?hl=en > > > -- > Post: opendatakit@googlegroups.com > Unsubscribe: opendatakit+unsubscribe@googlegroups.com > Options: http://groups.google.com/group/opendatakit?hl=en