Software :: Communication With Some Small SPI Driver

Mar 15, 2010

I am moving some code for to work with SPI interface from windows to Linux SUSE platform and for to make it working I have to communicate with some small SPI driver.

I have few libraries generated by that driver:
libi2cbrdg.a
libi2cbrdg.la
libi2cbrdg.so
libi2cbrdg.so.1
libi2cbrdg.so.1.1.0

I am compiling my project with following makefile:
comp: ErrorCodes.h Errors.h FrameDll.h FrameDllHeader.h Framework.h Functions.h TargetProcessor.h Layout1.h ModCommon.h ModScalerDB.h ProxyIDs.h SPIProxy.h SPITuning.cpp ModBiquad.h ModCommon.h ModDeinterleave.h ModFloatToFract32.h
g++ -g -L./lib -li2cbrdg ErrorCodes.h Errors.h FrameDll.h FrameDllHeader.h Framework.h Functions.h TargetProcessor.h Layout1.h ModCommon.h ModScalerDB.h ProxyIDs.h SPIProxy.h SPITuning.cpp -o comp.o

Output:
SPIProxy.h: In member function "virtual int CSPIProxy::_Read(void*, int)":
SPIProxy.h:55: error: "U2C_IoWrite" was not declared in this scope
SPIProxy.h:56: error: "U2C_SpiRead" was not declared in this scope
SPIProxy.h: In member function "virtual int CSPIProxy::_Write(const void*, int)":
SPIProxy.h:65: error: "U2C_IoWrite" was not declared in this scope
SPIProxy.h:66: error: "U2C_SpiWrite" was not declared in this scope .....

But still as u see I have some functions missed I know that they are in these libraries.

View 2 Replies


ADVERTISEMENT

Programming :: Character Device Driver For Communication Between Two Pc's In Code?

Apr 3, 2010

i woul like to know if i could get help in writing a charater device driver for communication between two pc's in linux using RS-232 serial port.

View 5 Replies View Related

General :: Serial Communication In Between VM And ESX?

Apr 28, 2010

I am in verse to understand the serial communication between guest and host.I have just added a serial port through VI Client selecting "Use serial port on host"(host being ESX host).If I am on VM and run :

ll > /dev/ttyS0

I understand that it should get displayed through ESX Host. So On ESX Host, I typed:

cat /dev/ttyS0

But nothing worked !

View 1 Replies View Related

General :: I2C Communication From Kernel Space?

May 11, 2011

How do you interface with the Linux I2C driver from kernel space? For example, if I had LEDs connected to a GPIO expander on the I2C bus, how would I blink them twice before going down for reset from machine_reset()?

Essentially, I believe I need to call the functions i2c_smbus_write_byte(), i2c_smbus_read_byte(), etc. But these functions require I2C client data that I do not understand how to supply.

View 1 Replies View Related

General :: Signal Communication Between The Processes?

Sep 20, 2010

I am writing a code which communicates between 2 processes created by fork() statement. Parent reads a file and write the data into a shared memory and sends a signal to the child. The child then receives a signal from the parent to start reading. After finishing the read operation the child sends a signal to the parent asking it to resume its action. Some things are going wrong in my code.

1. segmentation error in memcpy() statement.
2. terminal hangs after running the code.
3. Synchronization problem between processes..

Code: #include <stdio.h>
#include <sys/types.h>
#include <wait.h>
#include <unistd.h>

[code].....

View 4 Replies View Related

Programming :: Communication Between Bash And Firefox

Aug 24, 2010

I have been able to use bash to initiate a google seache via firefox. I would like to either copy the source page to a file via wget or send firefox short cuts to the other terminal's firefox search page to put the html file in a directory. I seem to remember but maybe incorrectly that there exist hexadecimal codes for each keyboard shortcut in firefox. Maybe these could be echo-ed from bash to the firefox search page.

View 2 Replies View Related

Hardware :: How To Switch To Communication Mode?

Aug 3, 2010

