• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Communication with an ethernet based device
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Communication with an ethernet based device


  • Subject: Re: Communication with an ethernet based device
  • From: Smith Kennedy <email@hidden>
  • Date: Wed, 15 Oct 2003 11:20:07 -0600

Hi Marcus,

How you communicate with the oscilloscope depends partially on the communications capabilities of the oscilloscope. Networking communications is composed of layered protocols. As a general rule of thumb, it is always best to use the highest level protocol available to you, so that you don't have to re-invent any wheels.

Is the oscilloscope able to communicate using standard "high-level" networking protocols, such as TCP/IP (or higher)? If so, it is probably as easy as opening up a socket to the oscilloscope and doing writes/reads to the socket to have your ASCII dialog. There are a number of APIs available to you, including BSD sockets, the CFNetwork framework, and others. The best fit depends on what APIs your app/tool/whatever is using - Cocoa vs. Carbon vs. POSIX/UNIX.

If the oscilloscope can't communicate using, and instead is only able to do raw Ethernet communications, then Quinn's recommendation is probably the best. I just thought I would mention this to make sure you weren't having to use a more challenging API when a simpler one may suit your needs just fine.

FYI,
Smith


On Wednesday, October 15, 2003, at 05:37 AM, Marcus Eickhoff wrote:

Hello,

I plan to use a digital oscilloscope from LeCroy via the ethernet port with OS X.2. The syntax of the ASCII commands is available but I don't know how to send these commands via the ethernet to the device, because I'm new in network programming.
Could someone give me a rough explanation how to send these ASCII commands to the device?
Exists a programming example which performs a similar task?
Where do I have to start from to learn how to use the network libraries in my program?

Marcus Eickhoff
_______________________________________________
macnetworkprog mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/macnetworkprog
Do not post admin requests to the list. They will be ignored.
_______________________________________________
macnetworkprog mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/macnetworkprog
Do not post admin requests to the list. They will be ignored.

References: 
 >Communication with an ethernet based device (From: Marcus Eickhoff <email@hidden>)

  • Prev by Date: Re: native sockets different on powerbooks/iBooks?
  • Next by Date: Re: native sockets different on powerbooks/iBooks?
  • Previous by thread: Re: Communication with an ethernet based device
  • Next by thread: URL Access Manager & Proxy Authenticate
  • Index(es):
    • Date
    • Thread