linux kernel - Asynchronous Read/Writing with libraw1394 -
i'm trying 2 computers communicate each other on firewire. both of computers running ubuntu 9.10 , both have read/write access /dev/raw1394 node. i'm using firecontrol test sending read/write requests. if can work firecontrol, should able figure out how same in code.
on computer a, this:
computera $ ./commander
work now
copyright (c) 2002-2007 manfred weihs
software comes absolutely no warranty.no adapter specified!
got handle
current generation number (driver): 1
1 card(s) found
nodes on bus: 2, card name: ohci1394
using adapter 0
found: 2 nodes on bus, local id 1, irm 1
current generation number (adapter): 7entering command mode
type 'help' more information!
command: w . 0 0 0xde
insufficient arguments operation!
command: w . 0 0 2 0xde
writing node 0, bus 1023, offset 000000000000 2 bytes:
00 de
write succeeded.
ack code: complete
since computer on node 1, send node 0. go computer b , read node 0 , this:
computerb $ ./commander
copyright (c) 2002-2007 manfred weihs
software comes absolutely no warranty.no adapter specified!
got handle
current generation number (driver): 1
1 card(s) found
nodes on bus: 2, card name: ohci1394
using adapter 0
found: 2 nodes on bus, local id 0, irm 1
current generation number (adapter): 9entering command mode
type 'help' more information!
command: r . 0 0 1
reading node 0, bus 1023, offset 000000000000 1 bytes
read failed.
ack code: pending; response code: address error
i'm using same offset both of them. doing wrong , how supposed read/write from/to firewire nodes?
i have these same problems when try , use raw1394 in own code.
Comments
Post a Comment