I'm running Fedora11 OS on my desktop.my HSPA USB modem(Prolink PHS101 HSPA modem)is not detected as communication device. it detected as a CD ROM. could you please tell me the way to make functioning of it in Fedora 11 how to switch to communication mode.

View 1 Replies View Related

Networking :: Communication Without Loopback Device

Jan 13, 2010

I have two ethernet card on my computer, I want to make a TCP or UDP communication between these two cards, so I disable loopback: #ifconfig lo down. but with out loopback I can't even ping an eth from another one. how should I do? I want traffic to really pass eth cards.

View 2 Replies View Related

Networking :: Get The USB Server 'LANSER-E1' From 'MRT Communication'

Jan 21, 2010

Has anybody tried to get the USB server 'LANSER-E1' from 'MRT Communication' working in Linux ? It works OK in Windows but I have failed to get it working in Debian Sid.

View 2 Replies View Related

Networking :: DMZ - No Communication Between Server And 2 Clients

Oct 28, 2010

Code:
DMZ
Server--Router0--Modem0 ISP2--Modem3--Router3--Client3
/
Client1--Router1--Modem1--ISP1--WAN
/
Client2--Router2--Modem2 ISP3--Modem4--Router4--Client4

The Server in the above diagram can be accessed by Client3 and Client4 but not at all by Client1 or Client2. Router0 specifies the Server as a DMZ Host. I would be more specific but this is not my server. I don't use a DMZ, I forward ports when they are needed. In this case I represent ISP1 and the server belongs to a befuddled client. Client1 & Client2 can send packets to each other, no problem. Could the DMZ be breaking communication between the Server and Clients 1 & 2?

View 1 Replies View Related

Server :: Communication Between Apache And Resin?

May 16, 2010

I was going to upgrade apache from version 1.3 to version 2.2.15 on a test server (and later on prod servers).. i prepared really good for it by reading upgrading information, changes from 1.x - 2.x, read module documentation to check if any of the used modules had any different syntax and if it was supported for this new version of apache. Later i finally installed apache, upgraded all the used modules to be apache 2 compatible and everything seemed to go smooth. I started apache and resin and everything looked fine, the syntax was OK and everything so i reported back that it was ready.. but i got a feedback that the people that were going to use the server only got a proxy error or service unavailable error when apache was trying to send requests back to the backend resin server.. and this is the problem. I could just have told you that this was the problem, but i find it to be much easier if you have a little background information first to explain how the problem aried.

A couple of other people and myself has done quite extensive troubleshooting on this, we troubleshooted apache, mod_caucho and resin by themselves to check if it was any problems with them.. we could only find that mod_caucho didnt seem to behave correly, the caucho-status page was displaying an empty list of requests and what would be proxied back.. we are running the same version of mod_caucho and resin to be sure it would be compatible with eachother and all the software is running in 64-bit, only a 64-bit CentOS 4.4 OS (yes, the OS is really old but because of complications we are not ready to upgrade it yet).

