wjasper / Linux_Drivers

Open source Linux device drivers
GNU General Public License v3.0
110 stars 64 forks source link

C code test-E-1608 says No device found. #26

Closed jjhatt closed 5 years ago

jjhatt commented 5 years ago

I am running Ubuntu 18.04 and built the C code for the Ethernet 1608 without a problem. I gave the device the address 192.168.1.204 and can ping it. However running the test-E-1608 program gives me this error:

$ ./test-E-1608 192.168.1.204 E-1608 IP address = 192.168.1.204 No device found. $ ---jjh

wjasper commented 5 years ago

Can you give any more information? Do you think it might be a firewall issue?

jjhatt commented 5 years ago

Dear Warren, Thank you for your interest in my little speed bump.

FYI, since the C program did not seem to work for me, I went over to the Python version. It works just fine. Thank you so much for your code examples. I chopped up your test-E-1608.py program into several Python programs that support the project work I am involved in. I need to ADC, DAC, and do some DIO. Your program example made quick work of the programs I wrote. Everything in the Python domain seems to work very well. I am impressed with the calibrated accuracy of the single-ended ADC lines on the E-1608. Thank you for showing me how to do that.

Back to C. Attached you'll find a copy of the program I built with your Makefile. Also below is the output from the program. Notice the prefix text 'The second' that I placed before your 'No device found' message. I wanted to understand where in your code bombed out, as you have two places in your code where 'No device found' is printed. As you can see also below, I can ping the device and my Python code works with the device; so I don't have a firewall blockage.

On my machine, I have two Ethernets. One is for internet access, and the other is my instrumentation LAN. I've provided OS information also below.

Let me know if I can help you further. ---jjh

c:rdlab$ ping 192.168.1.204 PING 192.168.1.204 (192.168.1.204) 56(84) bytes of data. 64 bytes from 192.168.1.204: icmp_seq=1 ttl=100 time=0.448 ms 64 bytes from 192.168.1.204: icmp_seq=2 ttl=100 time=0.471 ms 64 bytes from 192.168.1.204: icmp_seq=3 ttl=100 time=0.369 ms ^C --- 192.168.1.204 ping statistics --- 3 packets transmitted, 3 received, 0% packet loss, time 2029ms rtt min/avg/max/mdev = 0.369/0.429/0.471/0.046 ms c:rdlab$ ./test-E-1608 192.168.1.204 E-1608 IP address = 192.168.1.204 The second No device found. c:rdlab$ uname -a Linux heron 4.15.0-47-generic #50-Ubuntu SMP Wed Mar 13 10:44:52 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux c:rdlab$

James Hatt | Sr. Software Developer | Viking Technology RF, Optical, and Microelectronics Division A Division of Sanmina Corporation Telephone: +1.972.512.5605 email: james.hatt@sanmina.com, james.hatt@vikingtechnology.com 1201 W. Crosby Rd., Carrollton, TX 75006 www.vikingtechnology.com | http://www.twitter.com/vikinologyt http://www.twitter.com/vikinology http://www.twitter.com/vikinology| http://www.facebook.com/pages/Viking-Technology/106725999413927f http://www.facebook.com/pages/Viking-Technology/106725999413927 http://www.facebook.com/pages/Viking-Technology/106725999413927| http://www.linkedin.com/company/86313?trk=tyahl http://www.linkedin.com/company/86313?trk=tyah http://www.linkedin.com/company/86313?trk=tyah| http://vimeo.com/vikingtechnologyv http://vimeo.com/vikingtechnology

On Sun, Apr 28, 2019 at 11:04 AM Warren Jasper notifications@github.com wrote:

Can you give any more information? Do you think it might be a firewall issue?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/wjasper/Linux_Drivers/issues/26#issuecomment-487392302, or mute the thread https://github.com/notifications/unsubscribe-auth/AGBNUQEM7JZZP2MKQJJFLRDPSXDHHANCNFSM4HHQSJDA .

-- CONFIDENTIALITY This e-mail message and any attachments thereto, is intended only for use by the addressee(s) named herein and may contain legally privileged and/or confidential information. If you are not the intended recipient of this e-mail message, you are hereby notified that any dissemination, distribution or copying of this e-mail message, and any attachments thereto, is strictly prohibited. If you have received this e-mail message in error, please immediately notify the sender and permanently delete the original and any copies of this email and any prints thereof. ABSENT AN EXPRESS STATEMENT TO THE CONTRARY HEREINABOVE, THIS E-MAIL IS NOT INTENDED AS A SUBSTITUTE FOR A WRITING. Notwithstanding the Uniform Electronic Transactions Act or the applicability of any other law of similar substance and effect, absent an express statement to the contrary hereinabove, this e-mail message its contents, and any attachments hereto are not intended to represent an offer or acceptance to enter into a contract and are not otherwise intended to bind the sender, Sanmina Corporation (or any of its subsidiaries), or any other person or entity.