Radiohobby.nl

Hét forum over radiocommunicatie!
Het is nu 12 dec 2018 21:44

Alle tijden zijn GMT + 1 uur [ Zomertijd ]




Plaats een nieuw onderwerp Antwoord op onderwerp  [ 22 berichten ]  Ga naar pagina Vorige  1, 2, 3
Auteur Bericht
Ongelezen berichtGeplaatst: 07 apr 2014 15:39 
Offline
Member

Geregistreerd: 24 sep 2012 21:48
Berichten: 17
MatthewMiller schreef:
Hi guys,

I could do with some help please.

I'm logging into to the server and getting the OK response, but then as soon as I send RX0 (as stated in the docs) I get disconnected from the server.

Could someone please explain how to stay connected?

Thanks,

Matt


After you send the RX0 you should receive a list of rooms on the server and a list of participants in your room. Are you getting that? Or is it crashing before?

You can use the .readline() method to parse messages up to that point, but from then on you have to switch over to reading bytes, i.e. .read() as the server now starts to send data.

Upon receipt of byte=2 you should then send a "P".


Omhoog
 Profiel  
Antwoord met een citaat  
Ongelezen berichtGeplaatst: 07 apr 2014 15:59 
Offline
Member

Geregistreerd: 07 apr 2014 13:01
Berichten: 3
Many thanks for the reply!! :-)

Here is a paste from my console log after sending the Login packet. Below is without sending the RX0 but if I do send the RX0 directly after receiving the ACCESS LEVEL = OK then the connection just disconnects straight away.

With this same response the receive is expecting a CRLF after every packet. If I change to read each byte coming in then I can see the server is sending something about 10 times before disconnecting, this must be the byte=2 you mention.

So I just need to figure how to know when to switch between lineread and byte reading. I'm using Objective-C btw.

