10 Replies - 8487 Views - Last Post: 18 July 2012 - 11:19 AM Rate Topic: -----

#1 Laikhter  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 5
  • Joined: 18-July 12

read data from ethernet device

Posted 18 July 2012 - 09:42 AM

Hi!

I have a balance that connects with an ethernet cable. All I want to do is read the weight coming from the balance into the program. I've been searching and searching, and I just can't find anything. If you could link me to a good tutorial, sample code, or explain to me here that would be greatly appretiated. I'm also using visual studios 2008, vb.net if that helps.
Is This A Good Question/Topic? 0
  • +

Replies To: read data from ethernet device

#2 tlhIn`toq  Icon User is online

  • Please show what you have already tried when asking a question.
  • member icon

Reputation: 5632
  • View blog
  • Posts: 12,080
  • Joined: 02-June 10

Re: read data from ethernet device

Posted 18 July 2012 - 09:50 AM

How do you communicate with it normally as suggested by the maker: Does it have an IP address you point your browser to, or did it come with a driver and application?

Unless the balance has an embedded webpage (like a router does) that is going to be a very specific type of communication.
You need to use the SDK/API provided by the manufacturer.
Was This Post Helpful? 0
  • +
  • -

#3 Laikhter  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 5
  • Joined: 18-July 12

Re: read data from ethernet device

Posted 18 July 2012 - 09:57 AM

the device has an IP address. I don't know how I would figure it out though.
Was This Post Helpful? 0
  • +
  • -

#4 tlhIn`toq  Icon User is online

  • Please show what you have already tried when asking a question.
  • member icon

Reputation: 5632
  • View blog
  • Posts: 12,080
  • Joined: 02-June 10

Re: read data from ethernet device

Posted 18 July 2012 - 10:09 AM

Quote

Where do I start?


You start by learning a coding language FIRST.
Learn to plan before you type.
THEN you start designing software with a purpose.


If this sounds like you

Newbie/Rookie said:

I have a little programming experience but I need to write ...
read this section
Spoiler


Otherwise, you can just jump to the resources here:
Some of the tutorials below are for C# or Java not C, C++, VB.NET [...]. But the conceptual stuff of classes, object oriented design, events etc. are not language specific and should give you enough guidance in theory of program development for you to be able to look-up specific code example in your chosen coding language.



Resources, references and suggestions for new programmers. - Updated Mar 2012
Spoiler

Was This Post Helpful? 0
  • +
  • -

#5 Laikhter  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 5
  • Joined: 18-July 12

Re: read data from ethernet device

Posted 18 July 2012 - 10:17 AM

I know how to program, I just want to learn how to specifically connect to a device with an ethernet cable. I didn't even say "where do I start?" either.
Was This Post Helpful? 0
  • +
  • -

#6 modi123_1  Icon User is offline

  • Suitor #2
  • member icon



Reputation: 9498
  • View blog
  • Posts: 35,845
  • Joined: 12-June 08

Re: read data from ethernet device

Posted 18 July 2012 - 10:20 AM

We would need to know the make and model of the balance you are using... and typically I would just tell you to contact the manufacture for a SDK (developer's kit)...
Was This Post Helpful? 0
  • +
  • -

#7 Laikhter  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 5
  • Joined: 18-July 12

Re: read data from ethernet device

Posted 18 July 2012 - 10:26 AM

I contacted them already, and they don't have an API/SDK. The balance is a Doran PC-200. All I know is that the device has a specific IP address.
Was This Post Helpful? 0
  • +
  • -

#8 tlhIn`toq  Icon User is online

  • Please show what you have already tried when asking a question.
  • member icon

Reputation: 5632
  • View blog
  • Posts: 12,080
  • Joined: 02-June 10

Re: read data from ethernet device

Posted 18 July 2012 - 10:30 AM

You say it has an IP address. So you talk to it through a web page, right? That's how you answered my question, right?

So you talk to its web page. You have to consume the web page.

As already suggested you need to use the Software Developer's Kit (SDK) provided by the manufacturer to talk DIRECTLY to it and interigate it for specific things.

Otherwise you are going to have to pull up the web page it provides and get our data out of that page's HTML.

There are LOTS of tutorials on getting data from web pages. Don't look for how to talk to your specific device. Look for how to to consume web pages for information.

Quote

the device has an IP address. I don't know how I would figure it out though.

This might as well be saying "Where do I start?" because it in no way tells us anything about your coding skill. It sounds like every other rookie that has 1 week in school and wants to write the next world-changing application.

I wish you the best of luck on your program.

View PostLaikhter, on 18 July 2012 - 11:26 AM, said:

I contacted them already, and they don't have an API/SDK. The balance is a Doran PC-200. All I know is that the device has a specific IP address.


Start by getting the manuals. Help us to help you by telling us what you do know beyond the model number. Make some effort. Show us a screen shot of the devices web page for example.
Was This Post Helpful? 0
  • +
  • -

#9 modi123_1  Icon User is offline

  • Suitor #2
  • member icon



Reputation: 9498
  • View blog
  • Posts: 35,845
  • Joined: 12-June 08

Re: read data from ethernet device

Posted 18 July 2012 - 10:45 AM

Side question - when I look up "Doran PC200" all I see is that it is "RS-232 standard"... not ethernet. Are you certain about the port?
Was This Post Helpful? 1
  • +
  • -

#10 tlhIn`toq  Icon User is online

  • Please show what you have already tried when asking a question.
  • member icon

Reputation: 5632
  • View blog
  • Posts: 12,080
  • Joined: 02-June 10

Re: read data from ethernet device

Posted 18 July 2012 - 11:01 AM

I've seen many receipt printers that had an RJ45(ethernet) port on the device that was wired to the serial (RS-232) connector for the PC. So it wouldn't surprise me a bit if the balance did the same thing. Its a pretty convenient plug to get 8 wires in a small space.

But as Modi just pointed out, there is a bunch of data available for anyone willing to do a simple Google search <hint, hint>

http://www.amazon.co...e/dp/B0000510FC

http://redaytech.en....pter-Cable.html

Get the manual:
http://www.doranscal...dex.php?file=21

The one I see on eBay says its RS-232 as well,
http://www.ebay.com/...#ht_2016wt_1132

Spoiler


Ok... we've already spent more time on this than the OP. i'm outta here.

This post has been edited by tlhIn`toq: 18 July 2012 - 11:02 AM

Was This Post Helpful? 0
  • +
  • -

#11 Laikhter  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 5
  • Joined: 18-July 12

Re: read data from ethernet device

Posted 18 July 2012 - 11:19 AM

I admit I'm not a professional coder. I've only been taking classes for a year and a half. Ethernet connections is new grounds for me, so I just wanted some help.

as I previously said, there is no API/SDK

the balance sends the data in an 8-bit ASCII code, and the device has a specific IP address



I just want to know is how would I connect to the IP address and read the data.
also if anyone knows how one would find the IP address of the device, that would also be helpful.



You mentioned tutorials on reading webpages, do you have any that you would reccomend off the top of your head? Thanks in advance.



and since you asked for the manuals:

http://www.doranscal...ty-bulletin.pdf

http://www.doranscal...dex.php?file=21

View Postmodi123_1, on 18 July 2012 - 10:45 AM, said:

Side question - when I look up "Doran PC200" all I see is that it is "RS-232 standard"... not ethernet. Are you certain about the port?



yeah, the PC-200 doesn't come up on the search. if you go to the technical support page on Doran's website you can see at the very botton the PC-200, which is a discontinued product.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1