web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Integration of Weighing Scale using "COMM Port" in AX 2012 R3

(0) ShareShare
ReportReport
Posted on by

I need a help from you all.

I am supposed to capture the weight of a Finished Good & integrate it with Microsoft Dynamics using "Comm Port".

Please help. Thanks in advance.

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    syed baber Profile Picture
    11,633 on at

    Hi Deepak,

    Create a custom service in AX, expose it by deploying the service group. Afterwards, you can call this service from a .NET application to pass the weight information to AX.

    Please let me know if you need further help in this regard.

    Thanks,

    Baber.

  • Community Member Profile Picture
    on at

    Thanks for your help Baber. I am really not sure how to achieve this. Can you help me out with any documentation or Link so that It can guide me to achieve this.

  • Martin Dráb Profile Picture
    237,795 Most Valuable Professional on at

    What is "Comm Port"? Do you mean serial (COM) port, or something completely different?

  • Community Member Profile Picture
    on at

    Its serial Serial COM port Mr. Drab. Can you please suggest any approach Sir.

  • Suggested answer
    syed baber Profile Picture
    11,633 on at

    Hi Deepak,

    Here is the TechNet link related to services:

    technet.microsoft.com/.../hh509053.aspx

    Here is a blog post about creating custom service in AX:

    axblog4u.wordpress.com/.../dynamics-ax2012-create-custom-service-using-x

    You can create a .NET application that reads your COM port, reads the data from there and then call the custom service, you developed in AX to update the desired data in AX.

    Please verify and let me know if you have further queries.

    Thanks,

    Baber.

  • Suggested answer
    syed baber Profile Picture
    11,633 on at

    And here is the post which explains how to read and write from the serial port in C#:

    stackoverflow.com/.../how-to-read-and-write-from-the-serial-port-in-c-sharp

    Thanks,

    Baber.

  • Martin Dráb Profile Picture
    237,795 Most Valuable Professional on at

    First of all, ensure yourself that you don't have any higher-level API, before going to low-level development involving the serial port directly. It may not be fun.

    .NET offers System.IO.Ports.SerialPort class for this purpose, therefore I would write all the communication in .NET and expose a .NET library or a service to AX.

  • syed baber Profile Picture
    11,633 on at

    Hi Deepak,

    Martin provided you an another option, so it really depends on your requirement. If you want to trigger the data update in AX based on the incoming data on COM port, then you need to use the .NET code to read the data and then call the custom service to update the data in AX.

    Thanks,

    Baber.

  • Community Member Profile Picture
    on at

    Hi Baber,

    Can this work in Dynamics 365 Finance and Operations too? I want to read a USB scale and then push the data from the USB Scale to my Dynamics 365 table.

  • Martin Dráb Profile Picture
    237,795 Most Valuable Professional on at

    You still can use C# libraries discussed above, but you can't directly connect to a port on a local machine from cloud. You need a local app pushing data to Azure or working as a gateway.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#1
Priya_K Profile Picture

Priya_K 4

#3
MyDynamicsNAV Profile Picture

MyDynamicsNAV 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans