Get data form a sim card via a smart card reader - c

I' trying to get it using a SmartCard reader with the communication protocol PC/SC and CCID.
I send some bytes to the smartcard reader via the function sCardTransmit. The answer I get back is 61 2E. The documentation said that this means some data is available to read. But how can I read out the data with the functions from the library? Does this function will work SCardGetAttrib()? I thought I get the data back with the Transmit function.
Thanks for help,
Florian

Related

How to make sure user input value with RTOS working

hello i'm new with using RTOS with my board is NUCLEO-G474RE,with my question maybe not clear
well using C# making a GUI to Connect with my board i and sending a value while using RTOS method,
RTOS i have two task there ,Task1 is receive and sendback value that user type also led toggle,
Task2 also is UART receive then flash into my memory,with both task i have send back msg to tell
the task done,the problem is while i send value i cant accuracy flash my value into my board
i have type serval times,i forget to say i only open one uart so i dont think need semaphore
also the GUI i saw the value sendback is right but when i look at the stm32 memory side the value
is ASCII value when i send string is right but sending interger is wrong
fix my question with some pircture sorry i'm new here the picture only show the links
My goal is flash data with uart below is what happen
1.Here is two task ,Task 1 is write the uart receive data into my memory
enter image description here
here is my C# gui when i sending data i send back value
enter image description here
And while i looking at the memory but the data which write in is wrong
enter image description here

I want to know when someone makes a phone call, what will the signal received from a phone look like?

I am learning to rewrite the code for the microcontroller integrated in the development Sim modules (such as Sim800C) to be able to control switching a device without having to use another MCU. If we can do that, we only need to add 1 transistor to be able to control a relay on and off.
I know at the output of the MCU (eg STM32F...) inside the sim module (eg sim800C) there will be a function to receive and read personal information stored in the sim card and decode the signal emitted from the Mobile base station: For example, when a call comes in, it will generate the sequence:
RING
+CLIP: "01203360211",161,"",0,"",0
....
So can anyone help me to know when the MCU outputs a string like the above, what will be its input 11110000,...? or something special in some form? I'm really confused. Thanks everyone!

Sending Data over MQTT: JSON vs STRING

After a lot of effort to program my board, I am finally able to send a simple message over MQTT using Mosquitto broker and Paho based client. At this point I have a doubt. I am sending to the client a simple string, but I want obviously send the result of another operation (such as a Data ACquisition, positioning service, etc).
What should I do in this case?
I read that payload of function below must be a string and I read also that I sould send JSON file:
enter image description here
What do you advise me to do in these cases? Should I create a JSON file at the end of every function that I want to send?
Any help will be appreciated.
Best Regards

Where data can be buffered on rfcomm connection?

i'm trying to pass data between two bluetooth devices, when both connected to two different computers.
After having hci device in each of the computers, i'm using rfcomm to pass information between the two.
I'm trying to pass 10MB of random data just to check the ability of the system.
On the beginning everything seems to work fine. After a few seconds, it looks like there is a delay between the sender and the receiver, when sometimes data stopps to arrive, and then a "massive" amount of data is suddenly arriving the receiver.
Exactly like some buffer is keeping all the data. As long i keep sending data
the delay is getting longer.
I'm trying to figure out where in the chain such buffer can be, or how to
solve this buffering.
Many Thanks :)

SIP protocol / call waiting

First i would like to apologize for my bad english, I wish you will understand my problem.
Here's my question, for my internship, I need to create a fonctionality that allows a caller to put his call in waiting, with a button, and to take the call back with that button again. And i think there's an option with SIP protocol that allows to do that, but i just can't find it, i searched in internet in some documentations, the only thing I might know and i'm not even sure is that it could be an option in a re-INVITE request, that can be send by the called or the caller one, if someone could help me ?
Thanks
The feature you are looking for is achieved by implementing the Call Hold Scenario on a SIP Call.
there are 3 ways to put the call on hold at the press of the button.
Generate a Re-INVITE SDP with SendOnly option - the answer shall contain a recvonly and in this case you can go ahead and inject hold music media through the rtp stream.
Sending inactive in the Re-INVITE SDP which basically puts the media inactive for the session. This is when no rtp exchange is desired.
Sending the 0.0.0.0 notation for the Re-INVITE SDP - This is the old deprecated format of call hold when IPV4 was still the norm [still is!!] but it makes sure the RTP doesn't have a ip to be sent.
All of these mechanisms rely on the basic methods and hence it shouldn't be very difficult to achieve using any client software.

Resources