Digitax 4GMCU Technical Manual

Mobile control unit
Table of Contents

Advertisement

Quick Links

4G
MCU
Technical Manual
V 1.3

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the 4GMCU and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

Summary of Contents for Digitax 4GMCU

  • Page 1 Technical Manual V 1.3...
  • Page 2 The information contained here are property of DIGITAX Automotive Electronics Italy, and extremely confidential. Any disclosure, copying, distribution to third party is strictly prohibited.
  • Page 3: Table Of Contents

    Serial Ports Digital and Analog I/O ......................... 23 Special Purpose Digital and Analog I/O (A.I.T.P.) ....................23 Power ON/OFF using special input 3 ........................ 23 4GMCU with Embedded F16 Taximeter and peripheral configuration ............24 Sample Applications ............................25 AUTORUN application ..........................25 AITP application ............................
  • Page 4 ”Stealth” Mode and ”Wake Up On Ring” ..................... 61 Firmware Version and Country Code ......................62 The information contained here are property of DIGITAX Automotive Electronics Italy, and extremely confidential. Any disclosure, copying, distribution to third party is strictly prohibited.
  • Page 5: General Concepts & Architecture

    General concepts & architecture Main Features Feature Description Display Separate CPU Unit and LCD Display Viewing area 7" diagonal Aspect Ratio 16:9 WVGA 800x480 Resolution Colour TFT LED Display Display clearly viewable with 350 cd/m2 Ambient Light Sensor with 32 Steps Automatic Regolation Touchscreen Full Automotive Rugged Touchscreen with configurable touch areas.
  • Page 6 Read/Write Windows CE registry application and API to Supports permanent saving of system settings into registry The information contained here are property of DIGITAX Automotive Electronics Italy, and extremely confidential. Any disclosure, copying, distribution to third party is strictly prohibited.
  • Page 7 Software controllable Warm Restart and test tool GPRS modem driver and test tool GPS driver and test tool Speaker and MIC test tool, wave playback and voice recorder Contactless / NFC reader driver and test tool Backlight control API and test tools Ping tool Dialup network GSM phone dialer...
  • Page 8: Block Diagram

    Block Diagram The information contained here are property of DIGITAX Automotive Electronics Italy, and extremely confidential. Any disclosure, copying, distribution to third party is strictly prohibited.
  • Page 9: Regular And Alternative Boot

    Regular and Alternative Boot Sometimes it’s necessary to bypass the regular boot procedure, mainly for these reasons: 1. when for any reason (for example because of an hardware failure) the Hard Disk is unavailable. In this case it is possible to boot from System Disk and get the full MCU functionality, except of the automatic update and restore procedures at start-up.
  • Page 10: Appearance

    Appearance The information contained here are property of DIGITAX Automotive Electronics Italy, and extremely confidential. Any disclosure, copying, distribution to third party is strictly prohibited.
  • Page 11: Technical Views

    Technical Views 4GMCU...
  • Page 12: M2 Display

    M2 Display The information contained here are property of DIGITAX Automotive Electronics Italy, and extremely confidential. Any disclosure, copying, distribution to third party is strictly prohibited.
  • Page 13: Connectors And Cables

    Connectors and Cables I/O Power Connector Description Color Main Battery +12V Main Battery GND Black UPS Battery pack connector + Green UPS Battery pack connector - Black Digital Input 1 Light green Digital Input 2 Gray Digital Input 3 Light blue Digital Input GND Black Digital Output 4...
  • Page 14: User And Demo Software

    For example, if the customer wants to update the application named ”myapp.exe” which is in the APPS folder, he has only to copy the new ”myapp.exe” file into UPDATE\APPS directory. The information contained here are property of DIGITAX Automotive Electronics Italy, and extremely confidential. Any disclosure, copying, distribution to third party is strictly prohibited.
  • Page 15: System Update

    On next MCU start-up and before Windows starts, the application file will be copied in the APPS folder of the Hard Disk, ready to be executed, and also in the backup area of the System disk that has to be eventually recovered. This is a very simple way of updating the system, and it’s the only one that has to be used for all system files and for all customer files that need a backup copy.
  • Page 16: Autorun For Sd Card And Usb Drives

    ATCE START: if is “1” autorun.inf is processed not only at SD CARD insertion, but also if the SD CARD is present when windows starts The information contained here are property of DIGITAX Automotive Electronics Italy, and extremely confidential. Any disclosure, copying, distribution to third party is strictly prohibited.
  • Page 17: Power Management And Stealth Mode

    GSM Ring signal. The voltage of the main battery and the UPS battery is permanently checked by the system. 4GMCU Power On Regular power on When the device is powered OFF, a short pressure on the power switch will turn ON the entire MCU.
  • Page 18: On Board Peripheral Power

    100mA) so be careful to have a car battery capacity bigger enough to satisfy this requirement The information contained here are property of DIGITAX Automotive Electronics Italy, and extremely confidential. Any disclosure, copying, distribution to third party is strictly prohibited.
  • Page 19: Odometer And Overspeed

    You can use SysUtils program in \SysApps folder to select how the available memory is splitted between storage and Program memory. 3) Use the Update Folder to keep updated the System Disk The system backup and restore feature of the 4GMCU is useful only if the System Disk is...
  • Page 20 Also a remote setup update is easier and faster to achieve because only a little configuration file has to be transferred and replaced, not the whole big registry. The information contained here are property of DIGITAX Automotive Electronics Italy, and extremely confidential. Any disclosure, copying, distribution to third party is strictly prohibited.
  • Page 21: Embedded Taximeter

    It’s internal architecture has been greatly improved to achieve 100 times more processing power, large, improved and safe data memory storage, remote firmware upgrade through the 4GMCU serial Com port, and the flexibility of having a graphical user interface on the 4GMCU that can be easily designed by software.
  • Page 22: Infrared Passenger Sensor

    The information contained here are property of DIGITAX Automotive Electronics Italy, and extremely confidential. Any disclosure, copying, distribution to third party is strictly prohibited.
  • Page 23: Serial Ports Digital And Analog I/O

    Special Purpose Digital and Analog I/O (A.I.T.P.) The 4GMCU device is equipped with 3 digital input and 2 digital outputs that are physically connected to the AITP Cpu, this oen can process them at higher rates which cannot be reached by any Windows CE application.
  • Page 24: 4Gmcu With Embedded F16 Taximeter And Peripheral Configuration

    4GMCU with Embedded F16 Taximeter and peripheral configuration User and demo software The information contained here are property of DIGITAX Automotive Electronics Italy, and extremely confidential. Any disclosure, copying, distribution to third party is strictly prohibited.
  • Page 25: Sample Applications

    All of them have been developed using some custom DLLs useful for interfacing digital I/O, serial ports, AITP functionalities and the other internal hardware. Those DLLs are part of the Software Development Kit provided with the 4GMCU, and the source code of those applications is available as example for the developers.
  • Page 26: Aitp Application

    Special Digital I/O and Analog Input It is used to monitor the actual status of Digital I/O and Analog Inputs. The information contained here are property of DIGITAX Automotive Electronics Italy, and extremely confidential. Any disclosure, copying, distribution to third party is strictly prohibited.
  • Page 27 Digital I/O status can be read either with a polling request to the AITP, or activating the I/O trigger on the desired input and front. In this case the AITP spontaneously send a message to the application when the required change is detected on the Special Input. Analog Input values can be read only by polling.
  • Page 28 6. The final value read in ”Distance from last Reset” is the Wheel Code to be set. The information contained here are property of DIGITAX Automotive Electronics Italy, and extremely confidential. Any disclosure, copying, distribution to third party is strictly prohibited.
  • Page 29: Gps

    Using this application, it is possible to publish the position to Internet, and look at a map at the address: http://www.digitax.it/utils/gps/gps_map.html This is provided as a test and sample application. CamView Demonstrates the use of the Analog RGB input and the use of the hardware Frame Grabber of the MCU.
  • Page 30: Voicecall

    AT commands necessary to interface the GSM modem. The information contained here are property of DIGITAX Automotive Electronics Italy, and extremely confidential. Any disclosure, copying, distribution to third party is strictly prohibited.
  • Page 31: Savereg

    If Bluetooth module is installed, it is possible to use it instead of the wired earphones. SaveReg This is a system application is needed to save all information that Windows or the applications save into the Registry. It’s necessary because Windows Registry, and also all the folders except the ones in the Hard Disk or the Storage Card, are not saved to disk but to RAM, and so their content is lost when the MCU is powered off.
  • Page 32 The information contained here are property of DIGITAX Automotive Electronics Italy, and extremely confidential. Any disclosure, copying, distribution to third party is strictly prohibited.
  • Page 33: Test

    This program is used when the Embedded Taximeter is installed. It flashes the taximeter firmware, just like the AITPProg does with the AITP processor. Firmware received from Digitax can be replaced either manually, by copying it in the SysApps\Res folder and manually running this application, or automatically by copying the file in the SysApps\Box folder.
  • Page 34: 4Gmcu .Net Libraries

    One useful digital input is the IPRESHUT which goes High when Windows is shutting down; monitoring this digital input applications can perform a safe closure. The information contained here are property of DIGITAX Automotive Electronics Italy, and extremely confidential. Any disclosure, copying, distribution to third party is strictly prohibited.
  • Page 35: Digitax.mobile.modem

    IP address assigned by the telephony provider. Digitax.Mobile.RAS.Link This library extends the Digitax.Mobile.RAS library. The main class in this namespace is LinkManager which has the goal of keeping the RAS link always up. It implements logics to Dial or HangUp the RAS entry as best as possible using a working instance of the ModemManger if provided in the constructor.
  • Page 36: Gps.wrapper41

    For further information, please refer to the 4GMCUNetHlp.chm online reference guide in the developer’s CD, located at Documentation folder. The information contained here are property of DIGITAX Automotive Electronics Italy, and extremely confidential. Any disclosure, copying, distribution to third party is strictly prohibited.
  • Page 37: Source Code Examples

    Source Code Examples Modem-RAS sample application This application shows how to use modem and RAS libraries on the Digitax 4GMCU: The modem library allows to get real time information about telephony environment; The RAS library simply permits to open (dial) and close (hang-up) a remote dial-up connection providing its system name.
  • Page 38 NetworkStatus.Registered: case NetworkStatus.RegisteredRoaming: case NetworkStatus.RegistrationDenied: case NetworkStatus.Scanning: txtNetStatus.Text = newStatus.ToString(); break; default: txtNetStatus.Text = ""; break; The information contained here are property of DIGITAX Automotive Electronics Italy, and extremely confidential. Any disclosure, copying, distribution to third party is strictly prohibited.
  • Page 39 void _modem_NetOperatorChanged(string newOperatorName) (InvokeRequired) BeginInvoke(new NetworkOperatorChangedHandler(_modem_NetOperatorChanged), object[] { newOperatorName }); return; txtNetOperator.Text = newOperatorName; void _modem_IMSIChanged(string newIMSI) (InvokeRequired) BeginInvoke(new IMSIChangedHandler(_modem_IMSIChanged), object[] { newIMSI }); return; txtImsi.Text = newIMSI; void _modem_IMEIChanged(string newIMEI) (InvokeRequired) BeginInvoke(new IMEIChangedHandler(_modem_IMEIChanged), object[] { newIMEI }); return; txtImei.Text = newIMEI; void _modem_DataProtocolChanged(DataProtocolType protocolType)
  • Page 40 = false; _rasEntry.BeginHangUp(); private void chkRasLinkManagerEnabled_CheckStateChanged(object sender, EventArgs _rasLink.Enabled = chkRasLinkManagerEnabled.Checked; (chkRasLinkManagerEnabled.Checked == false) txtIpAddress.Text = "N/A"; The information contained here are property of DIGITAX Automotive Electronics Italy, and extremely confidential. Any disclosure, copying, distribution to third party is strictly prohibited.
  • Page 41: Comtax2 (Taximeter)

    ComTax2 (Taximeter) This application shows how to use COMTAX2 protocol to interact with a Digitax Taximeter. It demonstrates how to ask for some data to the taximeter (e.g. Odometer, Status…) and how to interpret taximeter answers. For a complete specification, please refer to the COMTAX2 protocol guide.
  • Page 42 { text }); return; lbxLog.Items.Add("-> " + text); void Comtax2TestForm_Closing(object sender, CancelEventArgs _ct2.Release(); The information contained here are property of DIGITAX Automotive Electronics Italy, and extremely confidential. Any disclosure, copying, distribution to third party is strictly prohibited.
  • Page 43: Aitp (Odometer)

    System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; namespace Digitax.Sample.Odometer //simple application that shows how to interact with the odometer using the aitp public partial class OdometerTest Form //aitp instance Aitp.Wrapper41.AitpCore _aitp = Aitp.Wrapper41.AitpCore(); //odometer object Aitp.Wrapper41.AitpObjects.OdometerData _odom;...
  • Page 44: Aitp (Version And Information)

    = _ver.SubVersion.ToString(); tbVer.Text = _ver.Version.ToString(); private void btAskVer_Click(object sender, EventArgs _aitp.AITPAskSoftwareVersion(); void HardwareInfoForm_Closing(object sender, CancelEventArgs _aitp.AITPRelease(); The information contained here are property of DIGITAX Automotive Electronics Italy, and extremely confidential. Any disclosure, copying, distribution to third party is strictly prohibited.
  • Page 45: Aitp (Light Dimmer)

    System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; namespace Digitax.Sample.Dimmer //simple application to interact with the light dimmer public partial class DiimerSample Form //aitp instance Aitp.Wrapper41.AitpCore _aitp = Aitp.Wrapper41.AitpCore(); byte _lightInt = 0x00; byte _dimmer = 0x00;...
  • Page 46 _aitp.AITPAskDimmerValueAndTable(); private void cbAuto_CheckStateChanged(object sender, EventArgs (cbAuto.Checked) //set auto dimmer -> value 33 _aitp.AITPSetDimmerValue((byte)33); else _aitp.AITPSetDimmerValue(_dimVal); The information contained here are property of DIGITAX Automotive Electronics Italy, and extremely confidential. Any disclosure, copying, distribution to third party is strictly prohibited.
  • Page 47: Digital I/O (Ipreshut)

    System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; namespace Digitax.Sample.DigitalIOTest // simple application that cheks the Ipreshut digital value public partial class DigitalIOTest Form //DigitalIO Wrapper Instance DigitalIO.Wrapper41.DigitalIO _digitalIO = DigitalIO.Wrapper41.DigitalIO(); //ipreshut check tread System.Threading.Thread ipreshutThread; bool stopExecuting = false;...
  • Page 48: Gps

    //satellites data recived _satellites = satsData; _satsUpd = true; UpdForm(); private delegate void delUpdForm(); private void UpdForm() The information contained here are property of DIGITAX Automotive Electronics Italy, and extremely confidential. Any disclosure, copying, distribution to third party is strictly prohibited.
  • Page 49 (InvokeRequired) this.BeginInvoke(new delUpdForm(UpdForm)); return; //update texts (_satellites != null && _satsUpd) lbSats.Items.Clear(); foreach (GPS.Wrapper41.SatelliteData _satellites) (s.PRN != 0) StringBuilder sb = StringBuilder(); sb.Append(s.PRN); sb.Append(" | "); sb.Append(s.Azimut); sb.Append(" | "); sb.Append(s.Elevation); sb.Append(" | "); sb.Append(s.SNR); lbSats.Items.Add(sb.ToString()); _satsUpd = false; (_rmcUpd) tbFix.Text = _rmcData.bIsFixing.ToString();...
  • Page 50: Communication Protocol A.i.t.p

    96 bytes of data. Also the Device ID is different, for the Taximeter is 0001 hex, for the AITP is 1000 hex. The information contained here are property of DIGITAX Automotive Electronics Italy, and extremely confidential. Any disclosure, copying, distribution to third party is strictly prohibited.
  • Page 51: Standard Basic Structure And Operating Principle

    Standard Basic structure and operating principle fig. 1 - Message structure In its basic structure it is suitable for a direct wire link, and in a module to module communication. It is suggested to use full duplex mode. For wire linked modules no other handshake than the packet itself is needed. The commands and data transfer is based on MESSAGES (it can be a collection of several packets as needed) split into PACKETS of any suitable size till 1024 characters actually transmitted, including header;...
  • Page 52: Packet

    The device fields are bit mapped, so several devices may be addressed at the same time. Character set The basic character set used, including controls, is: The information contained here are property of DIGITAX Automotive Electronics Italy, and extremely confidential. Any disclosure, copying, distribution to third party is strictly prohibited.
  • Page 53: Device Id

    Device Id ASCII coding The alpha-numeric data bytes are coded in Hex, unless otherwise specified and then each hex byte is splitted into 2 nibbles. Each nibble is expressed in ASCII characters 0-9 A-F, the Hi nibble is queued first followed by the Low nibble.
  • Page 54: Handshake

    At the end of the transmission of the last packet, and after having received the corresponding ACK, the originator sends EOT (04h) that finishes the link and releases the line. The information contained here are property of DIGITAX Automotive Electronics Italy, and extremely confidential. Any disclosure, copying, distribution to third party is strictly prohibited.
  • Page 55: Lrc

    The LRC (Longitudinal Redundancy Check) is used to validate a data block, it is performed over every transmitted character, starting from and including STX till the last character of the packets body, or the Packet Number Low Nibble in case of no Data Body.. By this assertion is univocally defined that the data bytes, as previously explained, are converted into ASCII characters, and the LRC is performed over those converted ASCII characters and NOT over the original data.
  • Page 56: Pack Number

    = 1), the second byte is the out value. OUT 1 OUT 2 The information contained here are property of DIGITAX Automotive Electronics Italy, and extremely confidential. Any disclosure, copying, distribution to third party is strictly prohibited.
  • Page 57: Digital I/O Programming

    Digital I/O programming Cmd PI byte IN 1: 1 = enable trigger input 1 IN 2: “ IN 3: “ RING: “ RING IN 1: 0 = both fronts; 1 = only selected IN 2: IN 3: RING: IN 1: 0 = Fall transition, 1 = Rise IN 2: IN 3: RING:...
  • Page 58: Analog I/O

    If the application wants to stop this countdown has to call SR with a parameter of 0 seconds, that stops the AITP timer. The information contained here are property of DIGITAX Automotive Electronics Italy, and extremely confidential. Any disclosure, copying, distribution to third party is strictly prohibited.
  • Page 59: Windows Is Started

    Windows is Started This command is sent by the Autorun program to communicate that windows is started and so the boot sequence has been completed. At this time no other use is needed by user applications. Power Supply This is used to define the behaviour when the main power supply is off. The Power Down delay is the delay after which the MCU is automatically switched off.
  • Page 60: Odometer

    1-2 overspeed end, value is max speed during overspeed The information contained here are property of DIGITAX Automotive Electronics Italy, and extremely confidential. Any disclosure, copying, distribution to third party is strictly prohibited.
  • Page 61: M16 Flasher (Embedded Taximeter Boot Mode)

    It is a special working mode, that start the MCU completely hiding the user interface, for monitoring and surveillance. the 4GMCU can be waked up by a RING signal on a GSM call, and then start the MCU in stealth mode or in normal mode...
  • Page 62: Firmware Version And Country Code

    Firmware Country Code (for example ”STD” for standard versions) bytes 6-7 Firmware Country Release (for example ”01”) byte 8 Firmware checksum The information contained here are property of DIGITAX Automotive Electronics Italy, and extremely confidential. Any disclosure, copying, distribution to third party is strictly prohibited.
  • Page 64 Digitax Italy Headquarter Via dell’Industria 16 62017 Porto Recanati (MC) - ITALY Phone +39 071 7590984 – Fax +39 071 9797405 Web: www.digitax.com – E-mail: info@digitax.com Digitax UK Digitax Mauritius Digitax Deutschland Smokehouse, 31 Tanners P.O. box 775, Bel Village Taxitech Handelsges.

Table of Contents