Hi everyone,
I've just started to use b4a because I'm doing a project at university to create and app on android and I'm still very noob with this language so I hope you can help me a little bit.
The problem is I need to create a map from a txt file, but only I need a map from a specific part of the txt file. For example, if this is the txt file:
//////////////////////////////////
[General]
name = TCM
;11 bits identifiers (standard identifiers)
[std_iden]
;request identifier
rq_iden = 0x7E1
;transmission identifier
tx_iden = 0x7E9
;29 bits identifiers (extended identifiers)
[ext_iden]
;request identifier
rq_iden = 0x18DA18F1
;transmission identifier
tx_iden = 0x18DAF118
[DTCs]
DTC1 = P0101
[PID1]
Type = Variable
Number = 5
Name = Engine Coolant Temp.
Units =ºC
MinRaw = 0
MaxRaw = 255
MinEng = -40
MaxEng = 215
Nbytes = 1
Formula = A-40
[PID2]
Type = Variable
Number = 0x0C
Name = Engine rpm
Units = rpm
MinRaw = 0
MaxRaw = 65535
MinEng = 0
MaxEng = 16383.75
Nbytes = 2
Formula = (A*256+B)/4
////////////////////////////
And I need to create a map of what's written under PID1 and above PID2, how can I do that?
Thank you very much for your help
I've just started to use b4a because I'm doing a project at university to create and app on android and I'm still very noob with this language so I hope you can help me a little bit.
The problem is I need to create a map from a txt file, but only I need a map from a specific part of the txt file. For example, if this is the txt file:
//////////////////////////////////
[General]
name = TCM
;11 bits identifiers (standard identifiers)
[std_iden]
;request identifier
rq_iden = 0x7E1
;transmission identifier
tx_iden = 0x7E9
;29 bits identifiers (extended identifiers)
[ext_iden]
;request identifier
rq_iden = 0x18DA18F1
;transmission identifier
tx_iden = 0x18DAF118
[DTCs]
DTC1 = P0101
[PID1]
Type = Variable
Number = 5
Name = Engine Coolant Temp.
Units =ºC
MinRaw = 0
MaxRaw = 255
MinEng = -40
MaxEng = 215
Nbytes = 1
Formula = A-40
[PID2]
Type = Variable
Number = 0x0C
Name = Engine rpm
Units = rpm
MinRaw = 0
MaxRaw = 65535
MinEng = 0
MaxEng = 16383.75
Nbytes = 2
Formula = (A*256+B)/4
////////////////////////////
And I need to create a map of what's written under PID1 and above PID2, how can I do that?
Thank you very much for your help