SlideShare a Scribd company logo
Full Name Title
Prepared by Nguyen Duy Tan Engineer
Approved by Quang Nguyen Project manager
Revision No Effective date
1 1 October 2016
2 15 November 2016
3 22 May 2017
General info and specifications
1. SOJI Protocol
Request
0x31 Adr Fmt Data CS
1 byte 1 byte 1 byte [0 - 128] byte 1 byte
where
- Adr: address of sensor in the network
- Fmt: type of request
- Data: Field data
- CS: checksum by CRC8 method
Response
0x3e Adr Fmt Data CS
1 byte 1 byte 1 byte [0-128] byte 1 byte
where
- Adr: address of sensor in the network
- Fmt: type of request
Protocol of SOJI Fuel level sensor FJ-RS232/FJ-RS485 Version 1.0.2
Error control system
Transmission distance
Changed some commands
Document preparion
Description
First release
500m(RS485), 15m(RS232)
Added Modbus RTU register mapping
Items Specifications
Interface standard
Communication system
Parity
1 October 2016
1 October 2016
Date
RS232/RS485
Half-duplex communication system
No parity
CRC-8
Revision history
- Data: Field data
- CS: checksum by CRC8 method
Request code Description Type Description Unit data Type Description Unit data
0x02 Reading of serial number - - - U32 Sensor ID - Last 4 byte of UUID -
0x03 Record the sensor address in the network U8 0 .. 254 - U8 0x00 - without errors / 0x01 - with error -
U32 Sensor ID - Last 4 byte of UUID
U32 Max. calibration frequency Hz
U32 Min. calibration frequency Hz
S16 Temperature correction coefficient K1 -
S8
Additional coefficient of temperature correction
k2
-
U8 Sensor address in the network (T_NET_ADDRESS) -
U8 Autocalib mode (Enable=1, Disable=0) -
U8 Not used -
U16 Not used -
U32 Not used -
U16 Not used -
U8 Interval parameter filtration (10..120) 10 sec
U8 Interval of automatic parameter delivery (0 .. 60) 5 sec
U8
Periodic parameter delivery mode (0-Off, 1-Hex,
2-ASCII, 3- ASCII-EXT)
-
U8 Parameter filtration mode (1 - Off/0 - On) -
S16 Not used -
S16 Not used -
S16 Max value of the fuel height 0.1 mm
S16 Min value of the fuel height 0.1 mm
S16 Not used -
S16 Not used -
S16 Not used -
U8 Not used -
U8 Not used -
-
-
-
- -
Request Data
-0x24
Reading the setting structure
of output signal ranges
General information
-
Format
0x05
Reading the structure
of additional settings
-0x1E
Reading completed configuration -
Response Data
Firmware information
0x1A
Reading the date of
firmware compilation
- - - U8 dim[12] Line -
0x1B
Reading the time of
firmware compilation
- - - U8 dim[10] Line -
0x1C Reading the firmware version - - - U8 dim[3] Line -
S8 Temperature in sensor board °C
U16
Relative fuel level
- Fuel level in cond. unit (0 - 4095)
- Fuel level in mm [0.1mm]
- Fuel volume in tank [0.1 l]
- Fuel volume in the tank [0.4%]
-
0.1mm
0.1 l
0.4%
U32 Current frequency of oscillator Hz
S8 Temperature > 0, Error code < 0 °C
S16
Relative fuel level
- Fuel level in cond. unit (0 - 4095)
- Fuel level in mm [0.1mm]
- Fuel volume in tank [0.1 l]
- Fuel volume in the tank [0.4%]
1
0.1mm
0.1 l
0.4%
U32 Current frequency of oscillator Hz
S16 Not used -
S16 Electronic board temperature °C
U32 Frequency of reference oscillator Hz
U32 Frequency of measuring oscillator, initial Hz
U32
Frequency of measuring generator,
compensated
Hz
S16 Height of fuel in conditional units 1 c.u.
S16 Not used -
S16 Not used -
S16 Not used -
S16 Fuel volume in the tank 0.1 l
S16 Not used -
S16 Not used -
S16 Not used -
U16 Height of fuel in the sensor, initial 0.1 mm
U16 Height of fuel in the sensor, adjusted 0.1 mm
U16 Height of fuel in the sensor, filtered 0.1 mm
U16 Not used -
U8 Fuel volume in the tank in % of its volume 0.4%
U8 Not used -
U16 Not used -
Reading data
0x06
Reading the working parameters0x23 - -
0x1F
-
0x08 Calib to minimum - - - U8 0x00 - without errors / 0x01 - with error -
0x09 Calib to maximum - - - U8 0x00 - without errors / 0x01 - with error -
U16 Coefficient K1
S8 Addition coefficient K2
0x0B Record minimum calibration frequency U32 Calibration frequency 1 Hz U8 0x00 - without errors / 0x01 - with error -
0x0C Record maximum calibration frequency U32 Calibration frequency 1 Hz U8 0x00 - without errors / 0x01 - with error -
0x11 Record filteration interval U8 0 ... 60 sec 1 sec U8 0x00 - without errors / 0x01 - with error -
0x14 Read the filteration interval - - - U8 0 .. 120 1 sec
0x12 Set the access level of the installer U8 dim[8] Array of coded password - U8 0x00 - without errors / 0x01 - with error -
0x15 Read the installer password - - - U8 dim[8] Array of coded password -
S16 Not used -
S16 Not used -
S16 Max value of the fuel height 0.1 mm
S16
Min value of the fuel height in the
sensor
0.1 mm
S16 Not used -
S16 Not used -
S16 Not used -
U8 Not used -
U8 Not used -
0x07
Switch on pediodic delivery. Device stops
when receive a valid request.
- - - U8 0x00 - without errors / 0x01 - with error -
0x13
Record interval of automatic parameter
delivery
U8 0 .. 60 1 sec U8 0x00 - without errors / 0x01 - with error -
0x17
Record the periodic parameter delivery
mode after reset (power supply)
U8
- 0 - OFF
- 1 - HEX
- 2 - ASCII
- U8 0x00 - without errors / 0x01 - with error -
0x34 Read ASCII-EXT prefix and postfix - - -
struct{
U8 pre[30];
U8 post[30];}
Two lines of symbols, that end with "zero" -
0x35 Record ASCII-EXT prefix and postfix
struct{
U8 pre[30];
U8 post[30];}
Two lines of symbols, that end with
"zero"
- U8 0x00 - without errors / 0x01 - with error -
Record temperature corrrection
U8 0x00 - without errors / 0x01 - with error -
0x00 - without errors / 0x01 - with error -U8
Configuration
0x0A
Periodic mode
0x25
Record the setting structure of output
signal ranges
Notes
- All write commands require access
level 0x12
Types:
U8 - unsigned 8 bit value
S8 - signed 8 bit value
U16 - unsigned 16 bit value
S16 - signed 16 bit value
U32 - unsigned 32 bit value
S32 - signed 32 bit value
CRC error check
To calculate CRC Polynomial a^8 + a^5 + a^4 + 1 the following algorithms can be used (C language):
By tables method described in Dallas APPLICATION NOTE 27: Understanding and Using Cyclic Redundancy Checks with Dallas Semiconductor iButton Products
No Address Type Unit data
1 0x00 U16 -
2 0x01 U16 Hz
3 0x02 U16 Hz
4 0x03 U16 -
5 0x04 U16 °C
6 0x05 U16 -
7 0x06 U16 -
Min calibration frequency - high bit
Fuel level data (12 bit)
Temperature
Reserved for future use
Reserved for future use
2. Modbus RTU Register Mapping
The SOJI sensor is capable of communication via the RS-485 serial bus in the Modbus/RTU protocol.
The sensor supports the Modbus function 03 – Read Holding Registers
Description
Sensor address
Min calibration frequency - low bit
U8 CRC8 (U8 data,U8 crc)
{
U8 i = data ^ crc;
crc = 0;
if(i & 0x01) crc ^= 0x5e;
if(i & 0x02) crc ^= 0xbc;
if(i & 0x04) crc ^= 0x61;
if(i & 0x08) crc ^= 0xc2;
if(i & 0x10) crc ^= 0x9d;
if(i & 0x20) crc ^= 0x23;
if(i & 0x40) crc ^= 0x46;
if(i & 0x80) crc ^= 0x8c;
return crc;
}
8 0x07 U16 Hz
9 0x08 U16 Hz
10 0x09 U16 -
11 0x0A U16 Hz
12 0x0B U16 Hz
Max calibration frequency - low bit
Max calibration frequency - high bit
Reserved for future use
OSC current
OSC current

