• Post Reply Bookmark Topic Watch Topic
  • New Topic

Fetch type of product from scale  RSS feed

 
Saurabh Agarwal
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,


Below is current process :
We have an application running successfully where we fetch the weight of product currently on Production Line using Java.

All the products on line belong to same order and are of same type.

User at beginning enter the type of product and starts the production line.


Proposed new process:
Now client want that multiple type of product can belong to same production order.

i.e. on a production line different type of products can come one after other.

So we should now fetch the type of product also.


The Question :
Now the question is what are different possibilities in which we can find the type of product.

Can java fetch color of a box ? If we use scanner on line that scans the product and sends the color information to Java.

Above is just a possibility. Can there be any other parameters that Java can use to differentiate in type of product ?


My understanding so far
I came up with below understanding.


First get a scanner which can scan dimensions and color of the product. Use two scanners if required.

Once device reads dimensions and color, this can be sent to Java program using serial port communication. Java will fetch this data using communication APIs.

Java actually does not fetch all this information like weight, color, dimensions of product.

It is actually some scanning device which reads all this information. Then this information is sent to communication ports.

Java Communication APIs only reads information from these ports.

Experts please provide inputs on my understanding. Please validate my understanding.

Please correct me where I am wrong.


Also please guide me into new directions if there are any other than above.
 
Maneesh Godbole
Bartender
Posts: 11445
18
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I would recommend using the bar code instead of scanning for color etc. You can embed tons of information in the bar code, which will make it flexible enough for future requirement changes.
e.g. Product from batch number xxx
 
Paul Clapham
Sheriff
Posts: 22844
43
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Saurabh Agarwal wrote:Java actually does not fetch all this information like weight, color, dimensions of product.

It is actually some scanning device which reads all this information. Then this information is sent to communication ports.

Java Communication APIs only reads information from these ports.


So what you can do depends almost completely on what that scanning device can do, and probably not at all on the Java code which talks to the device.

However like Maneesh, I'd recommend you look for a solution involving putting barcodes on the products.
 
Saurabh Agarwal
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, we visited plant side to see the legacy system.
That is why I was not able to reply on my post after your expert comments.

In legacy systems they are using Bar Code scanners.
Where Bar codes are pasted on every box.
You experts are spot on

So my java system will read the information sent by barcode machine over the port.

But what we saw was that they were using some color coding also.

So I believe we need a scanner that can detect those colors and send that information over port so that my Java program can read it.

Thankyou experts here.
It was as good as discussing with industry level experts in meeting rooms about solution architechture.
 
Winston Gutkowski
Bartender
Posts: 10575
66
Eclipse IDE Hibernate Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Saurabh Agarwal wrote:But what we saw was that they were using some color coding also.

So I believe we need a scanner that can detect those colors and send that information over port so that my Java program can read it.

Just to add to the good advice: I suspect that you might also want to look at the types of information you can get (or scan) for a "product" and refactor your class structure accordingly (or maybe you've already done this).

For example, I suspect that things like weight and dimensions might be common to all products, but possibly not colour; and that might have a bearing on what your design looks like.

Just a thought.

Winston
 
Saurabh Agarwal
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thankyou all Experts
I am marking this as resolved.

Still if anybody has any more suggestions on this front then please do post back.
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!