Project Home
Project Home
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - Serial Communication between two CPU's: Page 1 of 2 (29 Items)
   
Serial Communication between two CPU's  
We have a dual board Machine. One of the board gets connected to the network using a LAN wire and the other board gets 
connected to the first board using serial communication(COM port). 

We have an existing code in QNX 6.2 which is 

io-net -dspeedo -dfd fd=/dev/ser1,mac=000102030405,ahdlc -ptcpip
ifconfig en1 / netmask 255.255.255.252

Now we are porting it to QNX 6.5.0
I am trying to create a serial communication like above in QNX 6.5.
I wrote the code 
io-pkt-v4-hc -d/lib/dll/devnp-speedo.so -d/lib/dll/devnp-shim.so /lib/dll/devn-fd.so fd=/dev/ser1,mac=000102030405,adhlc
 -ptcpip

But the above command throws and error. IT says unable to init the devnp-shim driver. I am new to QNX and i am stuck 
with this serial communication problem for the last 3 weeks. I tried almost everything that is available on the internet
 but nothing seems to work. We have a release deadline on next tuesday for this. I have ported everything except this 
serial communication between these 2 boards is not working. Please help me in solving this.
Re: Serial Communication between two CPU's  
Try starting the drivers without specifying the devnp-shim on the command
line. The shim should be started automatically when a devn-* driver is
started.


On 10-11-18 6:18 AM, "Raj Vardhan" <community-noreply@qnx.com> wrote:

> We have a dual board Machine. One of the board gets connected to the network
> using a LAN wire and the other board gets connected to the first board using
> serial communication(COM port).
> 
> We have an existing code in QNX 6.2 which is
> 
> io-net -dspeedo -dfd fd=/dev/ser1,mac=000102030405,ahdlc -ptcpip
> ifconfig en1 / netmask 255.255.255.252
> 
> Now we are porting it to QNX 6.5.0
> I am trying to create a serial communication like above in QNX 6.5.
> I wrote the code
> io-pkt-v4-hc -d/lib/dll/devnp-speedo.so -d/lib/dll/devnp-shim.so
> /lib/dll/devn-fd.so fd=/dev/ser1,mac=000102030405,adhlc -ptcpip
> 
> But the above command throws and error. IT says unable to init the devnp-shim
> driver. I am new to QNX and i am stuck with this serial communication problem
> for the last 3 weeks. I tried almost everything that is available on the
> internet but nothing seems to work. We have a release deadline on next tuesday
> for this. I have ported everything except this serial communication between
> these 2 boards is not working. Please help me in solving this.
> 
> 
> 
> _______________________________________________
> 
> Networking Drivers
> http://community.qnx.com/sf/go/post75059
> 
> 

-- 
Hugh Brown                      (613) 591-0931 ext. 2209 (voice)
QNX Software Systems Ltd.        (613) 591-3579           (fax)
175 Terence Matthews Cres.       email:  hsbrown@qnx.com
Kanata, Ontario, Canada.
K2M 1W8
 


Re: Serial Communication between two CPU's  
I tried but then it says cannot find devnp-shim driver. I think i need to set the Library path.
Please tell me what command shall i run in command prompt for setting library path if my shim driver is in /lib/dll
Re: Serial Communication between two CPU's  
Your LD_LIBRARY_PATH should have /lib/dll in it.



On 10-11-18 8:11 AM, "Raj Vardhan" <community-noreply@qnx.com> wrote:

> I tried but then it says cannot find devnp-shim driver. I think i need to set
> the Library path.
> Please tell me what command shall i run in command prompt for setting library
> path if my shim driver is in /lib/dll
> 
> 
> 
> _______________________________________________
> 
> Networking Drivers
> http://community.qnx.com/sf/go/post75063
> 
> 

-- 
Hugh Brown                      (613) 591-0931 ext. 2209 (voice)
QNX Software Systems Ltd.        (613) 591-3579           (fax)
175 Terence Matthews Cres.       email:  hsbrown@qnx.com
Kanata, Ontario, Canada.
K2M 1W8
 


Re: Serial Communication between two CPU's  
So what can be other reason for this error cannot find Devnp-Shim Driver?
 Also like in previous versions of qnx we had multiple interfaces like en0 and en1. Do we have a similar fxp1 and Fxp0 
networking interfaces?
Re: Serial Communication between two CPU's  
If you just start io-pkt-v4 ­ddevn-fd ...... does that work?

Yes, you have multiple interfaces fxp0, 1 etc.


On 10-11-18 8:15 AM, "Raj Vardhan" <community-noreply@qnx.com> wrote:

> So what can be other reason for this error cannot find Devnp-Shim Driver?
>  Also like in previous versions of qnx we had multiple interfaces like en0 and
> en1. Do we have a similar fxp1 and Fxp0 networking interfaces?
> 
> 
> 
> _______________________________________________
> 
> Networking Drivers
> http://community.qnx.com/sf/go/post75065
> 
> 