More Related Content

What's hot

Linux SD/MMC device driver
Linux SD/MMC device driverLinux SD/MMC device driver
Linux SD/MMC device driver
艾鍗科技
 
Seminar on Driver Behaviour Detection using Swarm Intelligence.
Seminar on Driver Behaviour Detection using Swarm Intelligence.Seminar on Driver Behaviour Detection using Swarm Intelligence.
Seminar on Driver Behaviour Detection using Swarm Intelligence.
Rajani Suryavanshi
 
Android chapter02-setup2-emulator
Android chapter02-setup2-emulatorAndroid chapter02-setup2-emulator
Android chapter02-setup2-emulator
guru472
 
Android Booting Sequence
Android Booting SequenceAndroid Booting Sequence
Android Booting Sequence
Jayanta Ghoshal
 
Android Things : Building Embedded Devices
Android Things : Building Embedded DevicesAndroid Things : Building Embedded Devices
Android Things : Building Embedded Devices
Emertxe Information Technologies Pvt Ltd
 
Android Internals
Android InternalsAndroid Internals
Android Internals
Opersys inc.
 
U-boot and Android Verified Boot 2.0
U-boot and Android Verified Boot 2.0U-boot and Android Verified Boot 2.0
U-boot and Android Verified Boot 2.0
GlobalLogic Ukraine
 
Android PPT Presentation 2018
Android PPT Presentation 2018Android PPT Presentation 2018
Android PPT Presentation 2018
Rao Purna
 
Smart car
Smart carSmart car
Android Operating System (Androrid OS)
Android Operating System (Androrid OS)Android Operating System (Androrid OS)
Android Operating System (Androrid OS)
Siddharth Belbase
 
Practice of Android Reverse Engineering
Practice of Android Reverse EngineeringPractice of Android Reverse Engineering
Practice of Android Reverse Engineering
National Cheng Kung University
 
Booting Android: bootloaders, fastboot and boot images
Booting Android: bootloaders, fastboot and boot imagesBooting Android: bootloaders, fastboot and boot images
Booting Android: bootloaders, fastboot and boot images
Chris Simmonds
 
Sockets in unix
Sockets in unixSockets in unix
Sockets in unix
swtjerin4u
 
Synopsis on android application
Synopsis on android applicationSynopsis on android application
Synopsis on android application
Jawed akhtar
 
