07.29.09

OCB and Resource Managers

Publicado en Ciencia a 4:20 pm por Arturo Plauchu

I registered my device names /dev/plc and /dev/plc/0-20. Now I’m using the OCB… the second would drive the first 20 bytes in data (for example).

well… Where is the data struct who give me the name for the device (in a string or an unique id) that call the io_write o io_read function?.

I saw some structures and I didn’t see any member as a (char *) with the name as I wrote in the resmgr_attach() function.

The io_read/io_write function parameters are a IOFUNC_OCB_T pointer, a resmgr_context_t pointer and io_write_t or io_read_t pointer.

Is that information in a special structure?

I need that information to my io_read/io_write functions who call the driver functions. So… I’ll seek only the registers who i want.

Sorry my english. :) . See you later alligators!

Resource Manager, POSIX API

Publicado en Ciencia a 4:06 pm por Arturo Plauchu

My idea was a POSIX development, thats is the reason that I want develop the RM. The communication would be via tcp/ip (serial in a future). Of course that I was thinking in a just a process but the POSIX is rounding at my mind jaja.

the first question about the RM woulb be…

How do I do to attach the device name?… well the doumentation have that with examples. But..

How do I do to attach a sector device name?… for example if I want to read a address N40:1/10 (a bit) in /dev/myplc/N40/1/10 (with a cat command). am I crazy? Is this possible?… The documentation have something called OCB but it’s not clear to me…yet Smile.

Thanks all, and good luck.

Resource Managers in QNX

Publicado en Amigos a 3:58 pm por Arturo Plauchu

I’m trying to develop a resource manager but I don’t have idea how to develop this for plc AB SLC 504 or any. This forum will try to know “How”.

Steps:
1.- Resource Manager (attach the device name and device register access, etc)
2.- Driver

Documentation:

http://www.qnx.com/developers/docs/6.3.2/neutrino/prog/resmgr.html

A guide, extra documentation… anything?…. Consulting work? …. it’s only for fun and knowledge. The PLC was a gift jeje Very Happy. Any knowledge about that I’ll write it here…. sorry my english.

Thanks

07.20.09

QNX y la vida de los RTOS en un geek como yo

Publicado en Amigos a 4:57 pm por Arturo Plauchu

Ya hace mucho que no escribia en mi blog pero regreso para narrar una de mis nuevas aventuras en el mundo del software.

Oye Chu pero en que andas?.

Despues de estar desarrollando Redes Sociales para la Web2.0 decidi cambiar el giro de las cosas y pense “Esto de la informatica APESTA”, si ya lo saben, la informatica tipica de alta, cambios, bajas, etc, etc y todas sus sandeces repetitivas en el modelo CRUD, me tienen hasta el zopete!!.

Regrese al mundo de la Automatizacion. Ese mundo me dejo el ojo puesto en un sistema operativo de tiempo real llamado QNX, lo he empezado a estudiar (sin antes mencionar que estube cerca de 2 años programando en un nivel mas alto. Maquinas de Estado, Hilos, etc.). Ahora que he decidido que ese tipo de programacion ya me tiene hasta el zopete, decidi incursar en la programacion a nivel sistema operativo y drivers, un poco bajo nivel :) .

Ahora estoy programando a nivel del microKernel de QNX Neutrino. Estudiando IPC, Resouce Managers, etc. Estoy agusto por el momento. He decidido que ya basta de leer por el momento y es tiempo de hechar codigo y estoy desarrollando y adaptando mi Resource Manager para despues crear unos drivers para cierta marca de PLC y otras mas. Ojala pueda crear una arquitectura lo bastante solida que me sienta orgulloso, y asi regodearme en mi ego geek que todos Ing. en Sistemas Comp. deberian por lo menos tener para contribuir a la comunidad y hacer a Mexico un poco mas competitivo no creen?.

Espero seguir en este tipo de programacion tanto para el Kernel Linux y el microKernel de QNX, ya que realmente la informatica tradicional me aburre. No se preocupen sigo siendo Linuxero, pero para RTOS, QNX. Lo que es del Cesar para el Cesar.

Y para los que se preguntan como me va en mi vida de casado…. pues me va muy bien :) . Viviendo en mi depa y todo lecho de rosas.

Bueno eso es todo. Me retiro sin antes decirles. See you later alligators.

En la imagen de arriba “S09-09 Development of AUTT-1 Robot”.
System:
* PC-104 “Emu” o 233MHz PC with ethernet, CAN bus and motor controllers o 32Mb Disk-On-Chip o Running real-time operating system QNX Neutrino * Two motors in front wheels o Optical encoders for feedback * CAN-Gyro module o Three gyroscopes o Connected to the CAN bus * Sony EVI-D31 Camera
http://autsys.tkk.fi/intranet/as-0.3200/S09-09
¿Cuando las universidades Mexicanas podran emprender proyectos solo para inovacion y no solo por tesis para cumplir el requisito de titulacion?. Ya hubiera querido que mi Universidad o cualquier otra me hubiera financiado un proyecto tan simple (a simple vista pero dificil ante todo) como el anterior. Simplemente irreal aqui en Mexico.