Code:
2014-04-07 14:51:31.706 FRN Client[2661:70b] client - didConnectToHost
2014-04-07 14:51:32.644 FRN Client[2661:70b] receive response: 2014003
2014-04-07 14:51:33.275 FRN Client[2661:70b] receive response: <MT></MT><SV>2014004</SV><AL>OK</AL><BN>001-446muppetsbackup.no-ip.org</BN><BP>10023</BP>
2014-04-07 14:51:33.275 FRN Client[2661:70b] Access Level = OK
2014-04-07 14:51:33.276 FRN Client[2661:70b] receive response: 
2014-04-07 14:51:33.276 FRN Client[2661:70b] receive response: <S>0</S><M>0</M><NN>United Kingdom</NN><CT>Zello - land</CT><BC>Crosslink</BC><CL>0</CL><ON>FRNMUPPETS, Frn Muppets Zello</ON><ID>91.135.3.170[6]</ID><DS>Download Zello and add channel: FRN 446Muppets</DS>
2014-04-07 14:51:33.277 FRN Client[2661:70b] receive response: <S>0</S><M>0</M><NN>Great Britain</NN><CT>Clacton On Sea - -Admin</CT><BC> 27.88125FM </BC><CL>1</CL><ON>WE01, Ray</ON><ID>178.103.90.214</ID><DS>Ch 29 www.truckcam.tv</DS>
2014-04-07 14:51:33.277 FRN Client[2661:70b] receive response: <S>0</S><M>0</M><NN>United Kingdom</NN><CT>Chesterfield - Holmehall - io93gf</CT><BC>446.05625FM CTC131.8</BC><CL>1</CL><ON>CG01, Mpt002</ON><ID>176.252.104.116</ID><DS>Chesterfield Gateway 01 :- gatewaydx.webs.com</DS>
2014-04-07 14:51:33.278 FRN Client[2661:70b] receive response: <S>0</S><M>0</M><NN>United Kingdom</NN><CT>Chesterfield - Whitecotes - io93gf</CT><BC>446.03125FM CTC131.8</BC><CL>1</CL><ON>CG03, Gwilym009</ON><ID>94.8.245.227</ID><DS>Chesterfield Gateway 03 :- gatewaydx.webs.com</DS>
2014-04-07 14:51:33.279 FRN Client[2661:70b] receive response: <S>0</S><M>0</M><NN>United Kingdom</NN><CT>Gosport - Nr Portsmouth, Hants</CT><BC>446.06875FM CTC131.8</BC><CL>1</CL><ON>MPT077-L, Gosport 446</ON><ID>82.39.166.74</ID><DS>Gosport 446 Gateway</DS>
2014-04-07 14:51:33.279 FRN Client[2661:70b] receive response: <S>0</S><M>0</M><NN>United Kingdom</NN><CT>Hebburn Tyne-Wear Uk - io94fx</CT><BC>446.08125FM CTC131.8</BC><CL>1</CL><ON>UK076-L, Jim</ON><ID>92.238.68.42</ID><DS>Hebburn PMR446 FRN Gateway Channel 7 CTCSS 20</DS>
2014-04-07 14:51:33.279 FRN Client[2661:70b] receive response: <S>0</S><M>0</M><NN>United Kingdom</NN><CT>Horndean - Nr Portsmouth, Hants</CT><BC>446.05625FM CTC131.8</BC><CL>1</CL><ON>MPT064-L, Horndean 446</ON><ID>93.97.184.29</ID><DS>Horndean 446 Gateway - plymouthfreeradio.co.uk</DS>
2014-04-07 14:51:33.280 FRN Client[2661:70b] receive response: <S>0</S><M>0</M><NN>United Kingdom</NN><CT>Kessingland (Jo02uj) - Lowestoft, Suffolk</CT><BC>446.09375FM CTC131.8</BC><CL>1</CL><ON>26MPT001, Adam 26mpt001</ON><ID>91.135.3.170[1]</ID><DS>KSL01 - (Ch 8 CTCSS 20)   www.446muppets.co.uk</DS>
2014-04-07 14:51:33.280 FRN Client[2661:70b] receive response: <S>0</S><M>0</M><NN>United Kingdom</NN><CT>Kessingland - Lowestoft</CT><BC> 27.82125FM </BC><CL>1</CL><ON>MPT001-CB, Adammpt001-Cb</ON><ID>2.121.129.170</ID><DS>KSL1GB - (Ch 23 UK FM) QTH: J002UJ</DS>
2014-04-07 14:51:33.281 FRN Client[2661:70b] receive response: <S>0</S><M>0</M><NN>United Kingdom</NN><CT>Richmond, Yorkshire - Gallowfields</CT><BC>446.06875FM CTC131.8</BC><CL>1</CL><ON>RMDFRN, Paul M 26ct730</ON><ID>81.174.170.241</ID><DS>Richmond PMR446 FRN Gateway, Channel 6, CTCSS 20</DS>
2014-04-07 14:51:33.281 FRN Client[2661:70b] receive response: <S>0</S><M>0</M><NN>United Kingdom</NN><CT>West - Cornwall</CT><BC>446.06875FM CTC131.8</BC><CL>1</CL><ON>26-FRG-01, Warf</ON><ID>178.101.248.48</ID><DS>Pool Gateway</DS>
2014-04-07 14:51:33.281 FRN Client[2661:70b] receive response: <S>1</S><M>0</M><NN>Cook Islands</NN><CT>In The Galley - Clacton Essex</CT><BC>PC Only</BC><CL>2</CL><ON>AR- WE01, Ray</ON><ID>95.144.241.240</ID><DS>ADMIN Frn/Zello</DS>
2014-04-07 14:51:33.282 FRN Client[2661:70b] receive response: <S>0</S><M>0</M><NN>Spain</NN><CT>Sevilla - pinomontano</CT><BC>PC Only</BC><CL>2</CL><ON>GBC-01-CV, Miguel Angel Aponte</ON><ID>85.55.161.241</ID><DS></DS>
2014-04-07 14:51:33.282 FRN Client[2661:70b] receive response: <S>0</S><M>0</M><NN>United Kingdom</NN><CT>Amersham - higher</CT><BC>PC Only</BC><CL>2</CL><ON>OK148, Freakybwoy</ON><ID>86.147.200.232</ID><DS></DS>
2014-04-07 14:51:33.434 FRN Client[2661:70b] receive response: <S>2</S><M>0</M><NN>United Kingdom</NN><CT>Beachley - Nr Chepstow, IO81QP</CT><BC>PC Only</BC><CL>2</CL><ON>SW-82, Robbie.</ON><ID>81.155.103.222[1]</ID><DS>*Admin* - http://2e0rdj.com - Ham Radio & Weather</DS>
2014-04-07 14:51:33.434 FRN Client[2661:70b] receive response: <S>0</S><M>0</M><NN>United Kingdom</NN><CT>Fleetwood - fleetwood</CT><BC>PC Only</BC><CL>2</CL><ON>CARDBOARD BOX, Johnny</ON><ID>81.174.205.204</ID><DS></DS>
2014-04-07 14:51:33.435 FRN Client[2661:70b] receive response: <S>0</S><M>0</M><NN>United Kingdom</NN><CT>Hebburn Tyne-Wear Uk - io94fx</CT><BC>PC Only</BC><CL>2</CL><ON>UK001, Jim</ON><ID>92.238.68.42[1]</ID><DS>Monitoring UK076-L On Remote Link</DS>
2014-04-07 14:51:33.435 FRN Client[2661:70b] receive response: <S>2</S><M>0</M><NN>United Kingdom</NN><CT>Kessingland - Lowestoft, Suffolk</CT><BC>PC Only</BC><CL>2</CL><ON>446MUPPETS, 446muppets</ON><ID>90.209.237.17</ID><DS>Server Owner & Admin - adam@446muppets.co.uk</DS>
2014-04-07 14:51:33.436 FRN Client[2661:70b] receive response: <S>0</S><M>0</M><NN>United Kingdom</NN><CT>London - kent</CT><BC>PC Only</BC><CL>2</CL><ON>MIMZY67, Mandy</ON><ID>2.28.72.204[1]</ID><DS>001.446muppets.co.uk</DS>
2014-04-07 14:51:33.436 FRN Client[2661:70b] receive response: <S>2</S><M>0</M><NN>United Kingdom</NN><CT>Plymouth - Plympton</CT><BC>PC Only</BC><CL>2</CL><ON>26SD109, Zoli</ON><ID>82.46.45.121</ID><DS></DS>


Omhoog
 Profiel  
Antwoord met een citaat  
Geef de vorige berichten weer:  Sorteer op  
Plaats een nieuw onderwerp Antwoord op onderwerp  [ 22 berichten ]  Ga naar pagina Vorige  1, 2, 3

Alle tijden zijn GMT + 1 uur [ Zomertijd ]


Wie is er online

Gebruikers op dit forum: Geen geregistreerde gebruikers. en 7 gasten


Je mag geen nieuwe onderwerpen in dit forum plaatsen
Je mag niet antwoorden op een onderwerp in dit forum
Je mag je berichten in dit forum niet wijzigen
Je mag je berichten niet uit dit forum verwijderen

Zoek naar:
Ga naar:  
cron


Powered by phpBB® Forum Software © phpBB Group
phpBB.nl Vertaling