Improving Real-Time Performance on Multicore Platforms using MemGuard
Improving Real-Time Performance on Multicore Platforms using MemGuardImproving Real-Time Performance on Multicore Platforms using MemGuard
Improving Real-Time Performance on Multicore Platforms using MemGuard
Heechul Yun
 
1 location tracking of android device based on sms
 1 location tracking of android device based on sms 1 location tracking of android device based on sms
1 location tracking of android device based on sms
iCreateWorld
 
Shorten Device Boot Time for Automotive IVI and Navigation Systems
Shorten Device Boot Time for Automotive IVI and Navigation SystemsShorten Device Boot Time for Automotive IVI and Navigation Systems
Shorten Device Boot Time for Automotive IVI and Navigation Systems
National Cheng Kung University
 
Embedded Android : System Development - Part II (Linux device drivers)
Embedded Android : System Development - Part II (Linux device drivers)Embedded Android : System Development - Part II (Linux device drivers)
Embedded Android : System Development - Part II (Linux device drivers)
Emertxe Information Technologies Pvt Ltd
 
Why You Cannot Use Neural Engine to Run Your NN Models on A11 Devices?
Why You Cannot Use Neural Engine to Run Your NN Models on A11 Devices?Why You Cannot Use Neural Engine to Run Your NN Models on A11 Devices?
Why You Cannot Use Neural Engine to Run Your NN Models on A11 Devices?
Koan-Sin Tan
 
Embedded Android Workshop with Pie
Embedded Android Workshop with PieEmbedded Android Workshop with Pie
Embedded Android Workshop with Pie
Opersys inc.
 

What's hot (20)

Linux SD/MMC device driver
Linux SD/MMC device driverLinux SD/MMC device driver
Linux SD/MMC device driver
 
Seminar on Driver Behaviour Detection using Swarm Intelligence.
Seminar on Driver Behaviour Detection using Swarm Intelligence.Seminar on Driver Behaviour Detection using Swarm Intelligence.
Seminar on Driver Behaviour Detection using Swarm Intelligence.
 
Android chapter02-setup2-emulator
Android chapter02-setup2-emulatorAndroid chapter02-setup2-emulator
Android chapter02-setup2-emulator
 
Android Booting Sequence
Android Booting SequenceAndroid Booting Sequence
Android Booting Sequence
 
Android Things : Building Embedded Devices
Android Things : Building Embedded DevicesAndroid Things : Building Embedded Devices
Android Things : Building Embedded Devices
 
Android Internals
Android InternalsAndroid Internals
Android Internals
 
U-boot and Android Verified Boot 2.0
U-boot and Android Verified Boot 2.0U-boot and Android Verified Boot 2.0
U-boot and Android Verified Boot 2.0
 
Android PPT Presentation 2018
Android PPT Presentation 2018Android PPT Presentation 2018
Android PPT Presentation 2018
 
Smart car
Smart carSmart car
Smart car
 
Android Operating System (Androrid OS)
Android Operating System (Androrid OS)Android Operating System (Androrid OS)
Android Operating System (Androrid OS)
 
Practice of Android Reverse Engineering
Practice of Android Reverse EngineeringPractice of Android Reverse Engineering
Practice of Android Reverse Engineering
 
Booting Android: bootloaders, fastboot and boot images
Booting Android: bootloaders, fastboot and boot imagesBooting Android: bootloaders, fastboot and boot images
Booting Android: bootloaders, fastboot and boot images
 
Sockets in unix
Sockets in unixSockets in unix
Sockets in unix
 
Synopsis on android application
Synopsis on android applicationSynopsis on android application
Synopsis on android application
 
Improving Real-Time Performance on Multicore Platforms using MemGuard
Improving Real-Time Performance on Multicore Platforms using MemGuardImproving Real-Time Performance on Multicore Platforms using MemGuard
Improving Real-Time Performance on Multicore Platforms using MemGuard
 
1 location tracking of android device based on sms
 1 location tracking of android device based on sms 1 location tracking of android device based on sms
1 location tracking of android device based on sms
 
Shorten Device Boot Time for Automotive IVI and Navigation Systems
Shorten Device Boot Time for Automotive IVI and Navigation SystemsShorten Device Boot Time for Automotive IVI and Navigation Systems
Shorten Device Boot Time for Automotive IVI and Navigation Systems
 
Embedded Android : System Development - Part II (Linux device drivers)
Embedded Android : System Development - Part II (Linux device drivers)Embedded Android : System Development - Part II (Linux device drivers)
Embedded Android : System Development - Part II (Linux device drivers)
 
Why You Cannot Use Neural Engine to Run Your NN Models on A11 Devices?
Why You Cannot Use Neural Engine to Run Your NN Models on A11 Devices?Why You Cannot Use Neural Engine to Run Your NN Models on A11 Devices?
Why You Cannot Use Neural Engine to Run Your NN Models on A11 Devices?
 
Embedded Android Workshop with Pie
Embedded Android Workshop with PieEmbedded Android Workshop with Pie
Embedded Android Workshop with Pie
 

Similar to LIGO fuel level protocol rev c

Lecture 10 (serial communication)
Lecture 10 (serial communication)Lecture 10 (serial communication)
Lecture 10 (serial communication)
cairo university
 
Lecture 10 _serial_communication
Lecture 10 _serial_communicationLecture 10 _serial_communication
Lecture 10 _serial_communication
Md Rakibul islam chowdhury
 