-- 
Hugh Brown                      (613) 591-0931 ext. 2209 (voice)
QNX Software Systems Ltd.        (613) 591-3579           (fax)
175 Terence Matthews Cres.       email:  hsbrown@qnx.com
Kanata, Ontario, Canada.
K2M 1W8
 


Re: Serial Communication between two CPU's  
If i run 
io-pkt-v4 ­ddevn-fd -v it runs and throws no error. But when i run ifconfig after running the above command i can see 
only one network interface details lo0

But when i put "-" before ddevn-fd and run  io-pkt-v4 ­-ddevn-fd we get an error that
"Unable to load devn-devn-fd.so:Library cannot be found"
Re: Serial Communication between two CPU's  
Sorry, my bad! You must run “io-pkt-v4 ­dfd .......”.



On 10-11-18 8:25 AM, "Raj Vardhan" <community-noreply@qnx.com> wrote:

> If i run
> io-pkt-v4 ­ddevn-fd -v it runs and throws no error. But when i run ifconfig
> after running the above command i can see only one network interface details
> lo0
> 
> But when i put "-" before ddevn-fd and run  io-pkt-v4 ­-ddevn-fd we get an
> error that
> "Unable to load devn-devn-fd.so:Library cannot be found"
> 
> 
> 
> _______________________________________________
> 
> Networking Drivers
> http://community.qnx.com/sf/go/post75069
> 

-- 
Hugh Brown                      (613) 591-0931 ext. 2209 (voice)
QNX Software Systems Ltd.        (613) 591-3579           (fax)
175 Terence Matthews Cres.       email:  hsbrown@qnx.com
Kanata, Ontario, Canada.
K2M 1W8
 


Re: Serial Communication between two CPU's  
Sorry couldnot get you.
What is the command you want me to run?
Re: Serial Communication between two CPU's  
I am running io-pkt-v4-hc. Is it ok or should i run io-pkt-v4?
Re: Serial Communication between two CPU's  
You can run either. The ­hc variant has the security built in.


On 10-11-18 8:32 AM, "Raj Vardhan" <community-noreply@qnx.com> wrote:

> I am running io-pkt-v4-hc. Is it ok or should i run io-pkt-v4?
> 
> 
> 
> _______________________________________________
> 
> Networking Drivers
> http://community.qnx.com/sf/go/post75072
> 
> 

-- 
Hugh Brown                      (613) 591-0931 ext. 2209 (voice)
QNX Software Systems Ltd.        (613) 591-3579           (fax)
175 Terence Matthews Cres.       email:  hsbrown@qnx.com
Kanata, Ontario, Canada.
K2M 1W8
 


Re: Serial Communication between two CPU's  
So what is the command that i have to run?
Re: Serial Communication between two CPU's  
io-pkt-v4-hc ­dspeedo ­dfd fd=/dev/ser1,mac=000102030405,ahdlc

That should work.


On 10-11-18 8:34 AM, "Raj Vardhan" <community-noreply@qnx.com> wrote:

> So what is the command that i have to run?
> 
> 
> 
> _______________________________________________
> 
> Networking Drivers
> http://community.qnx.com/sf/go/post75075
> 
> 

-- 
Hugh Brown                      (613) 591-0931 ext. 2209 (voice)
QNX Software Systems Ltd.        (613) 591-3579           (fax)
175 Terence Matthews Cres.       email:  hsbrown@qnx.com
Kanata, Ontario, Canada.
K2M 1W8
 


Re: Serial Communication between two CPU's  
I ran this command
io-pkt-v4-hc dspeedo dfd fd=/dev/ser1,mac=000102030405,adhlc -v
It gave no error but when i ran ifconfig i got only one network interface that is lo0.

Then i ran this command by putting"-" before dspeedo and dfd
io-pkt-v4-hc -dspeedo -dfd fd=/dev/ser1,mac=000102030405,adhlc -v

It threw an error 
Unable to load devn-speedo.so:library cannot be found

Unable to load devn-fd.so:library cannot be found.

I think LD_library path is not set properly.

Is there a way to set LD_Library_Path through command line?
Re: Serial Communication between two CPU's  
You must specify Œ-d¹ before the driver name. What is the output from Œenv¹?
Does it show LD_LIBRARY_PATH?


On 10-11-18 8:44 AM, "Raj Vardhan" <community-noreply@qnx.com> wrote:

> I ran this command
> io-pkt-v4-hc dspeedo dfd fd=/dev/ser1,mac=000102030405,adhlc -v
> It gave no error but when i ran ifconfig i got only one network interface that
> is lo0.
> 
> Then i ran this command by putting"-" before dspeedo and dfd
> io-pkt-v4-hc -dspeedo -dfd fd=/dev/ser1,mac=000102030405,adhlc -v
> 
> It threw an error
> Unable to load devn-speedo.so:library cannot be found
> 
> Unable to load devn-fd.so:library cannot be found.
> 
> I think LD_library path is not set properly.
> 
> Is there a way to set LD_Library_Path through command line?
> 
> 
> 
> _______________________________________________
> 
> Networking Drivers
> http://community.qnx.com/sf/go/post75081
> 
> 

