Setup
The MobileHub uses DM2’s Rosetta API, which is a sockets based API to call DM2 specific methods. To setup the interface:
- Install the Windows DM2 API service. This runs and polls the database for queries to submit to DM2, executes the query and stores the results.
- If going over the internet, you must provide a whitelist IP so DM2 can receive your requests.
- In the MobileHub, go to Admin->Company->Config settings and add or edit the config ‘DM2’. This will get added automatically the first time you try to make a DM2 query.
[dm2]
server=enter IP address here
port=55555
securityKey=enter key here
sourceID=BizSpeed
maxRetries=8
carrierID=9000
orderstatusfilter=O
The sourceID and security key should be the company code in the DM2 config file on DM2.
MaxRetries is the number of times each call will be retried before failing.
CarrierID is the carrier default when sending fuel orders to GenerateBillOfLading
OrderStatusFilter is the order status to import. This is used in the query to DM2 to ask for all orders, by date range, with this status.
For fuel orders, you need to setup cross reference tables in DM2 for the following:
- Vendor
- Pickup point code
- External carrier
- Driver
- Trucks