Lensen products introduction
Lensen products introductionLensen products introduction
Lensen products introduction
Sunny Chou
 
Regolatore Controller-Ucontrol
Regolatore Controller-UcontrolRegolatore Controller-Ucontrol
Regolatore Controller-Ucontrol
conwaychris
 
eastron-sdm230-protocol-v14 (1).pdf
eastron-sdm230-protocol-v14 (1).pdfeastron-sdm230-protocol-v14 (1).pdf
eastron-sdm230-protocol-v14 (1).pdf
Henry Quilla
 
Punch sensor, Arduino
Punch sensor, Arduino Punch sensor, Arduino
Punch sensor, Arduino
Christopher Brennan
 
Galil dmc 42x0 catalog
Galil dmc 42x0 catalogGalil dmc 42x0 catalog
Galil dmc 42x0 catalog
Electromate
 
Galil DMC 42x0 Catalog
Galil DMC 42x0 CatalogGalil DMC 42x0 Catalog
Galil DMC 42x0 Catalog
Electromate
 
Panasonic fpx
Panasonic fpxPanasonic fpx
Panasonic fpx
steven qi
 
8051 training an interactive tutorial
8051 training an interactive tutorial8051 training an interactive tutorial
8051 training an interactive tutorial
Futura infotech
 
Wecon PLC Introduction 2017
Wecon PLC Introduction 2017Wecon PLC Introduction 2017
Wecon PLC Introduction 2017
Lily Zheng
 
AVR Fundamentals
AVR FundamentalsAVR Fundamentals
AVR Fundamentals
Vinit Vyas
 
Spark
SparkSpark
Advanced motion controls dzralte 012l080
Advanced motion controls dzralte 012l080Advanced motion controls dzralte 012l080
Advanced motion controls dzralte 012l080
Electromate
 
Presentation On: "Micro-controller 8051 & Embedded System"
Presentation On: "Micro-controller 8051 & Embedded System"Presentation On: "Micro-controller 8051 & Embedded System"
Presentation On: "Micro-controller 8051 & Embedded System"
surabhii007
 
Advanced motion controls dzcante 012l080
Advanced motion controls dzcante 012l080Advanced motion controls dzcante 012l080
Advanced motion controls dzcante 012l080
Electromate
 
Applied motion products st datasheet
Applied motion products st datasheetApplied motion products st datasheet
Applied motion products st datasheet
Electromate
 
Cataloge ge 3.control and_automation_dienhathe.com-4_15_vat300_e_c6-1_rev_d
Cataloge ge 3.control and_automation_dienhathe.com-4_15_vat300_e_c6-1_rev_dCataloge ge 3.control and_automation_dienhathe.com-4_15_vat300_e_c6-1_rev_d
Cataloge ge 3.control and_automation_dienhathe.com-4_15_vat300_e_c6-1_rev_d
Dien Ha The
 
Cataloge ge 3.control and_automation-15_vat300_e_c6-1_rev_d
Cataloge ge 3.control and_automation-15_vat300_e_c6-1_rev_dCataloge ge 3.control and_automation-15_vat300_e_c6-1_rev_d
Cataloge ge 3.control and_automation-15_vat300_e_c6-1_rev_d
Thuan Kieu
 
Cataloge ge 3.control and_automation-15_vat300_e_c6-1_rev_d
Cataloge ge 3.control and_automation-15_vat300_e_c6-1_rev_dCataloge ge 3.control and_automation-15_vat300_e_c6-1_rev_d
Cataloge ge 3.control and_automation-15_vat300_e_c6-1_rev_d
Dien Ha The
 

Similar to LIGO fuel level protocol rev c (20)

Lecture 10 (serial communication)
Lecture 10 (serial communication)Lecture 10 (serial communication)
Lecture 10 (serial communication)
 
Lecture 10 _serial_communication
Lecture 10 _serial_communicationLecture 10 _serial_communication
Lecture 10 _serial_communication
 
Lensen products introduction
Lensen products introductionLensen products introduction
Lensen products introduction
 
Regolatore Controller-Ucontrol
Regolatore Controller-UcontrolRegolatore Controller-Ucontrol
Regolatore Controller-Ucontrol
 
eastron-sdm230-protocol-v14 (1).pdf
eastron-sdm230-protocol-v14 (1).pdfeastron-sdm230-protocol-v14 (1).pdf
eastron-sdm230-protocol-v14 (1).pdf
 
Punch sensor, Arduino
Punch sensor, Arduino Punch sensor, Arduino
Punch sensor, Arduino
 
Galil dmc 42x0 catalog
Galil dmc 42x0 catalogGalil dmc 42x0 catalog
Galil dmc 42x0 catalog
 
Galil DMC 42x0 Catalog
Galil DMC 42x0 CatalogGalil DMC 42x0 Catalog
Galil DMC 42x0 Catalog
 
Panasonic fpx
Panasonic fpxPanasonic fpx
Panasonic fpx
 
8051 training an interactive tutorial
8051 training an interactive tutorial8051 training an interactive tutorial
8051 training an interactive tutorial
 
Wecon PLC Introduction 2017
Wecon PLC Introduction 2017Wecon PLC Introduction 2017
Wecon PLC Introduction 2017
 
AVR Fundamentals
AVR FundamentalsAVR Fundamentals
AVR Fundamentals
 
Spark
SparkSpark
Spark
 
Advanced motion controls dzralte 012l080
Advanced motion controls dzralte 012l080Advanced motion controls dzralte 012l080
Advanced motion controls dzralte 012l080
 
