Re: [Elphel-support] Elphel camera with Raspberry Pi

2013-01-08 Thread David Haberthür

On 01/07/2013 09:21 PM, Oleg wrote:

Hi David,

You could try this link
http://wiki.elphel.com/index.php?title=Elphel_353_series_quick_start_guide#Getting_the_first_images:

http://192.168.0.9:8081/bimg



I'm getting the images with a (growing) Python script, the relevant part 
is copied below


  # get options.Images number of images
  for i in range(1,options.Images+1):
print 'writing image ' + str(i) + '/' + str(options.Images)
if options.FileName:
  FileName = options.FileName + '_' + str('%.04d' % i) + '.jpg'
else:
  FileName = str(time.time()) + '.jpg'
  # get the url of the camera which spits out an image
  # save the image to 'SaveDir', with the desired name, set above
  urllib.urlretrieve(
http://192.168.0.9:8081/wait/bimg;,
os.path.join(SaveDir,FileName)
)

so that part works fine :)

But - as Alexandre suggested - I'll trigger the camera externally and do 
some more testing.


Thanks for the help and pointers!
David

___
Support-list mailing list
Support-list@support.elphel.com
http://support.elphel.com/mailman/listinfo/support-list_support.elphel.com


Re: [Elphel-support] Elphel camera with Raspberry Pi

2013-01-07 Thread David Haberthür

Dear all.

Thanks to one of the Masterstudents here, which has extensive experience 
with LAN-Parties I managed to find and correct the problem.
The non-working connection was not based on the auto-negotiation, but a 
problem of correct setting of the involved the IPs. Somehow DHCP on 
Raspbian [1] doesn't get it when the camera is connected.


Typing
$ sudo ifconfig 192.168.0.1
, unplugging and reconnecting the camera did the trick.

Now I'm onto the next problem. The user-interface over 
192.168.0.9/camvc.html is unuseably slow on that whimsy computer, so I 
need to whip up some Python code to download single images as fast as 
possible...


David

[1]: http://www.raspberrypi.org/downloads

On 10/30/2012 07:45 AM, Alexandre Poltorak wrote:

David,
This should solve the problem on raspberry pi:
mii-tool -A 100baseTx eth0

Best regards
Alexandre Poltorak
Alsenet SA

- Mail original -
| De: Alexandre Poltorakalexan...@elphel.com
| À: David Haberthürdavid.haberth...@psi.ch
| Cc: support-list@support.elphel.com
| Envoyé: Lundi 29 Octobre 2012 19:42:25
| Objet: Re: [Elphel-support] Elphel camera with Raspberry Pi
|
| Hello David,
|
| Auto-negotiation between raspbery-pi and Elphel 353 with a
| power-injector in the middle may not work. Please try to manually set
| the network link using mii-tool on Raspbery-pi.
|
| Regards,
| Alexandre
|
| On Mon, Oct 29, 2012 at 6:03 PM, David Haberthür
|david.haberth...@psi.ch  wrote:
|  Dear All.
|  I intend to run an Elphel NC353L [1] on a Raspberry Pi [2], but run
|  into
|  troubles with the connection. Whenever I connect the camera via
|  Ethernet,
|  the yellow LED starts to blink, but I cannot connect to the camera
|  with the
|  Browser. Whenever I ping the camera on 192.168.0.9, the green LED
|  periodically blinks, but the terminal of the Raspberry Pi complains
|  that the
|  host is unreachable.
|  Whenever I plug the Ethernet cable into my Macbook Pro I get a
|  connection
|  without troubles. Do I need to configure the Ethernet port on
|  Debian to talk
|  to the camera while I don't need to do that on OS X? Whenever I
|  connect a
|  LAN cable I can access the web on the Raspberry Pi, just not the
|  camera...
|  I would be grateful for some help,
|  David
|
|  [1]: Currently on loan by the Swiss office of Elphel, Alexandre
|  Poltorak.
|  [2]: http://www.raspberrypi.org/
|
|  --
|  Dr. David Haberthür
|  Swiss Light Source
|  Paul Scherrer Institut
|  WBBA/207
|  CH-5232 Villigen
|  +41 56 310 31 80
|
|  ___
|  Support-list mailing list
|  Support-list@support.elphel.com
|  http://support.elphel.com/mailman/listinfo/support-list_support.elphel.com
|
| ___
| Support-list mailing list
| Support-list@support.elphel.com
| http://support.elphel.com/mailman/listinfo/support-list_support.elphel.com
|



