|
Forum Index : Microcontroller and PC projects : Pi-cromite 5.4.10, external ADC support
| Author | Message | ||||
| Micro-80 Newbie Joined: 03/03/2017 Location: Russian FederationPosts: 26 |
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: AustraliaPosts: 1044 |
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: AustraliaPosts: 1044 |
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 KingdomPosts: 10565 |
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 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 |
||||
| The Back Shed's forum code is written, and hosted, in Australia. | © JAQ Software 2025 |