How to do transmission of jpeg file using bluetooth or wifi hotspot to another computer which also have an matlab software?

2 visualizzazioni (ultimi 30 giorni)
I am working on project in which we have to transmit an file through wireless communication either via bluetooth or by an wifi direct. Please help me to overcome from this problem

Risposta accettata

Walter Roberson
Walter Roberson il 5 Nov 2017
fid = fopen('NameOfImageFile.jpg', 'r'); %not 'rt' !
bytes = fread(fid, [1 inf], '*uint8');
fclose(fid)
Now bytes is a uint8 vector that can be transmitted.
On the destination end, read the bytes and write them to a file.
  2 Commenti
Parvinder  Singh
Parvinder Singh il 5 Nov 2017
thanks for your response. Can transmission done through wifi. Again thanks this works correctly with bluetooth transmission process.
Walter Roberson
Walter Roberson il 5 Nov 2017
wifi and bluetooth do not care what the source was of the data that is being sent through them. Just use the appropriate calls to configure and send the data.
In the case of wifi that is likely to be tcpip() from the Instrument Control toolbox, or you can find a File Exchange contribution for tcpudpip

Accedi per commentare.

Più risposte (0)

Categorie

Scopri di più su Test and Measurement in Help Center e File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by