Presentation On: "Micro-controller 8051 & Embedded System"
Presentation On: "Micro-controller 8051 & Embedded System"Presentation On: "Micro-controller 8051 & Embedded System"
Presentation On: "Micro-controller 8051 & Embedded System"
 
Advanced motion controls dzcante 012l080
Advanced motion controls dzcante 012l080Advanced motion controls dzcante 012l080
Advanced motion controls dzcante 012l080
 
Applied motion products st datasheet
Applied motion products st datasheetApplied motion products st datasheet
Applied motion products st datasheet
 
Cataloge ge 3.control and_automation_dienhathe.com-4_15_vat300_e_c6-1_rev_d
Cataloge ge 3.control and_automation_dienhathe.com-4_15_vat300_e_c6-1_rev_dCataloge ge 3.control and_automation_dienhathe.com-4_15_vat300_e_c6-1_rev_d
Cataloge ge 3.control and_automation_dienhathe.com-4_15_vat300_e_c6-1_rev_d
 
Cataloge ge 3.control and_automation-15_vat300_e_c6-1_rev_d
Cataloge ge 3.control and_automation-15_vat300_e_c6-1_rev_dCataloge ge 3.control and_automation-15_vat300_e_c6-1_rev_d
Cataloge ge 3.control and_automation-15_vat300_e_c6-1_rev_d
 
Cataloge ge 3.control and_automation-15_vat300_e_c6-1_rev_d
Cataloge ge 3.control and_automation-15_vat300_e_c6-1_rev_dCataloge ge 3.control and_automation-15_vat300_e_c6-1_rev_d
Cataloge ge 3.control and_automation-15_vat300_e_c6-1_rev_d
 

Recently uploaded

一比一原版(Columbia文凭证书)哥伦比亚大学毕业证如何办理
一比一原版(Columbia文凭证书)哥伦比亚大学毕业证如何办理一比一原版(Columbia文凭证书)哥伦比亚大学毕业证如何办理
一比一原版(Columbia文凭证书)哥伦比亚大学毕业证如何办理
afkxen
 
Charging Fueling & Infrastructure (CFI) Program by Kevin Miller
Charging Fueling & Infrastructure (CFI) Program  by Kevin MillerCharging Fueling & Infrastructure (CFI) Program  by Kevin Miller
Charging Fueling & Infrastructure (CFI) Program by Kevin Miller
Forth
 
EV Charging at Multifamily Properties by Kevin Donnelly
EV Charging at Multifamily Properties by Kevin DonnellyEV Charging at Multifamily Properties by Kevin Donnelly
EV Charging at Multifamily Properties by Kevin Donnelly
Forth
 
按照学校原版(UniSA文凭证书)南澳大学毕业证快速办理
按照学校原版(UniSA文凭证书)南澳大学毕业证快速办理按照学校原版(UniSA文凭证书)南澳大学毕业证快速办理
按照学校原版(UniSA文凭证书)南澳大学毕业证快速办理
ggany
 
快速办理(napier毕业证书)英国龙比亚大学毕业证在读证明一模一样
快速办理(napier毕业证书)英国龙比亚大学毕业证在读证明一模一样快速办理(napier毕业证书)英国龙比亚大学毕业证在读证明一模一样
快速办理(napier毕业证书)英国龙比亚大学毕业证在读证明一模一样
78tq3hi2
 
Expanding Access to Affordable At-Home EV Charging by Vanessa Warheit
Expanding Access to Affordable At-Home EV Charging by Vanessa WarheitExpanding Access to Affordable At-Home EV Charging by Vanessa Warheit
Expanding Access to Affordable At-Home EV Charging by Vanessa Warheit
Forth
 
Here's Why Every Semi-Truck Should Have ELDs
Here's Why Every Semi-Truck Should Have ELDsHere's Why Every Semi-Truck Should Have ELDs
Here's Why Every Semi-Truck Should Have ELDs
jennifermiller8137
 
Catalytic Converter theft prevention - NYC.pptx
Catalytic Converter theft prevention - NYC.pptxCatalytic Converter theft prevention - NYC.pptx
Catalytic Converter theft prevention - NYC.pptx
Blue Star Brothers
 
EV Charging at MFH Properties by Whitaker Jamieson
EV Charging at MFH Properties by Whitaker JamiesonEV Charging at MFH Properties by Whitaker Jamieson
EV Charging at MFH Properties by Whitaker Jamieson
Forth
 
一比一原版(UMich毕业证)密歇根大学|安娜堡分校毕业证如何办理
一比一原版(UMich毕业证)密歇根大学|安娜堡分校毕业证如何办理一比一原版(UMich毕业证)密歇根大学|安娜堡分校毕业证如何办理
一比一原版(UMich毕业证)密歇根大学|安娜堡分校毕业证如何办理
u2cz10zq
 
原版定做(mmu学位证书)英国曼彻斯特城市大学毕业证本科文凭原版一模一样
原版定做(mmu学位证书)英国曼彻斯特城市大学毕业证本科文凭原版一模一样原版定做(mmu学位证书)英国曼彻斯特城市大学毕业证本科文凭原版一模一样
原版定做(mmu学位证书)英国曼彻斯特城市大学毕业证本科文凭原版一模一样
utuvvas
 
