meteor video acquisition under qnx4

hi,
I have a driver to acquire video under qnx4. This driver is a ripp-off of
the linux driver. . I read that it access to /dev/shmem/Physical, so I
believe that other entry in /dev (like mmetfgrab0) are useless.
1 - after successfully compile, I don t know how to use it.
2 - I hadn’t mknod to create entry in /dev like the linux version
3 - to resume, I don t know how I can use it?

any help would be really valuable. thx in advance.

“Lou Nco” <lou.nco@wanadoo.fr> wrote in message
news:9v10h5$sn2$1@inn.qnx.com

hi,
I have a driver to acquire video under qnx4. This driver is a ripp-off of
the linux driver. . I read that it access to /dev/shmem/Physical, so I
believe that other entry in /dev (like mmetfgrab0) are useless.
1 - after successfully compile, I don t know how to use it.
2 - I hadn’t mknod to create entry in /dev like the linux version
3 - to resume, I don t know how I can use it?

I though Matrox already had QNX4 driver for this?

any help would be really valuable. thx in advance.

“Mario Charest” <mcharest@clipzinformatic.com> a écrit dans le message de
news: 9v2cuc$s29$1@inn.qnx.com

“Lou Nco” <> lou.nco@wanadoo.fr> > wrote in message
news:9v10h5$sn2$> 1@inn.qnx.com> …
hi,
I have a driver to acquire video under qnx4. This driver is a ripp-off
of
the linux driver. . I read that it access to /dev/shmem/Physical, so I
believe that other entry in /dev (like mmetfgrab0) are useless.
1 - after successfully compile, I don t know how to use it.
2 - I hadn’t mknod to create entry in /dev like the linux version
3 - to resume, I don t know how I can use it?


I though Matrox already had QNX4 driver for this?

Yes with the MIL library…

I think this lib is shipped with the meteorII/II-Dig card if not ask Matrox
for it…

Laveau.

any help would be really valuable. thx in advance.

\

Hello,

I am having difficulty receiving multicast data using tcprt50 under
qnx425. The same identical program running under my linux box works
perfectly. For my testbed, I have two computers connected via cross-over
cable (no routers or hobs or switches to worry about). Using NetInfo, I
can see the packets being received. but I am not seeing any data being
received.

Help!
~Steve


-----------------------sysinit-----------------------
—cut—
Net &
Net.rtl -M &
Tcpip node1
ifconfig lo up 127.0.0.1
ifconfig en1 up 172.26.71.26 -netmask 255.255.255.0
route add default 172.26.71.1
route add -net 224.0.0.0 -netmask 240.0.0.0 172.26.71.26
mcast_rcv






-----------------------mcast_rcv.c-----------------------

#include <stdio.h>
#include <stdlib.h>
#include <stdio.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <errno.h>


#define FOREVER 1

/* pretty print the received message */
print_dbg(char *buffer, int count)
{
int x;
char acString[32];
int count2;

memset(acString,0,sizeof(acString));

if ((count %16) > 0)
count2 = count + (16-(count%16));

for (x=0;x<count2;x++)
{
if ((x % 16)==0) printf("%04x: “,x);
if ((x % 16)==8) printf(”- ");

if (x >= count)
{
printf(" “);
acString[(x % 16)]=’ ';
}
else
{
printf(”%02X ",(unsigned char)buffer[x]);

if (isalnum(buffer[x]))
acString[(x % 16)]=buffer[x];
else
acString[(x % 16)]=’.’;
}
if ((x % 16)==15) printf(":%16s:\n",acString);
}

printf("\n\n");
}

/* setup the socket */
int udp_initialize(char *group, int port)
{
int sockfd;
struct sockaddr_in servaddr, cliaddr;
struct ip_mreq mreq;
const int on=1;

if ((sockfd=socket(AF_INET, SOCK_DGRAM, 0))<0)
{
perror(“socket”);
exit(1);
}
memset(&servaddr,0,sizeof(servaddr));
servaddr.sin_family = AF_INET;
servaddr.sin_addr.s_addr = htonl(INADDR_ANY);
servaddr.sin_port = htons(port);

/* allow multiple instances */
setsockopt(sockfd, SOL_SOCKET, SO_REUSEADDR, &on, sizeof(on));

if (bind(sockfd, (void *) &servaddr, sizeof(servaddr))<0)
{
perror(“bind”);
exit (1);
}

/* register for the multicast group /
mreq.imr_multiaddr.s_addr=inet_addr(group);
mreq.imr_interface.s_addr=htonl(INADDR_ANY); /
only one avail */
if (setsockopt(sockfd,IPPROTO_IP, IP_ADD_MEMBERSHIP, &mreq,
sizeof(mreq))<0)
{
perror(“setsockopt (MultiCast Add)”);
exit(1);
}

return sockfd;
}


/* simple receive plugin replacement */
int udp_Receive(int dummy, unsigned char *acMessage, int iSize)
{
static int sockfd=-1;
struct sockaddr_in addr;
size_t addrlen;
char msgbuf[1500];
int ret;

if (sockfd==-1)
sockfd = udp_initialize(“224.1.1.1”, 1969);

memset(&msgbuf,0,sizeof(msgbuf));
addrlen=sizeof(addr);

if ((ret=recvfrom(sockfd,(void *)&msgbuf,sizeof(msgbuf),0,
(void )&addr, &addrlen))<0)
{
if (errno!=EINTR) /
if not interrupted from the timer */
{
perror(“recvfrom”);
exit(1);
}
}
else
memcpy(acMessage,msgbuf,iSize);

return (ret);
}

main()
{
int ret;
char Message[1500];

memset(&Message,0,sizeof(Message));

while (FOREVER)
{
if ((ret=udp_Receive(0,(char *)&Message,sizeof(Message)))<0)
print_dbg(Message,ret);
}
}

“Mario Charest” <mcharest@clipzinformatic.com>I >though Matrox already had
QNX4 driver for this?
thx, but where. I went on ftpserver matrox.com, and saw nothing in
pub/past-products/meteor

“Laveau Saint-Clair” <laveau@qnx.fr>

Yes with the MIL library…
I think this lib is shipped with the meteorII/II-Dig card if not ask
Matrox
for it…
my card is matrox meteor (NOT matrox meteoorII ). I am not sure MIL are

available for meteor.

“Lou Nco” <lou.nco@wanadoo.fr> a écrit dans le message de news:
9v6mna$1ha$1@inn.qnx.com

“Mario Charest” <> mcharest@clipzinformatic.com> >I >though Matrox already had
QNX4 driver for this?
thx, but where. I went on ftpserver matrox.com, and saw nothing in
pub/past-products/meteor

“Laveau Saint-Clair” <> laveau@qnx.fr
Yes with the MIL library…
I think this lib is shipped with the meteorII/II-Dig card if not ask
Matrox
for it…
my card is matrox meteor (NOT matrox meteoorII ). I am not sure MIL are
available for meteor.

\

Yes, MIL is for MeteorII digital/camera link and Genesis family.