-- 
Hugh Brown                      (613) 591-0931 ext. 2209 (voice)
QNX Software Systems Ltd.        (613) 591-3579           (fax)
175 Terence Matthews Cres.       email:  hsbrown@qnx.com
Kanata, Ontario, Canada.
K2M 1W8
 


Re: Serial Communication between two CPU's  
An image is coming before env1.
Please tell me the syntax to run for checking LD_LIBRARY_PATH
Re: Serial Communication between two CPU's  
What do you mean? Just run ³env².


On 10-11-18 8:51 AM, "Raj Vardhan" <community-noreply@qnx.com> wrote:

> An image is coming before env1.
> Please tell me the syntax to run for checking LD_LIBRARY_PATH
> 
> 
> 
> _______________________________________________
> 
> Networking Drivers
> http://community.qnx.com/sf/go/post75085
> 
> 

-- 
Hugh Brown                      (613) 591-0931 ext. 2209 (voice)
QNX Software Systems Ltd.        (613) 591-3579           (fax)
175 Terence Matthews Cres.       email:  hsbrown@qnx.com
Kanata, Ontario, Canada.
K2M 1W8
 


Re: Serial Communication between two CPU's  
Do you want me to run 3env2? if i run this it says no such file or directory error.

Sorry for asking you so many questions. Actually i am very new into QNX
Re: Serial Communication between two CPU's  
Please tell me what command you want me to run?
is it 3env2. There is no command like.
Sorry if i am asking silly questions.
Actually i am new to QNX
Re: Serial Communication between two CPU's  
My e-mail client seems to be sending strange characters. You must just run
the env command to see your environment.


On 10-11-18 9:15 AM, "Raj Vardhan" <community-noreply@qnx.com> wrote:

> Please tell me what command you want me to run?
> is it 3env2. There is no command like.
> Sorry if i am asking silly questions.
> Actually i am new to QNX
> 
> 
> 
> _______________________________________________
> 
> Networking Drivers
> http://community.qnx.com/sf/go/post75093
> 
> 

-- 
Hugh Brown                      (613) 591-0931 ext. 2209 (voice)
QNX Software Systems Ltd.        (613) 591-3579           (fax)
175 Terence Matthews Cres.       email:  hsbrown@qnx.com
Kanata, Ontario, Canada.
K2M 1W8
 


Re: Serial Communication between two CPU's  
Running env gives me the following output:
_=/bin/env
PATH=:/proc/boot:/bin:/sbin:/usr/bin:/usr/sbin
TERM=qansi
UGC=1
ETX_TYPE=0
SYSNAME=nto

I dont see/lib/dll in PATH.

How can i add /lib/dll in the Library path?

Please Help.
Re: Serial Communication between two CPU's  
Please tell me how can i add /lib/dll in the library path?

Thanks
Re: Serial Communication between two CPU's  
export LD_LIBRARY_PATH = /lib/dll

What system are you running on? The LD_LIBRARY_PATH should already be setup
for you. You can see this by running the env command.


On 10-11-18 10:06 AM, "Raj Vardhan" <community-noreply@qnx.com> wrote:

> Please tell me how can i add /lib/dll in the library path?
> 
> Thanks
> 
> 
> 
> 
> _______________________________________________
> 
> Networking Drivers
> http://community.qnx.com/sf/go/post75112
> 
> 

-- 
Hugh Brown                      (613) 591-0931 ext. 2209 (voice)
QNX Software Systems Ltd.        (613) 591-3579           (fax)
175 Terence Matthews Cres.       email:  hsbrown@qnx.com
Kanata, Ontario, Canada.
K2M 1W8
 


Re: Serial Communication between two CPU's  
We are running on the system whose BIOS chip has been written by my company. Its a unix based BIOS. So do i have to 
change library path in the code for BIOS chip?

I dont have the code for the BIOS chip. Can i set LIBRARY PATH through command line or do i have to request my company 
for the BIOS code?
Re: Serial Communication between two CPU's  
If you boot the standard QNX development system, LD_LIBRARY_PATH should
already be setup for you. What does the command env show?


On 10-11-18 10:22 AM, "Raj Vardhan" <community-noreply@qnx.com> wrote:

> We are running on the system whose BIOS chip has been written by my company.
> Its a unix based BIOS. So do i have to change library path in the code for
> BIOS chip?
> 
> I dont have the code for the BIOS chip. Can i set LIBRARY PATH through command
> line or do i have to request my company for the BIOS code?
> 
> 
> 
> _______________________________________________
> 
> Networking Drivers
> http://community.qnx.com/sf/go/post75122
> 
> 

-- 
Hugh Brown                      (613) 591-0931 ext. 2209 (voice)
QNX Software Systems Ltd.        (613) 591-3579           (fax)
175 Terence Matthews Cres.       email:  hsbrown@qnx.com
Kanata, Ontario, Canada.
K2M 1W8