原版制作(Exeter毕业证书)埃克塞特大学毕业证完成信一模一样
原版制作(Exeter毕业证书)埃克塞特大学毕业证完成信一模一样原版制作(Exeter毕业证书)埃克塞特大学毕业证完成信一模一样
原版制作(Exeter毕业证书)埃克塞特大学毕业证完成信一模一样
78tq3hi2
 
53286592-Global-Entrepreneurship-and-the-Successful-Growth-Strategies-of-Earl...
53286592-Global-Entrepreneurship-and-the-Successful-Growth-Strategies-of-Earl...53286592-Global-Entrepreneurship-and-the-Successful-Growth-Strategies-of-Earl...
53286592-Global-Entrepreneurship-and-the-Successful-Growth-Strategies-of-Earl...
MarynaYurchenko2
 
原版制作(澳洲WSU毕业证书)西悉尼大学毕业证文凭证书一模一样
原版制作(澳洲WSU毕业证书)西悉尼大学毕业证文凭证书一模一样原版制作(澳洲WSU毕业证书)西悉尼大学毕业证文凭证书一模一样
原版制作(澳洲WSU毕业证书)西悉尼大学毕业证文凭证书一模一样
g1inbfro
 
Charging and Fueling Infrastructure Grant: Round 2 by Brandt Hertenstein
Charging and Fueling Infrastructure Grant: Round 2 by Brandt HertensteinCharging and Fueling Infrastructure Grant: Round 2 by Brandt Hertenstein
Charging and Fueling Infrastructure Grant: Round 2 by Brandt Hertenstein
Forth
 
一比一原版(WashU文凭证书)圣路易斯华盛顿大学毕业证如何办理
一比一原版(WashU文凭证书)圣路易斯华盛顿大学毕业证如何办理一比一原版(WashU文凭证书)圣路易斯华盛顿大学毕业证如何办理
一比一原版(WashU文凭证书)圣路易斯华盛顿大学毕业证如何办理
afkxen
 
Charging Fueling & Infrastructure (CFI) Program Resources by Cat Plein
Charging Fueling & Infrastructure (CFI) Program Resources by Cat PleinCharging Fueling & Infrastructure (CFI) Program Resources by Cat Plein
Charging Fueling & Infrastructure (CFI) Program Resources by Cat Plein
Forth
 
Dahua Security Camera System Guide esetia
Dahua Security Camera System Guide esetiaDahua Security Camera System Guide esetia
Dahua Security Camera System Guide esetia
Esentia Systems
 

Recently uploaded (18)

一比一原版(Columbia文凭证书)哥伦比亚大学毕业证如何办理
一比一原版(Columbia文凭证书)哥伦比亚大学毕业证如何办理一比一原版(Columbia文凭证书)哥伦比亚大学毕业证如何办理
一比一原版(Columbia文凭证书)哥伦比亚大学毕业证如何办理
 
Charging Fueling & Infrastructure (CFI) Program by Kevin Miller
Charging Fueling & Infrastructure (CFI) Program  by Kevin MillerCharging Fueling & Infrastructure (CFI) Program  by Kevin Miller
Charging Fueling & Infrastructure (CFI) Program by Kevin Miller
 
EV Charging at Multifamily Properties by Kevin Donnelly
EV Charging at Multifamily Properties by Kevin DonnellyEV Charging at Multifamily Properties by Kevin Donnelly
EV Charging at Multifamily Properties by Kevin Donnelly
 
按照学校原版(UniSA文凭证书)南澳大学毕业证快速办理
按照学校原版(UniSA文凭证书)南澳大学毕业证快速办理按照学校原版(UniSA文凭证书)南澳大学毕业证快速办理
按照学校原版(UniSA文凭证书)南澳大学毕业证快速办理
 
快速办理(napier毕业证书)英国龙比亚大学毕业证在读证明一模一样
快速办理(napier毕业证书)英国龙比亚大学毕业证在读证明一模一样快速办理(napier毕业证书)英国龙比亚大学毕业证在读证明一模一样
快速办理(napier毕业证书)英国龙比亚大学毕业证在读证明一模一样
 
Expanding Access to Affordable At-Home EV Charging by Vanessa Warheit
Expanding Access to Affordable At-Home EV Charging by Vanessa WarheitExpanding Access to Affordable At-Home EV Charging by Vanessa Warheit
Expanding Access to Affordable At-Home EV Charging by Vanessa Warheit
 
Here's Why Every Semi-Truck Should Have ELDs
Here's Why Every Semi-Truck Should Have ELDsHere's Why Every Semi-Truck Should Have ELDs
Here's Why Every Semi-Truck Should Have ELDs
 
Catalytic Converter theft prevention - NYC.pptx
Catalytic Converter theft prevention - NYC.pptxCatalytic Converter theft prevention - NYC.pptx
Catalytic Converter theft prevention - NYC.pptx
 
EV Charging at MFH Properties by Whitaker Jamieson
EV Charging at MFH Properties by Whitaker JamiesonEV Charging at MFH Properties by Whitaker Jamieson
EV Charging at MFH Properties by Whitaker Jamieson
 
一比一原版(UMich毕业证)密歇根大学|安娜堡分校毕业证如何办理
一比一原版(UMich毕业证)密歇根大学|安娜堡分校毕业证如何办理一比一原版(UMich毕业证)密歇根大学|安娜堡分校毕业证如何办理
一比一原版(UMich毕业证)密歇根大学|安娜堡分校毕业证如何办理
 