___
Support-list mailing list
Support-list@support.elphel.com
http://support.elphel.com/mailman/listinfo/support-list_support.elphel.com


Re: [Elphel-support] Elphel camera with Raspberry Pi

2013-01-07 Thread Oleg
Hi David,

You could try this
linkhttp://wiki.elphel.com/index.php?title=Elphel_353_series_quick_start_guide#Getting_the_first_images
:

 http://192.168.0.9:8081/bimg


Best regards,
Oleg Dzhimiev
Electronics Engineer
phone: +1 801 783  x124
Elphel, Inc.
___
Support-list mailing list
Support-list@support.elphel.com
http://support.elphel.com/mailman/listinfo/support-list_support.elphel.com


Re: [Elphel-support] Elphel camera with Raspberry Pi

2013-01-07 Thread Alexandre Poltorak
David,

On the camera you can use http://wiki.elphel.com/index.php?title=Parsedit.php 
to set camera parameters once.

The camera run PHP scripts, you can see some examples here: 
http://wiki.elphel.com/index.php?title=PHP_Examples

But all you need for your usage is to set the camera in triggered mode 
(external trigger) http://wiki.elphel.com/index.php?title=Trigger and use 
http://wiki.elphel.com/index.php?title=Imgsrv to download a single image. 

on Raspberry pi side all you need is wget http://192.168.0.9:8081/bimg;

Regards,
Alexandre Poltorak
Alsenet SA

- Mail original -
| De: David Haberthür david.haberth...@psi.ch
| À: lengacher_p patrik.lengac...@psi.ch
| Cc: support-list@support.elphel.com
| Envoyé: Lundi 7 Janvier 2013 16:18:03
| Objet: Re: [Elphel-support] Elphel camera with Raspberry Pi
| 
| Dear all.
| 
| Thanks to one of the Masterstudents here, which has extensive
| experience
| with LAN-Parties I managed to find and correct the problem.
| The non-working connection was not based on the auto-negotiation, but
| a
| problem of correct setting of the involved the IPs. Somehow DHCP on
| Raspbian [1] doesn't get it when the camera is connected.
| 
| Typing
|   $ sudo ifconfig 192.168.0.1
| , unplugging and reconnecting the camera did the trick.
| 
| Now I'm onto the next problem. The user-interface over
| 192.168.0.9/camvc.html is unuseably slow on that whimsy computer, so
| I
| need to whip up some Python code to download single images as fast as
| possible...
| 
| David
| 
| [1]: http://www.raspberrypi.org/downloads
| 
| On 10/30/2012 07:45 AM, Alexandre Poltorak wrote:
|  David,
|  This should solve the problem on raspberry pi:
|  mii-tool -A 100baseTx eth0
| 
|  Best regards
|  Alexandre Poltorak
|  Alsenet SA
| 
|  - Mail original -
|  | De: Alexandre Poltorakalexan...@elphel.com
|  | À: David Haberthürdavid.haberth...@psi.ch
|  | Cc: support-list@support.elphel.com
|  | Envoyé: Lundi 29 Octobre 2012 19:42:25
|  | Objet: Re: [Elphel-support] Elphel camera with Raspberry Pi
|  |
|  | Hello David,
|  |
|  | Auto-negotiation between raspbery-pi and Elphel 353 with a
|  | power-injector in the middle may not work. Please try to manually
|  | set
|  | the network link using mii-tool on Raspbery-pi.
|  |
|  | Regards,
|  | Alexandre
|  |
|  | On Mon, Oct 29, 2012 at 6:03 PM, David Haberthür
|  |david.haberth...@psi.ch  wrote:
|  |  Dear All.
|  |  I intend to run an Elphel NC353L [1] on a Raspberry Pi [2], but
|  |  run
|  |  into
|  |  troubles with the connection. Whenever I connect the camera via
|  |  Ethernet,
|  |  the yellow LED starts to blink, but I cannot connect to the
|  |  camera
|  |  with the
|  |  Browser. Whenever I ping the camera on 192.168.0.9, the green
|  |  LED
|  |  periodically blinks, but the terminal of the Raspberry Pi
|  |  complains
|  |  that the
|  |  host is unreachable.
|  |  Whenever I plug the Ethernet cable into my Macbook Pro I get a
|  |  connection
|  |  without troubles. Do I need to configure the Ethernet port on
|  |  Debian to talk
|  |  to the camera while I don't need to do that on OS X? Whenever I
|  |  connect a
|  |  LAN cable I can access the web on the Raspberry Pi, just not
|  |  the
|  |  camera...
|  |  I would be grateful for some help,
|  |  David
|  |
|  |  [1]: Currently on loan by the Swiss office of Elphel,
|  |  Alexandre
|  |  Poltorak.
|  |  [2]: http://www.raspberrypi.org/
|  |
|  |  --
|  |  Dr. David Haberthür
|  |  Swiss Light Source
|  |  Paul Scherrer Institut
|  |  WBBA/207
|  |  CH-5232 Villigen
|  |  +41 56 310 31 80
|  |
|  |  ___
|  |  Support-list mailing list
|  |  Support-list@support.elphel.com
|  |  
http://support.elphel.com/mailman/listinfo/support-list_support.elphel.com
|  |
|  | ___
|  | Support-list mailing list
|  | Support-list@support.elphel.com
|  | http://support.elphel.com/mailman/listinfo/support-list_support.elphel.com
|  |
| 
| 
| ___
| Support-list mailing list
| Support-list@support.elphel.com
| http://support.elphel.com/mailman/listinfo/support-list_support.elphel.com
| 

