Smart Mirror (ACEP) Integration Guide
Smart Mirror (ACEP) Integration Guide
The Smart Mirror integration connects your practice management system with the ACEP Measurement Web Service, allowing you to capture precise centration measurements directly from the Smart AI iPad app and automatically populate them into your sale orders.
Table of Contents
- Initial Setup
- Configuring Company Credentials
- Testing the Connection
- Sending a Customer to the Queue
- Taking Measurements on the iPad
- Fetching Results into the Sale Order
- Understanding Blue Highlighted Fields
- Viewing Measurement Details
- Viewing ACEP Image
- Troubleshooting
Initial Setup
Before using the Smart Mirror integration, you will need the following credentials from your ACEP/Optic Video representative:
- ECP Token — Identifies your practice to the ACEP system
- PMS Token — Authenticates result retrieval
- Store ID — Identifies which store/location within your practice
Note: Your ACEP representative will provide these credentials when you subscribe to the Measurement Web Service.
Configuring Company(Location) Credentials
- Navigate to Settings → Companies and select your company
- Click on the Smart Mirror (ACEP) tab
- Fill in the following fields:
- Enable ACEP Smart Mirror — Check this box to activate the integration
- ACEP Base URL — Leave as default (
https://dataweb.opticvideo.com) unless instructed otherwise - ECP Token — Paste your ECP token from ACEP
- Store ID — Enter your store ID (e.g.,
101)
- Click Save

Testing the Connection
After entering your credentials, verify that the connection is working:
- In the Smart Mirror (ACEP) tab, click the Test Connection button
- If successful, you will see a green notification: "Connection successful!"
- If it fails, double-check your ECP Token and Store ID

Sending a Customer to the Queue
When a patient is ready for centration measurements:
- Navigate to the Sale Order menu by going to Sales > Sales, then open the sale order record that you want to send to the queue.
- Navigate to the Transmission Settings tab
- In the Smart Mirror (ACEP) section, you will see the current status as "Not Sent"
- Click the Send to Queue button
- The customer's name will be sent to the ACEP measurement device
- The status will change to "Waiting (Idle)" — this means the customer is in the queue on the iPad

Tip: The customer's first name and last name are automatically extracted from the patient record and sent to the iPad.
Taking Measurements on the iPad
Once the customer is in the queue:
- Open the Smart AI app on the iPad and based on the Store ID you will find the order number.
- The customer's name will appear in the measurement queue
- Select the customer and follow the on-screen instructions to capture measurements
- The app will capture:
- Far PD (distance vision pupillary distance)
- Near PD (reading vision pupillary distance)
- Frame dimensions (A, B, DBL)
- Fitting heights (OC or Seg heights)
- Vertex distance, pantoscopic tilt, wrap angle
- Photos (screenshot, far PD photo, near PD photo)
- Once the measurement is complete, the results are uploaded to the ACEP server
Note: Measurements are stored on the ACEP server for approximately 24 hours before being automatically purged.
Fetching Results into the Sale Order
After the measurement is completed on the iPad:
- Go back to the patient's Sale Order
- In the Smart Mirror (ACEP) section, click the Fetch Results button

- The system will retrieve the measurement data from the ACEP server
- If successful, you will see a notification confirming the import
- The following fields will be automatically populated on the sale order:
- Frame Width (A size)
- Frame Height (B size)
- Bridge (DBL)
- Vertex Distance
- Pantoscopic Tilt
- Wrap Angle
- Distance PD (OD and OS)
- Fitting Heights (OC Hit or Seg Height depending on lens type)
- Frame Type
- The ACEP status will change to "Imported"

Understanding Blue Highlighted Fields
After fetching results, you will notice that certain fields on the sale order are highlighted in blue. This visual indicator helps you identify which fields were automatically updated by the Smart Mirror.
What the blue highlighting means:
- A field with a blue background and border was populated by the ACEP Smart Mirror
- This helps you quickly see which values came from the measurement device vs. manual entry
How the highlighting works:
- When you manually edit a blue-highlighted field, the blue highlighting is automatically removed for that field
- This indicates that the value has been reviewed and/or adjusted by staff
- Fields you haven't touched remain blue until you edit them

Tip: Use the blue highlights as a checklist — review each blue field to confirm the measurement values are correct before processing the order.
Viewing Measurement Details
To view the full measurement record with all captured data:
- On the Sale Order, in the Smart Mirror (ACEP) section, click the View Measurement button (or the measurement link)
- This opens the detailed ACEP Measurement record which contains:
- Customer Info — Name, job number, ACEP customer ID
- Far PD Tab — All distance vision measurements (PD, heights, insets, frame dimensions, vertex, panto, wrap)
- Near PD Tab — All reading vision measurements (PD, heights, reading distance, Up-fit)
- Images Tab — Screenshots and photos captured during measurement
- Raw Data Tab — Complete JSON response from the ACEP server for reference

Viewing ACEP Images
The Smart Mirror captures photos during the measurement process. These images are stored as attachments on both the measurement record and the sale order.
From the Sale Order:
- In the Smart Mirror (ACEP) section, scroll down to see the ACEP Images field
- Click on any image to download or preview it
From the Measurement Record:
- Open the measurement record (see above)
- Go to the Images tab
- All captured photos (screenshot, far PD photo, near PD photo) are displayed here

Troubleshooting
"No new measurement results available"
- The measurement may not be completed on the iPad yet
- Wait for the technician to finish the measurement and try again
- Measurements expire after approximately 24 hours — if too much time has passed, the measurement will need to be retaken
"Wrong PMS Token"
- Go to Settings → Companies → Smart Mirror (ACEP) tab
- Verify your PMS Token matches what was provided by ACEP
- Click Test Connection to verify
"Connection error"
- Check your internet connection
- Verify the ACEP Base URL is correct (
https://dataweb.opticvideo.com) - Contact your ACEP representative if the service is down
Fields not highlighted in blue
- Ensure you have refreshed the page after fetching results
- Clear your browser cache (Ctrl+Shift+R or Cmd+Shift+R)
- Check the browser console for any JavaScript errors
Images not downloading
- Images have a 24-hour retention on the ACEP server
- If you fetch results the next day, images may no longer be available
- Fetch results as soon as possible after measurements are taken
"PMS is blocked on ACEP Web Service"
- Your PMS access may have been revoked by ACEP
- Contact your ACEP/Optic Video representative to resolve
Field Mapping Reference
The following table shows which ACEP measurement values are mapped to which sale order fields:
| ACEP Field | Sale Order Field | Description |
|---|---|---|
| Far PD → FrameWidth | Frame A | Frame eye size |
| Far PD → FrameHeight | Frame B | Frame vertical height |
| Far PD → Bridge | DBL | Distance between lenses |
| Far PD → VertexDistance | Vertex | Back vertex distance |
| Far PD → Panto | Panto | Pantoscopic tilt angle |
| Far PD → WrapAngle | Wrap | Frame wrap angle |
| Far PD → LeftPD | Dist PD (OS) | Distance PD — left eye |
| Near PD → RightPD | Dist PD (OD) | Distance PD — right eye |
| Far PD → RightHeight | OC Hit (OD) or Seg Ht (OD) | Right eye height (depends on lens type) |
| Far PD → LeftHeight | OC Hit (OS) or Seg Ht (OS) | Left eye height (depends on lens type) |
| frameType | Frame Type | Rimless, Full Frame, etc. |
Note: Height fields automatically map to either OC Hit (for single vision lenses) or Seg Height (for progressive/bifocal lenses) based on the lens category selected on the order.
For additional support, contact your system administrator or reach out to our support team.