原版定做(mmu学位证书)英国曼彻斯特城市大学毕业证本科文凭原版一模一样
原版定做(mmu学位证书)英国曼彻斯特城市大学毕业证本科文凭原版一模一样原版定做(mmu学位证书)英国曼彻斯特城市大学毕业证本科文凭原版一模一样
原版定做(mmu学位证书)英国曼彻斯特城市大学毕业证本科文凭原版一模一样
 
原版制作(Exeter毕业证书)埃克塞特大学毕业证完成信一模一样
原版制作(Exeter毕业证书)埃克塞特大学毕业证完成信一模一样原版制作(Exeter毕业证书)埃克塞特大学毕业证完成信一模一样
原版制作(Exeter毕业证书)埃克塞特大学毕业证完成信一模一样
 
53286592-Global-Entrepreneurship-and-the-Successful-Growth-Strategies-of-Earl...
53286592-Global-Entrepreneurship-and-the-Successful-Growth-Strategies-of-Earl...53286592-Global-Entrepreneurship-and-the-Successful-Growth-Strategies-of-Earl...
53286592-Global-Entrepreneurship-and-the-Successful-Growth-Strategies-of-Earl...
 
原版制作(澳洲WSU毕业证书)西悉尼大学毕业证文凭证书一模一样
原版制作(澳洲WSU毕业证书)西悉尼大学毕业证文凭证书一模一样原版制作(澳洲WSU毕业证书)西悉尼大学毕业证文凭证书一模一样
原版制作(澳洲WSU毕业证书)西悉尼大学毕业证文凭证书一模一样
 
Charging and Fueling Infrastructure Grant: Round 2 by Brandt Hertenstein
Charging and Fueling Infrastructure Grant: Round 2 by Brandt HertensteinCharging and Fueling Infrastructure Grant: Round 2 by Brandt Hertenstein
Charging and Fueling Infrastructure Grant: Round 2 by Brandt Hertenstein
 
一比一原版(WashU文凭证书)圣路易斯华盛顿大学毕业证如何办理
一比一原版(WashU文凭证书)圣路易斯华盛顿大学毕业证如何办理一比一原版(WashU文凭证书)圣路易斯华盛顿大学毕业证如何办理
一比一原版(WashU文凭证书)圣路易斯华盛顿大学毕业证如何办理
 
Charging Fueling & Infrastructure (CFI) Program Resources by Cat Plein
Charging Fueling & Infrastructure (CFI) Program Resources by Cat PleinCharging Fueling & Infrastructure (CFI) Program Resources by Cat Plein
Charging Fueling & Infrastructure (CFI) Program Resources by Cat Plein
 
Dahua Security Camera System Guide esetia
Dahua Security Camera System Guide esetiaDahua Security Camera System Guide esetia
Dahua Security Camera System Guide esetia
 

