Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 14:17 10 Nov 2025 Privacy Policy
Jump to

Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.

Forum Index : Microcontroller and PC projects : Pi-cromite 5.4.10, external ADC support

     Page 2 of 2    
Author Message
Micro-80
Newbie

Joined: 03/03/2017
Location: Russian Federation
Posts: 26
Posted: 04:28am 13 Oct 2017
Copy link to clipboard 
Print this post

RPi serves as a server, PC is a client. PC sends a request, RPi sends a response. In the simplest case, RPi constantly sends data packets in UDP format to the PC with some interval.
 
disco4now

Guru

Joined: 18/12/2014
Location: Australia
Posts: 1044
Posted: 05:31pm 13 Oct 2017
Copy link to clipboard 
Print this post

Hi Peter,

I am not sure whether it is intended that
OPTION SOCKET portno can be included in code to allow switching of ports within the program but I have discovered that if it is included in the code, then it silently wipes out the program as soon as its encountered.
In the following code the first OPTION LIST is executed and prints out,
OPTION SOCKET 8085 seems to do its thing as a later manual OPTION LIST will show it sets the option, but the second OPTION LIST in the code is never executed and the program itself is deleted. i.e. LIST will show no code being loaded.



...
...
option LIST
'Nominate the socket
OPTION SOCKET 8085
option LIST
...
...


Regards
Gerry
F4 H7FotSF4xGT
 
disco4now

Guru

Joined: 18/12/2014
Location: Australia
Posts: 1044
Posted: 07:04pm 13 Oct 2017
Copy link to clipboard 
Print this post

Hi Peter,
Is there an example of using TRANSMIT HTML to initiate a request from the pi.
.e.g a request such as below, or is TRANSMIT HTML only for responding to a request.

http://myipaddress.com/show-my-ip-address

Regards
Gerry
F4 H7FotSF4xGT
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 10565
Posted: 08:58pm 13 Oct 2017
Copy link to clipboard 
Print this post

  Quote  I am not sure whether it is intended that
OPTION SOCKET portno can be included in code to allow switching of ports within the program but I have discovered that if it is included in the code, then it silently wipes out the program as soon as its encountered.


There are two types of OPTION commands as per Micromite. There are those that can be included in a program e.g. OPTION EXPLICIT, and those that permanently configure the environment e.g. OPTION LCDPANEL. The latter cause a reboot of the code and in the case of the Pi-cromite this of course wipes out the existing program.

At the moment OPTION SOCKET is a permanent setting but it could be either I don't have a strong view

  Quote  Is there an example of using TRANSMIT HTML to initiate a request from the pi.

No, the current support is as a TCPIP server. You are talking about the Pi-cromite acting as a TCPIP client - I'll have a look at it for a future release together with client and server UDP support
 
     Page 2 of 2    
Print this page


To reply to this topic, you need to log in.

The Back Shed's forum code is written, and hosted, in Australia.
© JAQ Software 2025