___
Support-list mailing list
Support-list@support.elphel.com
http://support.elphel.com/mailman/listinfo/support-list_support.elphel.com


Re: [Elphel-support] Elphel camera with Raspberry Pi

2012-10-29 Thread Alexandre Poltorak
Hello David,

Auto-negotiation between raspbery-pi and Elphel 353 with a
power-injector in the middle may not work. Please try to manually set
the network link using mii-tool on Raspbery-pi.

Regards,
Alexandre

On Mon, Oct 29, 2012 at 6:03 PM, David Haberthür
david.haberth...@psi.ch wrote:
 Dear All.
 I intend to run an Elphel NC353L [1] on a Raspberry Pi [2], but run into
 troubles with the connection. Whenever I connect the camera via Ethernet,
 the yellow LED starts to blink, but I cannot connect to the camera with the
 Browser. Whenever I ping the camera on 192.168.0.9, the green LED
 periodically blinks, but the terminal of the Raspberry Pi complains that the
 host is unreachable.
 Whenever I plug the Ethernet cable into my Macbook Pro I get a connection
 without troubles. Do I need to configure the Ethernet port on Debian to talk
 to the camera while I don't need to do that on OS X? Whenever I connect a
 LAN cable I can access the web on the Raspberry Pi, just not the camera...
 I would be grateful for some help,
 David

 [1]: Currently on loan by the Swiss office of Elphel, Alexandre Poltorak.
 [2]: http://www.raspberrypi.org/

 --
 Dr. David Haberthür
 Swiss Light Source
 Paul Scherrer Institut
 WBBA/207
 CH-5232 Villigen
 +41 56 310 31 80

 ___
 Support-list mailing list
 Support-list@support.elphel.com
 http://support.elphel.com/mailman/listinfo/support-list_support.elphel.com

___
Support-list mailing list
Support-list@support.elphel.com
http://support.elphel.com/mailman/listinfo/support-list_support.elphel.com