LIGO fuel level protocol rev c

  • 1. Full Name Title Prepared by Nguyen Duy Tan Engineer Approved by Quang Nguyen Project manager Revision No Effective date 1 1 October 2016 2 15 November 2016 3 22 May 2017 General info and specifications 1. SOJI Protocol Request 0x31 Adr Fmt Data CS 1 byte 1 byte 1 byte [0 - 128] byte 1 byte where - Adr: address of sensor in the network - Fmt: type of request - Data: Field data - CS: checksum by CRC8 method Response 0x3e Adr Fmt Data CS 1 byte 1 byte 1 byte [0-128] byte 1 byte where - Adr: address of sensor in the network - Fmt: type of request Protocol of SOJI Fuel level sensor FJ-RS232/FJ-RS485 Version 1.0.2 Error control system Transmission distance Changed some commands Document preparion Description First release 500m(RS485), 15m(RS232) Added Modbus RTU register mapping Items Specifications Interface standard Communication system Parity 1 October 2016 1 October 2016 Date RS232/RS485 Half-duplex communication system No parity CRC-8 Revision history
  • 2. - Data: Field data - CS: checksum by CRC8 method Request code Description Type Description Unit data Type Description Unit data 0x02 Reading of serial number - - - U32 Sensor ID - Last 4 byte of UUID - 0x03 Record the sensor address in the network U8 0 .. 254 - U8 0x00 - without errors / 0x01 - with error - U32 Sensor ID - Last 4 byte of UUID U32 Max. calibration frequency Hz U32 Min. calibration frequency Hz S16 Temperature correction coefficient K1 - S8 Additional coefficient of temperature correction k2 - U8 Sensor address in the network (T_NET_ADDRESS) - U8 Autocalib mode (Enable=1, Disable=0) - U8 Not used - U16 Not used - U32 Not used - U16 Not used - U8 Interval parameter filtration (10..120) 10 sec U8 Interval of automatic parameter delivery (0 .. 60) 5 sec U8 Periodic parameter delivery mode (0-Off, 1-Hex, 2-ASCII, 3- ASCII-EXT) - U8 Parameter filtration mode (1 - Off/0 - On) - S16 Not used - S16 Not used - S16 Max value of the fuel height 0.1 mm S16 Min value of the fuel height 0.1 mm S16 Not used - S16 Not used - S16 Not used - U8 Not used - U8 Not used - - - - - - Request Data -0x24 Reading the setting structure of output signal ranges General information - Format 0x05 Reading the structure of additional settings -0x1E Reading completed configuration - Response Data Firmware information
  • 3. 0x1A Reading the date of firmware compilation - - - U8 dim[12] Line - 0x1B Reading the time of firmware compilation - - - U8 dim[10] Line - 0x1C Reading the firmware version - - - U8 dim[3] Line - S8 Temperature in sensor board °C U16 Relative fuel level - Fuel level in cond. unit (0 - 4095) - Fuel level in mm [0.1mm] - Fuel volume in tank [0.1 l] - Fuel volume in the tank [0.4%] - 0.1mm 0.1 l 0.4% U32 Current frequency of oscillator Hz S8 Temperature > 0, Error code < 0 °C S16 Relative fuel level - Fuel level in cond. unit (0 - 4095) - Fuel level in mm [0.1mm] - Fuel volume in tank [0.1 l] - Fuel volume in the tank [0.4%] 1 0.1mm 0.1 l 0.4% U32 Current frequency of oscillator Hz S16 Not used - S16 Electronic board temperature °C U32 Frequency of reference oscillator Hz U32 Frequency of measuring oscillator, initial Hz U32 Frequency of measuring generator, compensated Hz S16 Height of fuel in conditional units 1 c.u. S16 Not used - S16 Not used - S16 Not used - S16 Fuel volume in the tank 0.1 l S16 Not used - S16 Not used - S16 Not used - U16 Height of fuel in the sensor, initial 0.1 mm U16 Height of fuel in the sensor, adjusted 0.1 mm U16 Height of fuel in the sensor, filtered 0.1 mm U16 Not used - U8 Fuel volume in the tank in % of its volume 0.4% U8 Not used - U16 Not used - Reading data 0x06 Reading the working parameters0x23 - - 0x1F -
  • 4. 0x08 Calib to minimum - - - U8 0x00 - without errors / 0x01 - with error - 0x09 Calib to maximum - - - U8 0x00 - without errors / 0x01 - with error - U16 Coefficient K1 S8 Addition coefficient K2 0x0B Record minimum calibration frequency U32 Calibration frequency 1 Hz U8 0x00 - without errors / 0x01 - with error - 0x0C Record maximum calibration frequency U32 Calibration frequency 1 Hz U8 0x00 - without errors / 0x01 - with error - 0x11 Record filteration interval U8 0 ... 60 sec 1 sec U8 0x00 - without errors / 0x01 - with error - 0x14 Read the filteration interval - - - U8 0 .. 120 1 sec 0x12 Set the access level of the installer U8 dim[8] Array of coded password - U8 0x00 - without errors / 0x01 - with error - 0x15 Read the installer password - - - U8 dim[8] Array of coded password - S16 Not used - S16 Not used - S16 Max value of the fuel height 0.1 mm S16 Min value of the fuel height in the sensor 0.1 mm S16 Not used - S16 Not used - S16 Not used - U8 Not used - U8 Not used - 0x07 Switch on pediodic delivery. Device stops when receive a valid request. - - - U8 0x00 - without errors / 0x01 - with error - 0x13 Record interval of automatic parameter delivery U8 0 .. 60 1 sec U8 0x00 - without errors / 0x01 - with error - 0x17 Record the periodic parameter delivery mode after reset (power supply) U8 - 0 - OFF - 1 - HEX - 2 - ASCII - U8 0x00 - without errors / 0x01 - with error - 0x34 Read ASCII-EXT prefix and postfix - - - struct{ U8 pre[30]; U8 post[30];} Two lines of symbols, that end with "zero" - 0x35 Record ASCII-EXT prefix and postfix struct{ U8 pre[30]; U8 post[30];} Two lines of symbols, that end with "zero" - U8 0x00 - without errors / 0x01 - with error - Record temperature corrrection U8 0x00 - without errors / 0x01 - with error - 0x00 - without errors / 0x01 - with error -U8 Configuration 0x0A Periodic mode 0x25 Record the setting structure of output signal ranges
  • 5. Notes - All write commands require access level 0x12 Types: U8 - unsigned 8 bit value S8 - signed 8 bit value U16 - unsigned 16 bit value S16 - signed 16 bit value U32 - unsigned 32 bit value S32 - signed 32 bit value CRC error check To calculate CRC Polynomial a^8 + a^5 + a^4 + 1 the following algorithms can be used (C language): By tables method described in Dallas APPLICATION NOTE 27: Understanding and Using Cyclic Redundancy Checks with Dallas Semiconductor iButton Products No Address Type Unit data 1 0x00 U16 - 2 0x01 U16 Hz 3 0x02 U16 Hz 4 0x03 U16 - 5 0x04 U16 °C 6 0x05 U16 - 7 0x06 U16 - Min calibration frequency - high bit Fuel level data (12 bit) Temperature Reserved for future use Reserved for future use 2. Modbus RTU Register Mapping The SOJI sensor is capable of communication via the RS-485 serial bus in the Modbus/RTU protocol. The sensor supports the Modbus function 03 – Read Holding Registers Description Sensor address Min calibration frequency - low bit U8 CRC8 (U8 data,U8 crc) { U8 i = data ^ crc; crc = 0; if(i & 0x01) crc ^= 0x5e; if(i & 0x02) crc ^= 0xbc; if(i & 0x04) crc ^= 0x61; if(i & 0x08) crc ^= 0xc2; if(i & 0x10) crc ^= 0x9d; if(i & 0x20) crc ^= 0x23; if(i & 0x40) crc ^= 0x46; if(i & 0x80) crc ^= 0x8c; return crc; }
  • 6. 8 0x07 U16 Hz 9 0x08 U16 Hz 10 0x09 U16 - 11 0x0A U16 Hz 12 0x0B U16 Hz Max calibration frequency - low bit Max calibration frequency - high bit Reserved for future use OSC current OSC current