When we try to telnet to the port where resin is listening its open and resin returns an X when you hit enter (like it should and says in Caucho' official troubleshooting tips). We have tried installing apache 2.2.11 instead of 2.2.15 and other versions of both resin and mod_caucho. Other modules has also been tried like mod_proxy to send the requests back and also the rewrite module with the P flag.. although this was not the preferred way to do it we only wanted to see if it had any difference which it didnt.

So after several hours of troubleshooting we are still not able to find the cause of why we are getting a proxy error (http 502) when apache is trying to send a request back. We have checked all the logs for apache and resin, we have also compiled the mod_caucho module with the "--enable-debug" option to get more verbose information but we didnt get any additional information this way eventhough we should according to Caucho' official site.

We have looked into both the resin and apache config and tried both ways of configuring mod_caucho.. and nothing seems to change the result.. we only get a 502 proxy error. So since it didnt work i downgraded to apache 1.3 one day and that was fine.. then it was upgraded again to apache 2.x to try to find out what the problems were but again we didnt find this.. so i was going to downgrade it again, but this time on a different test server, but after downgrading i for some very weird reason got the same proxy error i had when using apache 2 which is beyond my comprehension.. i just cannot understand this.

- has anyone had any similar experiences with or without the same setup ?

- does anyone know about any solution to this of can provide any additional advice on what to do further? Yes, we want the functionality in apache 2 so we will not settle with apache 1.3.. one of the features being the new filters to be able to capture requests for pre and post processing before they hit other modules.

View 3 Replies View Related

Programming :: Communication Data Between Different Process

Nov 22, 2010

I would like to send struct data from process A to process B but I dont known what is the best way. I have read about IPC, but there are a lot of ways to do it.

View 2 Replies View Related

General :: Windows - Using Localhost TCP/IP Communication In A Program?

Mar 27, 2011

I have an application which is separated to several parts (processes) communicating over TCP/IP, using a pre-defined port on localhost.Is this always safe? Can some kind of a firewall (corporate, locally installed, Windows firewall, etc) block this traffic? Or can some user settings in the OS that can block this traffic?The OSes I'm interested in are Windows (XP through 7) and Linux (Ubuntu, RHEL, SUSE)

View 2 Replies View Related

Ubuntu :: HP Psc 1300 5012 Communication Error?

Jan 13, 2010

Just installed Ubuntu 9.10 after vista I never want to go near windows again, I want to make it clear I am a complete novice at this, wouldn't know what a command line was if it jumped up and bit me on the bum, let alone how to edit one.

Installed an HP PSC 1300 all in one printer, system sees it, installs it without any trouble, as soon as I try to print it just hangs there in pending till it defaults and I get communication error 5012, also the message /usr/lib/cups/backend/ hp failed.

I have removed and re-installed the printer and the latest version of hplip more than once but am getting nowhere, the printer and cable work fine when attached to my laptop which is running xp until i learn more about Linux.

View 9 Replies View Related

Ubuntu Servers :: Slow Communication With Server Using SSH?

Feb 15, 2010

Today I installed Ubuntu server 9.10 on my old sony laptop with 512MB of RAM and 2.4GH celeron CPU. I hooked up my server to the router(D-Link) using cable. Now I try to upload or download data(mostly my music) to the server the speed is no higher than 500-700 KB/s. Although at first it used to be around 1.2 MB which is still considered to be low, but is there anyone who knows what I should do? By the way, I use SSH on Ubuntu 9.10 to connect to my server.

View 2 Replies View Related

Ubuntu Installation :: 10.04 Has Shut Down All Network Communication?

May 1, 2010

I upgraded to 10.04 yesterday and Firefox, or rather something I don't know that's replaced it called "Namoroku", worked fine. Today Firefox won't work and Thunderbird and Evolution won't work, either with wifi or with a direct Ethernet link. When I did the System Test, it claimed that the internet connection was fine, but I can't get anything in or out. This is on an Acer Aspire One that I have configured as dual boot with Windows 7. Under Windows Firefox works fine on the wifi. I haven't checked on the Ethernet connection, but assume it works if the wifi does.

Ubuntu also tells me that my battery is "broken", although that's a lesser problem. I can ignore that. Windows has no problem with the battery, either.

Here's the sudo lshw -c net output...

*-network
description: Ethernet interface
product: Atheros AR8132 / L1c Gigabit Ethernet Adapter
vendor: Atheros Communications
physical id: 0

[Code]....

View 4 Replies View Related

Networking :: Data Transfer In V2V Communication (Fedora11)

Feb 27, 2010

i am using NCTUns simulator and having problem while receiving message from an OBU. sending a message works properly but recving creates problem and fails. i am using exactly the same function as used by the developers in the demos but still no luck. i copy the code attch the screen shots to have a look

sendto() and recvfrom() are used for message transfer. they both return >-1 if they are executed successfully. please have a look in the screenshots. agentClientReportStatus is the built in packet format which im using here whose fields i filled manually are in the code below.

agentClientReportStatus *message,*mssg;
int remainTime,n,n2,n3,i,sendingaddress,value;
sockaddr_in cli_addr;
timeval now;

[Code].....

View 3 Replies View Related

Red Hat / Fedora :: Multiple Interface On Network Using Same NIC For Communication

Apr 6, 2011

My setup is as follows,
Machine-1
- Two network interface cards on same network with different MAC say MAC-1 and MAC-2
- IP 10.209.193.130 and 10.209.193.131
- Firewall IP tables empty iptables -F
Machine-2
- One NIC with IP 10.209.193.135
switch
- both machines are connected to common switch and can ping happily.

Problem:
when I send ping request from Machine-2 to Machine-1 arp tables are initialized for IP MAC pair. Surprisingly both IP are get resolved to one MAC i.e MAC-1. general observation is, MAC of first interface which has route in kernel route table. I cross checked this on Suse11 and RHEL5 same result. but In suse10 I am getting expected behavior [i.e IP1-MAC1 and IP2-MAC2 pair in arp cache]. Do any one know why kernel is using same NIC for two different interfaces?

Output for Suse11 and RHEL 5
Code: ? (10.209.193.131) at 00:0c:29:34:e7:6f [ether] on eth3
? (10.209.193.130) at 00:0c:29:34:e7:6f [ether] on eth3 Output for Suse10
Code: ? (10.209.193.128) at 00:0c:29:02:9a:7c [ether] on eth3 <-------- Suse 10 machine-1
? (10.209.193.131) at 00:0c:29:34:e7:6f [ether] on eth3
? (10.209.193.127) at 00:0c:29:02:9a:72 [ether] on eth3 <-------- Suse 10 machine-2
? (10.209.192.1) at 00:00:0c:07:ac:07 [ether] on eth3

View 6 Replies View Related

Hardware :: Serial Communication Only Works In One Direction - Why Is So?

Sep 21, 2010

Running RHEL5.5 on a Dell R710 server. I installed a 2-port PCIe serial card, built the driver, and installed the kernel module. The ports show up in /etc/hwconf, lspci, kudzu, /proc/ioports, etc., and I now have two new device entries...

/dev/ttyE0
/dev/ttyE1

When I connect a null modem cable from port 0 of the card in the new computer to serial 0 of another computer, I can receive text from the other computer. When I do this... code...

View 2 Replies View Related

Networking :: Monitoring - Communication Between Nagios & NRPE?

Feb 28, 2011

The communication between nagios and nrpe agent in the monitored host, can be without SSL? The problem is that I have 2 different versions of debian running on the machines and there are problems related to the libssl-dev package!

View 11 Replies View Related

General :: Bluetooth USB Dongle - Communication Setup?

Feb 24, 2010

I am very new to linux and I have been given a school project that involves getting my windows pc talking to a linux single board computer that I have. It can be found here. [URL]. I have two bluetooth usb dongles, one to plug into my pc and one to plug into my linux board, I know that both work as I have tried talking to them both using my mobile/cell phone. Also when I plug the dongle into my linux board it recognizes something has been plugged in. However I am unsure where to go from here. I have tried "searching" for the device using my windows pc, but it will only find my cell phone and not my linux board. I also tried mounting it similar to how i would mount a usb drive e.g. mount dev/sda etc. How to setup the linux board for bluetooth communications?

View 14 Replies View Related

General :: Palm Vx & Serial Mouse Communication ?

Apr 25, 2011

When I try to Sync a Palm Vx to my PC through serial port I get a communication error message in the gadget. My PalmOS Devices application is already configured to use tty0 or tty1 in unsuccessfully trials. I have a lot of information in the addresses, agenda, notes, etc. and do not want to loose that information gathered for years, nor to return to Windows.

As a test, I used a serial mouse in the serial port and It didn't work. I verified the Bios Setup and COM 1 and COM 2 are enabled.

I also checked my system serial support with the following commands:

And messages were OK when compared with typical outputs. My machine is a Pentium 4 CPU 1.6 GHz, in a U8668 motherboard (Award Software International). I have Ubuntu 10.04 LTS with Gnome.

I am new in Linux and don't know Bash yet. I had followed indications from Internet tutorials successfully, but I don't know how to proceed in this case.

View 1 Replies View Related

Software :: LACE - Listening And Communication Enhancement ?

Oct 15, 2010

Looking for something in Linux/shareware comparable to this software: LACE (Listening and Communication Enhancement). Info about can be found at [url]

View 1 Replies View Related

Programming :: C++ - Two Way Communication Between Objects If A (obj) Creates An Instance Of B (obj)

Apr 6, 2011

I have two classes, for argument's sake A and B. A implements the core functionality, B is an encapsulated data structure. If you imagine this situation
[code]...

From within B's member functions, I would like to access the public function() in class A. This is not an inheritance issue, they are two discrete classes with radically different functionality. Class A makes an object of B.

View 5 Replies View Related

Programming :: Appropriate Interprocess Communication With Data Preservation?

May 29, 2011

I am searching for an interprocess communication that is platform and language independent and is two way communication among different processes and the most important thing is the ipc should have the ability to store data until the receiver receives it.

View 2 Replies View Related

General :: Establish Serial Port Communication Through USB In System?

Jun 30, 2011

I am new to Ubuntu and I need to establish a serial port communication between my PC and microcontroller MSP430G2452.

On connection the USB available with the Launchpad and using lsusb.

It identifies the port as:

Bus 005 Device 003: ID 0451:f432 Texas Instruments, Inc. eZ430 Development Tool

After establishing such a connection what I need to do? My aim is to send a byte of information in Linux.

View 1 Replies View Related

Ubuntu :: Open The COM1 Port To Do Serial Communication Via PHP?

Mar 15, 2010

Not really sure where to post this, so here goes... I installed apache2, php and MySQL via LAMP and everything seems to work fine but when I try to open the COM1 port to do serial communication via PHP, I get a permission denied error.

'mode com1: BAUD=9600 PARITY=N data=8 stop=1 xon=off';
$fp=fopen("COM1:","w+");

I've also tried using /dev/ttyS0 instead of COM1: but no luck. Anyone out there know what I'm doing wrong? I don't know if I need to set something up in apache2 or php or if the code is just wrong. I'm on an Acer Aspire One with Ubuntu's LNR 9.10.

View 6 Replies View Related

Ubuntu :: Communication Between Client And Server When DHCP Is Enabled?

Sep 28, 2010

I have an embedded device which acts as a client, and a server at office. The IP address of the client is allocated by DHCP, so its IP address is actually variable. I would like to know what is the simpliest way to maintain the communication between client and server when DHCP is enabled. I once used socket many years ago to communicate between the client and the server. If I remember it right, I actually bypassed the dynamic IP issues by using the computer name to replace the IP address. Even the client is not at the same local network as the server, the scheme still worked. Correct me if my memory cheated me. if socket is still the best solution for this kind of application involving DHCP? I also heard from someone that it is necessary to implement multicast discovery protocols named BONJOUR, but I don't think it is necessary

View 2 Replies View Related

General :: Communication Between Shell Script And Binary Files?

Feb 18, 2011

Iam executing a shell script from my code and i need to "establish communication between shell script and my program(i..e.. my script iam executing and code should communicate each other while executing)" in one shot i want to implement IPC`s in shell script..! bye the way iam using system() call to run the shell script.

View 10 Replies View Related

General :: Parallel Port Communication With RHEL6 Not Working?

Dec 13, 2010

I was trying out the parallel port communication on RHEL 6 but found it not working:
#echo hello > /dev/parport0
write error :Invalid argument".
#ll > "/dev/lp0"
/dev/lp0:No such device or address

View 2 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved