martes, 17 de mayo de 2011

Como llegar a LazaroCardenas, Mich

Lineas de autobuses

Parhikuni
http://parhikuni.com.mx/

Autovias
http://www.hdp.com.mx/inicio/

miƩrcoles, 17 de marzo de 2010

Momentics Software Platform

Despues de instalar el ide de qnx Momentics,
se tiene que cerrar e iniciar sesion, para despues
ejecutar en terminal el ide con:
qde

Pero resulta que al abrir la aplicacion esta abre un ventana
con el titulo qde y se queda congelada, para evitar esto, se
realiza lo siguiente:

instalar xulrunner version 1.9 o mas reciente

e insertar en qde.ini la siguiente linea, haciendo la modificacion correcta sobre la version de xulrunner 
-Dorg.eclipse.swt.browser.XULRunnerPath=/usr/lib/xulrunner-1.9.1/xulrunner

qde.ini esta ubicado en el ide que es eclipse, por ejemplo:

/opt/qnx641/host/linux/x86/usr/qde/eclipse/qde.ini 

viernes, 1 de enero de 2010

Install wiican in Ubuntu karmic

Run the following commands from your terminal

sudo add-apt-repository ppa:fontanon/wiican

Update source list

sudo apt-get update

Install willcan

sudo apt-get install wiican

jueves, 31 de diciembre de 2009

Linux

To be able to understand or to evaluate different howtos it is important to understand basics of the bluetooth layered architecture. http://en.wikipedia.org/wiki/Bluetooth_protocols Otherwise with all the different linux tools for each layer it looks like a mess. You will need at least following tools:

  • 'hcitool' to find your mobile device
  • 'sdptool' and 'sdpd' daemon to register services like serial port
  • 'rfcomm' to emulate serial port over bluetooth
  • 'cu' or any other terminal program

Instructions

Plug-in your bluetooth adapter, and then from the shell:

  • $ hciconfig reset

Then check that the device exists by typing:

  • $ hcitool dev

Register a serial port (use channel 2. For some reason, channel 1 and channel 3 might not let the connection through)

  • $ sdptool add --channel=2 SP

Now listen to the channel:

  • $ rfcomm listen rfcomm2 2

In your phone, make sure bluetooth is on, then go to the Python application and then select the Bluetooth Console. Select from the list of available devices your computer's bluetooth adapter (you might need to select search even if you think you have already defined the pairing). If the operation is successful, you should see something similar to the following on your computer's shell:

  • Waiting for connection on channel 2
  • Connection from 00:11:9F:BE:47:CA to /dev/rfcomm2
  • Press CTRL-C for hangup

Now open a new shell terminal and execute:

  • $ cu -l /dev/rfcomm2

You're now in control of your mobile's python console :)

NOTE: In some Linux distributions cu command is not a shell built-in. In that case you must use the minicom program which is equivalent to cu.

Example: In Pardus Linux type sudo pisi it minicom to install it.

Tested with:

  • Nokia 6630, Ubuntu 7.10.
  • N73, Ubuntu 7.04, Thinkpad T42p.
  • N95, Debian (kernel 2.6.26) - you need to use minicom -o instead of cu
  • Nokia 5530, Gentoo (kernel 2.6.30, bluez 4.39-r2)

Notes:

  • This procedure doesn't work on Ubuntu 8.04 due a bug in bluez-utils [1] and can be temporally fixed till hardy is updated installing debian sid package [2]

Controlando el puntero del raton con Python

from Xlib import X, display
d
= display.Display()
s
= d.screen()
root
= s.root
root
.warp_pointer(300,300)
d
.sync()

lunes, 3 de agosto de 2009

servidor de video de webcam...

GStreamer

para enviar video

gst-launch v4l2src ! video/x-raw-yuv,width=320,height=240,framerate=\(fraction\)5/1 ! ffmpegcolorspace ! jpegenc ! multipartmux ! tcpserversink host=localhost port=5000

para recibir video:

gst-launch tcpclientsrc host=localhost port=5000 ! multipartdemux ! jpegdec ! autovideosink


miƩrcoles, 1 de julio de 2009

Listar puertos seriales en python

Me es necesario enlistar los puertos que tiene mi equipo de desarrollo, tons tengo este script

import os
def EnumeraPuertos():
o=os.popen("ls /dev/tty*")
p=o.read()
q=p.split('\n')
Lista=[]
cuenta=0
for i in range(len(q)):
if q[i].startswith("/dev/ttyUSB") or q[i].startswith("/dev/ttyS"):
Lista.insert(len(Lista), q[i])
cuenta+=1
if cuenta > 0:
for i in range (len(Lista)):
print Lista[i]
else:
print "no hay puertos seriales..."
if __name__=="__main__":
EnumeraPuertos()