FMB 130 Bluetooth Commands

When I connect to my FMB 130 device via an Android device and send the “sms_run:setdigout 000” command via the terminal, the command works and the device returns. I manage to connect to the device and send a command in the iOS BT application I wrote, but the device does not process the command. I tried utf8 and ascii formats when sending commands. The same problem occurs when sending SMS with my iPhone 11. When I pull a log file from the device, I view these logs.

[2024.02.15 14:30:36]-[BLE.APP] ERROR @ m2m_ble_app.c(846):[CONMASTER] Got gatts conn required ble resp; type: 36/connected, but we are not expecting anything
[2024.02.15 14:30:36]-[BLE.APP] [UpdateConnStatus] This device 46699639E5FF connected to us! Expected: no
[2024.02.15 14:30:36]-[BLE.APP] [FSM.QUEUE.1161] fsm: 6/gatts, conn type: gatts conn required, data addr: 0x0
[2024.02.15 14:30:36]-[BLE.APP] Connection 0 reserved
[2024.02.15 14:30:36]-[BLE.APP] [CONMASTER.ADD] Added fsm: 6/gatts, conn type: gatts conn required, idx: 0, job: 0/start, data addr: 0x0, conn no: 0
[2024.02.15 14:30:36]-[BLE.APP] [CONMASTER.START] job idx: 0, job 0/start, fsm: /6gatts, conn no: 0
[2024.02.15 14:30:36]-[BLE.FSM.GATTS] ble gatts FSM start
[2024.02.15 14:30:36]-[BLE.APP] [UpdateConnStatus] Conn 00 status 0 => 1, addr: 46699639E5FF

[2024.02.15 14:47:29]-[BLE.APP] [CONMASTER] Got gatts conn required ble resp; 44/write request; conn no: 0, fsm: gatts, idx: 0, job: 0/start
[2024.02.15 14:47:29]-[BLE.FSM.GATTS] ble start FSM reg handler
[2024.02.15 14:47:29]-[BLE.FSM.GATTS] [gatts write request cb] ble_info.reg_ctx: F024D7DC, status: 0
[2024.02.15 14:47:29]-[BLE.APP] [CONMASTER.RNEXT.0060] Current fsm: gatts, conn type: gatts conn required, idx: 0, job: 0/start => next idx: 1, job: 27/response, conn no: 0
[2024.02.15 14:47:29]-[BLE.FSM.GATTS] ble response
[2024.02.15 14:47:29]-[BLE.APP] [CONMASTER] Got gatts conn required ble resp; 41/send response; conn no: 0, fsm: gatts, idx: 1, job: 27/response
[2024.02.15 14:47:29]-[BLE.FSM.GATTS] ble response reg handler
[2024.02.15 14:47:29]-[BLE.FSM.GATTS] [gatts send response request cb] ble_info.reg_ctx: F024D7DC, status: 0
[2024.02.15 14:47:29]-[BLE.APP] [CONMASTER.RSPEC.0090] Current fsm: gatts, conn type: gatts conn required, idx: 1, job: 27/response => spec idx: 0, job: 0/start, conn no: 0
[2024.02.15 14:47:29]-[BLE.FSM.GATTS] ble gatts FSM start
[2024.02.15 14:47:31]-[BLE.APP] [CONMASTER] Got gatts conn required ble resp; 44/write request; conn no: 0, fsm: gatts, idx: 0, job: 0/start
[2024.02.15 14:47:31]-[BLE.FSM.GATTS] ble start FSM reg handler
[2024.02.15 14:47:31]-[BLE.FSM.GATTS] [gatts write request cb] ble_info.reg_ctx: F024D7DC, status: 0
[2024.02.15 14:47:31]-[BLE.APP] [CONMASTER.RNEXT.0060] Current fsm: gatts, conn type: gatts conn required, idx: 0, job: 0/start => next idx: 1, job: 27/response, conn no: 0
[2024.02.15 14:47:31]-[BLE.FSM.GATTS] ble response
[2024.02.15 14:47:31]-[BLE.APP] [CONMASTER] Got gatts conn required ble resp; 41/send response; conn no: 0, fsm: gatts, idx: 1, job: 27/response
[2024.02.15 14:47:31]-[BLE.FSM.GATTS] ble response reg handler
[2024.02.15 14:47:31]-[BLE.FSM.GATTS] [gatts send response request cb] ble_info.reg_ctx: F024D7DC, status: 0
[2024.02.15 14:47:31]-[BLE.APP] [CONMASTER.RSPEC.0090] Current fsm: gatts, conn type: gatts conn required, idx: 1, job: 27/response => spec idx: 0, job: 0/start, conn no: 0
[2024.02.15 14:47:31]-[BLE.FSM.GATTS] ble gatts FSM start

When I send a command with Android, I see this output
[2024.02.15 09:59:10]-[BT] Connected BT ADDR:{x:x:x:x:x:x}
[2024.02.15 09:59:10]-[LVCAN] CAN MODULE in sleep mode
[2024.02.15 09:59:12]-[SET.DOUT] Input only DOUTS
[2024.02.15 09:59:12]-[SET.DOUT] Parsed SMS data: DOUT1:1 TMO:0, SPEED:-1
[2024.02.15 09:59:12]-[SET.DOUT] Parsed SMS data: DOUT2:1 TMO:0, SPEED:-1
[2024.02.15 09:59:12]-[SET.DOUT] Parsed SMS data: DOUT3:1 TMO:0, SPEED:-1
[2024.02.15 09:59:12]-[SET.DOUT] Setdout1:1, current state ON, TMO 0, speed -1
[2024.02.15 09:59:12]-[SET.DOUT] Setdout2:1, current state ON, TMO 0, speed -1
[2024.02.15 09:59:12]-[SET.DOUT] Setdout3:1, current state OFF, TMO 0, speed -1
[2024.02.15 09:59:12]-[IO.APP] Saving DOUT3 State:[1] Prio:[22] to Flash
[2024.02.15 09:59:13]-[SMS.PRS] SMS CMD Debug Response: DOUT1:Already set to 1 DOUT2:Already set to 1 DOUT3:1 Timeout:INFINITY

How can I solve this error?

Hi Taha,

Good day, We would like to analyze your issue the full documentation can be found on our HD for the Bluetooth Command integration.

Please contact your sales manager.
If you don’t have any contact with our Sales managers, please contact them on our official website https://teltonika-gps.com/ and click on the “Contact Us” button. When you click, please fill out the form and submit it. Note: as a topic, please choose “Vehicle telematics”. Or you can send an e-mail with a description of your situation to info@teltonika.lt

Best Regards
Maynard C.